Simple product counter Security & Risk Analysis

wordpress.org/plugins/simple-product-counter

Notice with product sales and views for certain period.

30 active installs v2.2.0 PHP + WP 4.0+ Updated Jun 15, 2021
countproductsalesviewswoocommerce
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Simple product counter Safe to Use in 2026?

Generally Safe

Score 85/100

Simple product counter has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 4yr ago
Risk Assessment

The "simple-product-counter" plugin, version 2.2.0, exhibits a mixed security posture. On one hand, it demonstrates an exceptionally small attack surface with no identified AJAX handlers, REST API routes, shortcodes, or cron events. This lack of direct entry points significantly limits potential attack vectors. Furthermore, the plugin has no recorded vulnerability history, suggesting a history of responsible development or a lack of past scrutiny.

However, the static analysis reveals significant concerns within the code itself. The presence of eight dangerous function calls, specifically `unserialize`, is a major red flag. `unserialize` is inherently risky as it can lead to code execution if used with untrusted data. Compounding this, the plugin does not utilize prepared statements for its single SQL query, increasing the risk of SQL injection. The taint analysis, though limited in scope, found flows with unsanitized paths, indicating potential weaknesses where user-supplied data might not be properly validated or escaped before being used in sensitive operations. The fact that 44% of output is not properly escaped also poses a risk of cross-site scripting (XSS) vulnerabilities.

Despite the promising lack of external vulnerabilities and a small attack surface, the internal code quality raises serious concerns. The heavy reliance on `unserialize` without apparent sanitization, raw SQL queries, and unescaped output creates a notable risk. Developers should prioritize addressing these internal code issues to improve the plugin's overall security.

Key Concerns

  • Dangerous function calls (unserialize)
  • SQL queries without prepared statements
  • Output escaping is not fully implemented
  • Taint analysis shows unsanitized paths
  • No nonce checks
  • No capability checks
Vulnerabilities
None known

Simple product counter Security Vulnerabilities

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

Simple product counter Release Timeline

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

Simple product counter Code Analysis

Dangerous Functions
8
Raw SQL Queries
1
0 prepared
Unescaped Output
54
68 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Dangerous Functions Found

unserialize$simple_product_counter_option = unserialize(json_decode(get_option('simple_product_counter_option')inc\functions.php:8
unserialize$simple_product_counter_option = unserialize(json_decode(get_option('simple_product_counter_option')inc\functions.php:26
unserialize$simple_product_counter_option = unserialize(json_decode(get_option('simple_product_counter_option')inc\functions.php:44
unserialize$simple_product_counter_option = unserialize(json_decode(get_option('simple_product_counter_option')inc\functions.php:142
unserialize$simple_product_counter_option = unserialize(json_decode(get_option('simple_product_counter_option')simple-product-counter.php:85
unserialize$simple_product_counter_option = unserialize(json_decode(get_option('simple_product_counter_option')simple-product-counter.php:147
unserialize$opt = unserialize(json_decode($option));simple-product-counter.php:391
unserialize$simple_product_counter_option = unserialize(json_decode(get_option('simple_product_counter_option')simple-product-counter.php:508

SQL Query Safety

0% prepared1 total queries

Output Escaping

56% escaped122 total outputs
Data Flows · Security
2 unsanitized

Data Flow Analysis

2 flows2 with unsanitized paths
simple_product_counter_settings_page_func (simple-product-counter.php:146)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Simple product counter Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 10
actionadmin_enqueue_scriptssimple-product-counter.php:54
actionlogin_enqueue_scriptssimple-product-counter.php:55
actionwp_enqueue_scriptssimple-product-counter.php:56
actionadmin_menusimple-product-counter.php:62
actionadmin_initsimple-product-counter.php:65
actionwoocommerce_after_add_to_cart_buttonsimple-product-counter.php:74
actionwoocommerce_before_add_to_cart_buttonsimple-product-counter.php:75
actionwoocommerce_before_add_to_cart_formsimple-product-counter.php:76
actioninitsimple-product-counter.php:78
actionadmin_noticessimple-product-counter.php:98
Maintenance & Trust

Simple product counter Maintenance & Trust

Maintenance Signals

WordPress version tested5.3.21
Last updatedJun 15, 2021
PHP min version
Downloads2K

Community Trust

Rating100/100
Number of ratings3
Active installs30
Developer Profile

Simple product counter Developer Profile

Webarea

2 plugins · 40 total installs

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

How We Detect Simple product counter

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/simple-product-counter/css/fonts.css/wp-content/plugins/simple-product-counter/css/admin.css/wp-content/plugins/simple-product-counter/js/admin.js/wp-content/plugins/simple-product-counter/css/main.css
Script Paths
/wp-content/plugins/simple-product-counter/js/admin.js
Version Parameters
simple-product-counter/css/fonts.css?ver=simple-product-counter/css/admin.css?ver=simple-product-counter/js/admin.js?ver=simple-product-counter/css/main.css?ver=

HTML / DOM Fingerprints

CSS Classes
simple-product-counter-main-wrapperspc-settings-contspc-settings-cont-headerspc-settings-cont-mainspc-settings-titlespc-settings-type-contspc-settings-type-itmspc-saved-notification+4 more
Data Attributes
data-target
FAQ

Frequently Asked Questions about Simple product counter