Cache External Scripts Security & Risk Analysis

wordpress.org/plugins/cache-external-scripts

Save the Google Analytics file (gtag.js / analytics.js) locally to be able to cache it for longer than 2 hours for a better PageSpeed score!

1K active installs v0.4 PHP + WP 3.0.1+ Updated May 11, 2019
cachecachinggoogle-analyticsjavascriptsscripts
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Cache External Scripts Safe to Use in 2026?

Generally Safe

Score 85/100

Cache External Scripts has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 6yr ago
Risk Assessment

The cache-external-scripts v0.4 plugin exhibits a mixed security posture. On the positive side, it demonstrates good practices regarding SQL queries, utilizing prepared statements exclusively, and it reports no known historical vulnerabilities or critical taint flow issues. The attack surface is also minimal, with no identified AJAX handlers, REST API routes, or shortcodes, and crucially, none of these entry points appear to be unprotected.

However, several significant concerns emerge from the static analysis. The lack of any capability checks and nonce checks is a major weakness, particularly in conjunction with file operations and external HTTP requests. While the static analysis did not detect specific dangerous functions, the presence of 10 file operations and 1 external HTTP request without any authorization or integrity checks presents a considerable risk. Furthermore, the complete absence of output escaping for the two identified outputs means that any data processed or displayed by the plugin could be vulnerable to cross-site scripting (XSS) attacks.

In conclusion, while the plugin's lack of historical vulnerabilities and secure SQL handling are commendable, the critical omissions in authorization, nonce verification, and output escaping create substantial security gaps. The potential for attackers to leverage file operations and external requests without proper checks, and the XSS vulnerability due to unescaped output, are serious risks that need to be addressed.

Key Concerns

  • Missing capability checks
  • Missing nonce checks
  • Unescaped output
  • File operations without auth/nonce
  • External HTTP requests without auth/nonce
Vulnerabilities
None known

Cache External Scripts Security Vulnerabilities

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

Cache External Scripts Code Analysis

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

Output Escaping

0% escaped2 total outputs
Attack Surface

Cache External Scripts Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 6
actionwpcache-external-scripts.php:24
actioncache-external-scripts-croncache-external-scripts.php:86
actionget_headercache-external-scripts.php:89
actionwp_footercache-external-scripts.php:90
actionadmin_menucache-external-scripts.php:110
actionadmin_initcache-external-scripts.php:111

Scheduled Events 1

cache-external-scripts-cron
Maintenance & Trust

Cache External Scripts Maintenance & Trust

Maintenance Signals

WordPress version tested5.2.24
Last updatedMay 11, 2019
PHP min version
Downloads32K

Community Trust

Rating100/100
Number of ratings25
Active installs1K
Developer Profile

Cache External Scripts Developer Profile

Voorsie

1 plugin · 1K total installs

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

How We Detect Cache External Scripts

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/cache-external-scripts/analytics.js/wp-content/plugins/cache-external-scripts/ga.js/wp-content/plugins/cache-external-scripts/gtag.js
Script Paths
/wp-content/plugins/cache-external-scripts/analytics.js/wp-content/plugins/cache-external-scripts/ga.js/wp-content/plugins/cache-external-scripts/gtag.js

HTML / DOM Fingerprints

Data Attributes
id="cached-script"
JS Globals
kc.o
FAQ

Frequently Asked Questions about Cache External Scripts