Stats for WP Security & Risk Analysis

wordpress.org/plugins/stats-for-wp

When users view your site, we will log user ID, view pages, referrers URL, user IP, user agent, ... and so on, to admin you understand how users worki …

0 active installs v1.0.3 PHP 5.2.4+ WP 3.2+ Updated Jul 18, 2018
logsstatsuser-stats
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Stats for WP Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 7yr ago
Risk Assessment

The "stats-for-wp" plugin v1.0.3 exhibits a generally good security posture based on the provided static analysis. The absence of identified dangerous functions, file operations, external HTTP requests, and a lack of identified critical or high-severity taint flows are positive indicators. The plugin also has a clean vulnerability history with no recorded CVEs, suggesting a history of responsible development and maintenance.

However, there are notable areas of concern. The complete lack of nonce checks and capability checks across all entry points (even though the attack surface is currently zero) presents a significant future risk. If any new entry points are introduced or if existing ones are modified without proper authentication and authorization mechanisms, they would be immediately exploitable. Furthermore, a low rate of proper output escaping (only 25%) indicates a potential for Cross-Site Scripting (XSS) vulnerabilities if any of the data being output is not sufficiently sanitized before display. The fact that 40% of SQL queries are not using prepared statements also raises concerns about potential SQL injection vulnerabilities, especially if user-supplied data can influence these queries.

In conclusion, while the plugin has avoided known vulnerabilities and has a minimal current attack surface, the foundational lack of security checks like nonces and capability checks, coupled with the high percentage of unescaped output and raw SQL queries, creates a latent risk. Future development or modifications need to address these critical security gaps proactively to maintain a secure state.

Key Concerns

  • No Nonce Checks
  • No Capability Checks
  • Low Output Escaping Rate (25%)
  • Unprepared SQL Queries (40%)
Vulnerabilities
None known

Stats for WP Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 17, 2026

Stats for WP Code Analysis

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

SQL Query Safety

60% prepared5 total queries

Output Escaping

25% escaped16 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
swp_stats_for_wp_log_tracer (stats-for-wp.php:169)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Stats for WP Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 2
actionwp_footerstats-for-wp.php:237
actionadmin_menustats-for-wp.php:293
Maintenance & Trust

Stats for WP Maintenance & Trust

Maintenance Signals

WordPress version tested4.9.29
Last updatedJul 18, 2018
PHP min version5.2.4
Downloads971

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

Stats for WP Developer Profile

statsforwp

1 plugin · 0 total installs

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

How We Detect Stats for WP

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/stats-for-wp/css/style.css
Script Paths
/wp-content/plugins/stats-for-wp/js/sfw_stats_for_wp.js
Version Parameters
stats-for-wp/css/style.css?ver=stats-for-wp/js/sfw_stats_for_wp.js?ver=

HTML / DOM Fingerprints

CSS Classes
wrapdashboard-widgets-wrapmetabox-holderdashboard-widgets-main-contentpostbox-containerpostboxbpmotable
Data Attributes
id="bpmotable"id="dashboard-widgets-wrap"id="dashboard-widgets"id="post-body"id="dashboard-widgets-main-content"
FAQ

Frequently Asked Questions about Stats for WP