WP Calculator Security & Risk Analysis

wordpress.org/plugins/wp-calculator

WP Calculator is a free simple calculator for your blog. Originaly developed from http://www.bmgadg.com/calculator.php script.

10 active installs v0.1 PHP + WP 2.5+ Updated May 29, 2009
calculatormathmathematicswidget
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WP Calculator Safe to Use in 2026?

Generally Safe

Score 85/100

WP Calculator has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 16yr ago
Risk Assessment

The "wp-calculator" plugin v0.1 exhibits a concerning security posture primarily due to a complete lack of output escaping. While the static analysis reveals a limited attack surface with no direct entry points identified for AJAX, REST API, shortcodes, or cron events, and the absence of dangerous functions, SQL injection, or file operations, the critical flaw lies in how it handles its output. The fact that 100% of the identified output is not properly escaped presents a significant risk of Cross-Site Scripting (XSS) vulnerabilities. Even with a clean vulnerability history and no identified taint flows, the lack of output sanitization is a serious oversight that could be exploited by attackers to inject malicious scripts into the site, impacting users and potentially the integrity of the website.

Despite the positive aspects like the absence of known CVEs and a low attack surface with no unprotected entry points, the unescaped output is a glaring weakness. This indicates a potential lack of developer diligence in following fundamental WordPress security best practices. While there are no immediate critical vulnerabilities like RCE or SQL injection evident from the static analysis, the potential for XSS is high and directly stems from the provided code signals. The plugin's vulnerability history being clean is a good sign, but it could also be attributed to its limited use or exposure, or the fact that the lack of output escaping hasn't been widely discovered or exploited yet.

In conclusion, the "wp-calculator" plugin v0.1 has a seemingly small attack surface and a clean history, which are positive indicators. However, the complete failure to escape output is a critical security flaw that overshadows these strengths. Developers must address this immediately to prevent potential XSS attacks. Until this is resolved, the plugin should be considered a significant risk. The absence of nonce and capability checks on potential (though currently non-existent) entry points also warrants attention for future development.

Key Concerns

  • Unescaped output found
Vulnerabilities
None known

WP Calculator Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

WP Calculator Release Timeline

No version history available.
Code Analysis
Analyzed Mar 17, 2026

WP Calculator Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
3
0 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

0% escaped3 total outputs
Attack Surface

WP Calculator Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 2
actioninitwp_calculator.php:84
actionwp_headwp_calculator.php:93
Maintenance & Trust

WP Calculator Maintenance & Trust

Maintenance Signals

WordPress version tested2.7
Last updatedMay 29, 2009
PHP min version
Downloads3K

Community Trust

Rating0/100
Number of ratings0
Active installs10
Developer Profile

WP Calculator Developer Profile

levani01

2 plugins · 20 total installs

84
trust score
Avg Security Score
85/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect WP Calculator

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/wp-calculator/background.jpg
Script Paths
/wp-content/plugins/wp-calculator/calculate.js

HTML / DOM Fingerprints

Data Attributes
name="calculator"name="win"
JS Globals
calc
Shortcode Output
<form name="calculator"> <table border="0" cellpadding="2" cellspacing="0" background="wp-content/plugins/wp calculator/background.jpg" width="150" height="259"> <tr><td align="center" style="padding-bottom:0px;padding-top:15px"><input type="text" name="win" value="0" style="height:30px;width:190px;text-align:right;font-size:20px;font-weight:bold;border:1px solid #000;padding-right:2px;" maxlength='15'></td></tr> <tr><td> <table border="0" cellpadding="5" cellspacing="1" align="center"> <tr><td style="padding-top:0px"><input type="button" value="CE" style="width:40px" onClick="calc('CE')"></td> <td style="padding-top:0px"><input type="button" value="C" style="width:40px" onClick="calc('C')"></td> <td style="padding-top:0px"><input type="button" value="+/-" style="width:40px" onClick="calc('+/-')"></td> <td style="padding-top:0px"><input type="button" value="%" style="width:40px" onClick="calc('%')"></td></tr> <tr><td><input type="button" value="7" style="width:40px" onClick="calc('7')"></td> <td><input type="button" value="8" style="width:40px" onClick="calc('8')"></td> <td><input type="button" value="9" style="width:40px" onClick="calc('9')"></td> <td><input type="button" value="/" style="width:40px" onClick="calc('/')"></td></tr> <tr><td><input type="button" value="4" style="width:40px" onClick="calc('4')"></td> <td><input type="button" value="5" style="width:40px" onClick="calc('5')"></td> <td><input type="button" value="6" style="width:40px" onClick="calc('6')"></td> <td><input type="button" value="x" style="width:40px" onClick="calc('*')"></td></tr> <tr><td><input type="button" value="1" style="width:40px" onClick="calc('1')"></td> <td><input type="button" value="2" style="width:40px" onClick="calc('2')"></td> <td><input type="button" value="3" style="width:40px" onClick="calc('3')"></td> <td><input type="button" value="-" style="width:40px" onClick="calc('-')"></td></tr> <tr><td><input type="button" value="0" style="width:40px" onClick="calc('0')"></td> <td><input type="button" value="." style="width:40px" onClick="calc('.')"></td> <td><input type="button" value="=" style="width:40px" onClick="calc('=')"></td> <td><input type="button" value="+" style="width:40px" onClick="calc('+')"></td></tr> </table> </td></tr> </table> </form>
FAQ

Frequently Asked Questions about WP Calculator