WP Template Viewer Security & Risk Analysis

wordpress.org/plugins/wp-template-viewer

This plugin allows you to see the content of all theme templates files that were used to display the current page.

100 active installs v1.0.0 PHP + WP 3.9+ Updated Apr 7, 2020
included-filesplugin-templatetemplatetemplate-filestheme-template
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WP Template Viewer Safe to Use in 2026?

Generally Safe

Score 85/100

WP Template Viewer has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 5yr ago
Risk Assessment

The wp-template-viewer v1.0.0 plugin exhibits a generally good security posture based on the provided static analysis. It demonstrates responsible coding practices by utilizing prepared statements for all SQL queries and implementing nonce and capability checks for its entry points. The absence of external HTTP requests and shortcodes further reduces the potential attack surface. However, there are areas for improvement, particularly concerning output escaping. With 56% of outputs properly escaped, a significant portion (44%) remains potentially vulnerable to cross-site scripting (XSS) attacks if user-supplied data is reflected directly without adequate sanitization. The plugin's vulnerability history is clean, with no known CVEs, which is a positive indicator of its current security state. The lack of previous vulnerabilities suggests diligent development or that the plugin hasn't been a significant target, but this should not lead to complacency, especially given the identified output escaping issues. The strengths lie in its protected entry points and secure database interactions, while the primary weakness is the insufficient output escaping, which presents a moderate risk.

Key Concerns

  • Insufficient output escaping
Vulnerabilities
None known

WP Template Viewer Security Vulnerabilities

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

WP Template Viewer Code Analysis

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

Output Escaping

56% escaped9 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
ajax_display_template_file (wp-template-viewer.php:546)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

WP Template Viewer Attack Surface

Entry Points2
Unprotected0

AJAX Handlers 2

noprivwp_ajax_wp_tv_display_template_filewp-template-viewer.php:130
authwp_ajax_wp_tv_display_template_filewp-template-viewer.php:131
WordPress Hooks 7
actionwp_loadedwp-template-viewer.php:95
actionwp_footerwp-template-viewer.php:146
actionwp_footerwp-template-viewer.php:147
actionwp_before_admin_bar_renderwp-template-viewer.php:152
actionwp_before_admin_bar_renderwp-template-viewer.php:153
actionwp_before_admin_bar_renderwp-template-viewer.php:154
actionwp_enqueue_scriptswp-template-viewer.php:158
Maintenance & Trust

WP Template Viewer Maintenance & Trust

Maintenance Signals

WordPress version tested5.4.19
Last updatedApr 7, 2020
PHP min version
Downloads6K

Community Trust

Rating100/100
Number of ratings3
Active installs100
Developer Profile

WP Template Viewer Developer Profile

keesiemeijer

6 plugins · 11K total installs

86
trust score
Avg Security Score
89/100
Avg Patch Time
8 days
View full developer profile
Detection Fingerprints

How We Detect WP Template Viewer

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/wp-template-viewer/wp-template-viewer.css/wp-content/plugins/wp-template-viewer/wp-template-viewer-rtl.css/wp-content/plugins/wp-template-viewer/wp-template-viewer.js
Script Paths
/wp-content/plugins/wp-template-viewer/wp-template-viewer.js
Version Parameters
wp-template-viewer.css?ver=wp-template-viewer-rtl.css?ver=

HTML / DOM Fingerprints

Data Attributes
data-wp-tv-ajaxurldata-wp-tv-noncedata-wp-tv-hide-in-footerdata-wp-tv-show-in-footerdata-wp-tv-hidedata-wp-tv-show+1 more
JS Globals
wp_tv_ajax
FAQ

Frequently Asked Questions about WP Template Viewer