Better Resource Hints Security & Risk Analysis

wordpress.org/plugins/better-resource-hints

Better Resource Hints will make your WordPress site or application faster and generally more performant by intelligently leveraging resource hints lik …

200 active installs v1.1.3 PHP 5.6+ WP 4.0+ Updated Feb 12, 2019
performanceprefetchpreloadresource-hintsserver-push
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Better Resource Hints Safe to Use in 2026?

Generally Safe

Score 85/100

Better Resource Hints 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 "better-resource-hints" plugin v1.1.3 exhibits a generally strong security posture based on the provided static analysis. The absence of any identified AJAX handlers, REST API routes, shortcodes, or cron events significantly limits the potential attack surface. Furthermore, the analysis indicates no dangerous functions, all SQL queries are properly prepared, and there are no recorded vulnerabilities or CVEs. This suggests a well-developed and conscientiously secured plugin.

However, a significant concern arises from the output escaping analysis, where only 3% of the 35 outputs are properly escaped. This indicates a substantial risk of Cross-Site Scripting (XSS) vulnerabilities, as unsanitized output can lead to malicious code injection. While taint analysis shows no issues, the lack of proper output escaping is a critical weakness that could be exploited if any user-supplied data or dynamic content is rendered without adequate sanitization. The absence of nonce and capability checks across the board, while not directly identified as exploitable due to the limited attack surface, represents a missed opportunity for robust security practices.

In conclusion, the plugin's minimal attack surface and clean vulnerability history are positive indicators. Nevertheless, the severe deficiency in output escaping presents a clear and present danger that overshadows these strengths. Addressing the output escaping issue should be the top priority to mitigate the risk of XSS attacks and improve the overall security of the plugin.

Key Concerns

  • Low percentage of properly escaped output
Vulnerabilities
None known

Better Resource Hints Security Vulnerabilities

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

Better Resource Hints Code Analysis

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

Output Escaping

3% escaped35 total outputs
Attack Surface

Better Resource Hints Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 15
actionadmin_enqueue_scriptsbetter-resource-hints.php:62
filterstyle_loader_tagsrc\Filters.php:9
filterscript_loader_tagsrc\Filters.php:10
filterwp_resource_hintssrc\Preconnector.php:11
actionwp_headsrc\Prefetcher.php:9
actionwp_headsrc\Prefetcher.php:10
actionwp_enqueue_scriptssrc\Preloader.php:9
actionwp_headsrc\Preloader.php:10
actionwp_headsrc\Preloader.php:11
filterbetter_resource_hints_preload_tagsrc\Preloader.php:12
filterbetter_resource_hints_should_preloadsrc\Preloader.php:13
actionadmin_initsrc\Settings.php:22
actionadmin_initsrc\Settings.php:23
actionadmin_menusrc\Settings.php:24
actionwp_logoutsrc\Settings.php:25
Maintenance & Trust

Better Resource Hints Maintenance & Trust

Maintenance Signals

WordPress version tested5.0.25
Last updatedFeb 12, 2019
PHP min version5.6
Downloads11K

Community Trust

Rating100/100
Number of ratings3
Active installs200
Developer Profile

Better Resource Hints Developer Profile

Alex MacArthur

2 plugins · 300 total installs

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

How We Detect Better Resource Hints

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/better-resource-hints/src/assets/css/style.css/wp-content/plugins/better-resource-hints/src/assets/js/scripts.min.js/wp-content/plugins/better-resource-hints/src/assets/js/preload.min.js
Script Paths
/wp-content/plugins/better-resource-hints/src/assets/js/scripts.min.js/wp-content/plugins/better-resource-hints/src/assets/js/preload.min.js
Version Parameters
better-resource-hints/style.css?ver=scripts.min.js?ver=

HTML / DOM Fingerprints

HTML Comments
In the future, check if user would like to preload $specificHandlesToPreload's dependencies as well.In the future, check if user would like to preload $specificHandlesToPreload's dependencies as well.Only footer scripts!All scripts!+2 more
Data Attributes
onload="this.onload=null;this.rel='stylesheet'"
FAQ

Frequently Asked Questions about Better Resource Hints