Local Analytics Security & Risk Analysis

wordpress.org/plugins/local-analytics

Local Analytics is a Wordpress plugin for integrating Google Analytics, the free web analysis service by Google, into your blog.

10 active installs v1.2.2 PHP + WP 2.3+ Updated Jan 11, 2008
analyticsgooglegoogle-analyticsstatisticstracking
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Local Analytics Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 18yr ago
Risk Assessment

The 'local-analytics' plugin v1.2.2 exhibits a mixed security posture. On the positive side, it demonstrates strong practices regarding database interactions, with all SQL queries utilizing prepared statements. Additionally, there are no recorded CVEs, indicating a generally stable history. The static analysis reveals a remarkably small attack surface, with no apparent AJAX handlers, REST API routes, shortcodes, or cron events exposed without authentication. This significantly limits the plugin's direct vulnerability to external attacks.

However, several concerning code signals and taint analysis results warrant attention. The presence of the `create_function` is a significant red flag, as it can be exploited for remote code execution under certain conditions if user-supplied data influences its execution. Furthermore, a very low rate of proper output escaping (only 5%) across 22 output points suggests a high risk of Cross-Site Scripting (XSS) vulnerabilities. The taint analysis revealing four flows with unsanitized paths, although not rated as critical or high, points to potential data handling weaknesses that could be leveraged in conjunction with other vulnerabilities.

In conclusion, while the plugin benefits from a limited attack surface and secure database practices, the use of `create_function` and the pervasive lack of output escaping present substantial risks. The absence of vulnerability history is a positive sign, but it does not negate the immediate concerns arising from the code analysis. A comprehensive audit focusing on the sanitization of data used with `create_function` and the proper escaping of all outputs is strongly recommended.

Key Concerns

  • Unsanitized paths in taint analysis
  • Low rate of proper output escaping
  • Presence of dangerous function create_function
  • No nonce checks
  • No capability checks
Vulnerabilities
None known

Local Analytics Security Vulnerabilities

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

Local Analytics Release Timeline

v1.2.2Current
v1.2.1
v1.1.3
Code Analysis
Analyzed Apr 16, 2026

Local Analytics Code Analysis

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

Dangerous Functions Found

create_functionarray_walk($trackedExtensions, create_function('&$ext', '$ext = "\." . $ext;'));local-analytics.php:247

Output Escaping

5% escaped22 total outputs
Data Flows · Security
4 unsanitized

Data Flow Analysis

4 flows4 with unsanitized paths
locan_admin_options_show (local-analytics.php:294)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Local Analytics Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 7
actioninitlocal-analytics.php:34
actionadmin_menulocal-analytics.php:35
actionadmin_print_scriptslocal-analytics.php:36
filterthe_contentlocal-analytics.php:37
actionadmin_footerlocal-analytics.php:38
filterwp_footerlocal-analytics.php:39
actionwp_headlocal-analytics.php:97
Maintenance & Trust

Local Analytics Maintenance & Trust

Maintenance Signals

WordPress version tested2.3.2
Last updatedJan 11, 2008
PHP min version
Downloads12K

Community Trust

Rating0/100
Number of ratings0
Active installs10
Developer Profile

Local Analytics Developer Profile

joycebabu

1 plugin · 10 total installs

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

How We Detect Local Analytics

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/local-analytics/local-urchin-js.php
Script Paths
/wp-content/plugins/local-analytics/local-urchin-js.php

HTML / DOM Fingerprints

HTML Comments
<!-- Begin Google Analytics Code by Local Analytics Plugin --><!-- End Google Analytics Code by Local Analytics Plugin -->
Data Attributes
onclick="javascript:pageTracker._trackPageview('
JS Globals
locan_dirnameLOCAL_ANALYTICS_TRACKING_ENABLEDpageTracker_gat_getTracker_initData+1 more
FAQ

Frequently Asked Questions about Local Analytics