WP Code Prettify Security & Risk Analysis

wordpress.org/plugins/wp-code-prettify

This plugin enable syntax highlighting of code snippets in your post using Google Code Prettify.

200 active installs v0.2.8 PHP + WP 3.0+ Updated Apr 27, 2019
codegooglehighlighthighlighterprettify
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WP Code Prettify Safe to Use in 2026?

Generally Safe

Score 85/100

WP Code Prettify 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 "wp-code-prettify" v0.2.8 plugin exhibits a generally good security posture based on the provided static analysis. The absence of AJAX handlers, REST API routes, shortcodes, and cron events significantly limits the potential attack surface. Furthermore, the plugin demonstrates strong practices by exclusively using prepared statements for all SQL queries and having no recorded vulnerabilities or CVEs, indicating a stable and well-maintained codebase over time. The plugin also includes nonce and capability checks, which are essential for securing WordPress functionalities.

However, a significant concern arises from the output escaping analysis. With 14 total outputs and 0% properly escaped, this suggests a high risk of Cross-Site Scripting (XSS) vulnerabilities. Any data displayed to users without proper sanitization or escaping could be manipulated by attackers to inject malicious scripts. While taint analysis shows no unsanitized paths, this might not fully capture all potential XSS vectors if the analysis scope was limited or if the untrusted input doesn't directly lead to a path flow detected by the tool. The presence of file operations, while not inherently insecure, warrants careful review to ensure they are not being used in a way that could be exploited by an attacker.

In conclusion, the plugin's strengths lie in its limited attack surface and secure database interactions. The primary weakness is the lack of output escaping, which presents a critical XSS risk. Addressing this issue should be the highest priority to improve the plugin's overall security. The absence of historical vulnerabilities is positive, but the current code analysis points to a specific, actionable security flaw.

Key Concerns

  • 0% output escaping
Vulnerabilities
None known

WP Code Prettify Security Vulnerabilities

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

WP Code Prettify Code Analysis

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

Output Escaping

0% escaped14 total outputs
Data Flows
All sanitized

Data Flow Analysis

1 flows
<wp-code-prettify-page> (wp-code-prettify-page.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

WP Code Prettify Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 6
filterplugin_row_metawp-code-prettify.php:240
actionwp_headwp-code-prettify.php:243
actionget_footerwp-code-prettify.php:244
filterthe_contentwp-code-prettify.php:247
filtercomment_textwp-code-prettify.php:248
actionadmin_menuwp-code-prettify.php:259
Maintenance & Trust

WP Code Prettify Maintenance & Trust

Maintenance Signals

WordPress version tested5.2.24
Last updatedApr 27, 2019
PHP min version
Downloads21K

Community Trust

Rating94/100
Number of ratings3
Active installs200
Developer Profile

WP Code Prettify Developer Profile

Soli

2 plugins · 1K total installs

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

How We Detect WP Code Prettify

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/wp-code-prettify/css/style.css/wp-content/plugins/wp-code-prettify/js/prettify.js
Script Paths
/wp-content/plugins/wp-code-prettify/js/prettify.js
Version Parameters
wp-code-prettify/css/style.css?ver=wp-code-prettify/js/prettify.js?ver=

HTML / DOM Fingerprints

CSS Classes
prettyprint
HTML Comments
<!--wp code prettify--><!--//wp code prettify-->
Data Attributes
prettify_cssprettify_custom
JS Globals
wpCodePrettifyOnLoadprettyPrint$
FAQ

Frequently Asked Questions about WP Code Prettify