WP Counter Security & Risk Analysis

wordpress.org/plugins/wp-counter

WP Counter is a simple visitor counter of your site.

900 active installs v1.2 PHP + WP 5.3+ Updated May 17, 2023
counterwordpress-visitor-counter
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WP Counter Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 3yr ago
Risk Assessment

The wp-counter plugin v1.2 exhibits a mixed security posture. On the positive side, it demonstrates good practices in its handling of SQL queries, with all 10 queries utilizing prepared statements. Furthermore, the absence of known CVEs and a clean vulnerability history suggest a generally stable and well-maintained codebase. The limited attack surface, with only two shortcodes and no AJAX handlers or REST API routes directly exposed, is also a positive indicator.

However, significant concerns arise from the static analysis. The most critical is the taint analysis, which reveals two flows with unsanitized paths, classified as high severity. While there are no directly exploitable entry points without authentication in this version, these unsanitized paths represent potential avenues for attackers to inject malicious data that could lead to unintended behavior or vulnerabilities later on if the data is processed insecurely. The low percentage of properly escaped output (31%) is another notable weakness. This indicates that user-supplied or dynamic data is not consistently being sanitized before being displayed, opening the door for Cross-Site Scripting (XSS) vulnerabilities.

In conclusion, while the plugin has a clean external vulnerability history and employs secure SQL practices, the internal code analysis highlights critical risks associated with unsanitized data flows and insufficient output escaping. These internal code weaknesses are more concerning than the absence of external CVEs, as they represent inherent flaws that could be exploited. Addressing the high-severity taint flows and improving output escaping should be prioritized.

Key Concerns

  • High severity taint flow with unsanitized path (x2)
  • Low percentage of properly escaped output
  • No nonce checks on entry points
  • No capability checks on entry points
Vulnerabilities
None known

WP Counter Security Vulnerabilities

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

WP Counter Release Timeline

v1.1
v1.0
Code Analysis
Analyzed Mar 16, 2026

WP Counter Code Analysis

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

SQL Query Safety

100% prepared10 total queries

Output Escaping

31% escaped39 total outputs
Data Flows · Security
2 unsanitized

Data Flow Analysis

2 flows2 with unsanitized paths
do_count (src\Counter.php:37)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

WP Counter Attack Surface

Entry Points2
Unprotected0

Shortcodes 2

[wpcounter] inc\shortcode.php:3
[wpcounter] src\Shortcode.php:28
WordPress Hooks 6
actionwp_dashboard_setupinc\dashboard-widget.php:2
actionwp_dashboard_setupinc\dashboard-widget.php:46
actionadmin_enqueue_scriptssrc\Assets.php:27
actionwp_headsrc\Counter.php:27
actionwp_dashboard_setupsrc\DashboardWidget.php:27
actionwp_dashboard_setupsrc\DashboardWidget.php:28
Maintenance & Trust

WP Counter Maintenance & Trust

Maintenance Signals

WordPress version tested6.2.9
Last updatedMay 17, 2023
PHP min version
Downloads18K

Community Trust

Rating80/100
Number of ratings2
Active installs900
Developer Profile

WP Counter Developer Profile

Harun

2 plugins · 920 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 Counter

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/wp-counter/js/functions.js
Script Paths
https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js
Version Parameters
wp-counter/js/functions.js?ver=

HTML / DOM Fingerprints

CSS Classes
dashiconsdashicons-chart-areadashicons-calendar-alt
Shortcode Output
<table width="100%"><tr><td colspan="2"><strong><span class="dashicons dashicons-chart-area"></span> Visitor Status</strong></td></tr>
FAQ

Frequently Asked Questions about WP Counter