Plugin Name: Traffic Stats Widget Plugin Security & Risk Analysis

wordpress.org/plugins/traffic-stats-widget

TSW lets your users know how much traffic you have on your blog. It counts pages visited, hits and unique IPs on your blog and shows it in a widget.

700 active installs v1.0.2 PHP + WP 2.8.0+ Updated Nov 28, 2017
hit-countertraffic-countertraffic-widgetuser-trafficvisitors-counter
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Plugin Name: Traffic Stats Widget Plugin Safe to Use in 2026?

Generally Safe

Score 85/100

Plugin Name: Traffic Stats Widget Plugin has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 8yr ago
Risk Assessment

The "traffic-stats-widget" v1.0.2 plugin exhibits significant security concerns primarily due to its unprotected AJAX endpoints. While the plugin has no recorded vulnerability history and avoids inherently dangerous functions or external HTTP requests, the lack of authentication checks on its two AJAX entry points presents a substantial attack surface. The taint analysis further highlights this, revealing two flows with unsanitized paths, classified as high severity. This strongly suggests that an attacker could potentially manipulate these AJAX handlers to inject malicious data or execute unintended actions within the WordPress environment. Furthermore, the code analysis indicates that a significant portion of its SQL queries (70%) are not using prepared statements, which can lead to SQL injection vulnerabilities if user-supplied data is not properly sanitized before being incorporated into queries. The complete absence of output escaping on all identified outputs is another critical flaw, creating a high risk of Cross-Site Scripting (XSS) vulnerabilities where attackers could inject malicious scripts that would execute in the browser of other users. In conclusion, despite the absence of known CVEs, the plugin's current implementation is insecure and requires immediate attention, particularly regarding its AJAX handlers, SQL query practices, and output sanitization.

Key Concerns

  • AJAX endpoints without authentication checks
  • Taint flows with unsanitized paths (high severity)
  • SQL queries not using prepared statements
  • Output escaping missing on all outputs
  • AJAX endpoints without nonce checks
  • AJAX endpoints without capability checks
Vulnerabilities
None known

Plugin Name: Traffic Stats Widget Plugin Security Vulnerabilities

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

Plugin Name: Traffic Stats Widget Plugin Release Timeline

v1.0.2Current
v1.0.1
Code Analysis
Analyzed Mar 16, 2026

Plugin Name: Traffic Stats Widget Plugin Code Analysis

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

SQL Query Safety

30% prepared10 total queries

Output Escaping

0% escaped18 total outputs
Data Flows · Security
2 unsanitized

Data Flow Analysis

2 flows2 with unsanitized paths
view (wp-traffic-stats-widget.php:155)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
2 unprotected

Plugin Name: Traffic Stats Widget Plugin Attack Surface

Entry Points2
Unprotected2

AJAX Handlers 2

authwp_ajax_tswstatswp-traffic-stats-widget.php:340
noprivwp_ajax_tswstatswp-traffic-stats-widget.php:341
WordPress Hooks 3
actionplugins_loadedwp-traffic-stats-widget.php:336
actionwp_print_styleswp-traffic-stats-widget.php:337
actioninitwp-traffic-stats-widget.php:338
Maintenance & Trust

Plugin Name: Traffic Stats Widget Plugin Maintenance & Trust

Maintenance Signals

WordPress version tested4.0.38
Last updatedNov 28, 2017
PHP min version
Downloads50K

Community Trust

Rating88/100
Number of ratings7
Active installs700
Developer Profile

Plugin Name: Traffic Stats Widget Plugin Developer Profile

helenthomaswp

1 plugin · 700 total installs

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

How We Detect Plugin Name: Traffic Stats Widget Plugin

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/traffic-stats-widget/traffic_stats_widget.css/wp-content/plugins/traffic-stats-widget/traffic_stats_widget.js
Script Paths
/wp-content/plugins/traffic-stats-widget/traffic_stats_widget.js
Version Parameters
traffic-stats-widget/traffic_stats_widget.css?ver=traffic-stats-widget/traffic_stats_widget.js?ver=

HTML / DOM Fingerprints

CSS Classes
tsw-widget
HTML Comments
*Caution! By unchecking this you will have to manually delete old logs from time to time! Checking this would only keep logs for the past 1-2 months*
Data Attributes
wp_tsw_WidgetTitlewp_tsw_WidgetText_Visitorswp_tsw_WidgetText_Hitswp_tsw_WidgetText_Uniquewp_tsw_WidgetText_LastDaywp_tsw_WidgetText_LastWeek+7 more
JS Globals
wp_tsw_WidgetTitlewp_tsw_WidgetText_Visitorswp_tsw_WidgetText_Hitswp_tsw_WidgetText_Uniquewp_tsw_WidgetText_LastDaywp_tsw_WidgetText_LastWeek+7 more
FAQ

Frequently Asked Questions about Plugin Name: Traffic Stats Widget Plugin