Templ Optimizer Security & Risk Analysis

wordpress.org/plugins/templ-optimizer

Optimize your site and improve its performance with a few clicks.

1K active installs v2.1.2 PHP 7.4+ WP 5.0+ Updated Feb 4, 2025
clean-updatabaseoptimizeperformancespeed
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Templ Optimizer Safe to Use in 2026?

Generally Safe

Score 92/100

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

No known CVEs Updated 1yr ago
Risk Assessment

The 'templ-optimizer' v2.1.2 plugin exhibits a generally strong security posture based on the provided static analysis. The absence of critical or high-severity taint flows, coupled with all output being properly escaped and no file operations or external HTTP requests, indicates good coding practices in these areas. Furthermore, the plugin has no recorded vulnerabilities (CVEs) and a clean history, suggesting a commitment to security by its developers.

However, there are areas that warrant attention. The presence of numerous SQL queries (24 total) with only 13% using prepared statements is a significant concern. This leaves a substantial portion of database interactions vulnerable to SQL injection attacks if input is not meticulously sanitized elsewhere, which the static analysis did not extensively cover.

While the attack surface is limited and all entry points appear to have permission checks, the lack of nonce checks on AJAX handlers (though there are none) and capability checks on REST API routes (which are present) is a potential weakness. The static analysis also reports zero nonce checks overall, which could be a missed opportunity for further hardening if any AJAX functionality were to be added or modified. In conclusion, the plugin is well-maintained and generally secure but has a notable risk related to its SQL query practices.

Key Concerns

  • Raw SQL queries without prepared statements
  • No nonce checks on any entry points
Vulnerabilities
None known

Templ Optimizer Security Vulnerabilities

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

Templ Optimizer Release Timeline

v2.1.2Current
v2.1.1
v2.1.0
v2.0.1
v2.0.0
v1.2.1
v1.2.0
v1.1.0
v1.0.4
v1.0.3
Code Analysis
Analyzed Mar 16, 2026

Templ Optimizer Code Analysis

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

SQL Query Safety

13% prepared24 total queries

Output Escaping

100% escaped3 total outputs
Attack Surface

Templ Optimizer Attack Surface

Entry Points3
Unprotected0

REST API Routes 3

GET/wp-json/templ-optimizer/v1/get/templ-optimizer.php:185
GET/wp-json/templ-optimizer/v1/optimize-db/(?P<tool>.*)templ-optimizer.php:190
POST/wp-json/templ-optimizer/v1/set/templ-optimizer.php:195
WordPress Hooks 8
filterheartbeat_settingsincludes\tweaks.php:13
filterpre_get_rocket_option_sitemap_preload_url_crawlincludes\tweaks.php:16
actiontempl_optimizer_before_settings_pagetempl-optimizer.php:61
filterplugin_row_metatempl-optimizer.php:65
actionadmin_menutempl-optimizer.php:67
actionadmin_enqueue_scriptstempl-optimizer.php:68
filterscript_loader_tagtempl-optimizer.php:69
actionrest_api_inittempl-optimizer.php:71
Maintenance & Trust

Templ Optimizer Maintenance & Trust

Maintenance Signals

WordPress version tested6.7.5
Last updatedFeb 4, 2025
PHP min version7.4
Downloads10K

Community Trust

Rating100/100
Number of ratings3
Active installs1K
Developer Profile

Templ Optimizer Developer Profile

templateinvaders

248 plugins · 159K total installs

87
trust score
Avg Security Score
98/100
Avg Patch Time
39 days
View full developer profile
Detection Fingerprints

How We Detect Templ Optimizer

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/templ-optimizer/assets/index.js/wp-content/plugins/templ-optimizer/assets/index.css
Script Paths
/wp-content/plugins/templ-optimizer/assets/index.js
Version Parameters
templ-optimizer/assets/index.js?ver=templ-optimizer/assets/index.css?ver=

HTML / DOM Fingerprints

CSS Classes
templ-optimizer
Data Attributes
data-templ-optimizer-nonce
JS Globals
templOptimizer
REST Endpoints
/wp-json/templ-optimizer/v1/get//wp-json/templ-optimizer/v1/optimize-db/
FAQ

Frequently Asked Questions about Templ Optimizer