WPBetterCodeHighlighting Security & Risk Analysis

wordpress.org/plugins/wpbettercodehighlighting

WpBetterCodeHighlighting allows you to show code snippets in over 290+ languages. Its completly free and perfect for blog/tutorial sites.

0 active installs v1.0 PHP + WP 6.0+ Updated Jan 3, 2026
codecode-snippetshighlightsyntaxtutorial-sites
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WPBetterCodeHighlighting Safe to Use in 2026?

Generally Safe

Score 100/100

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

No known CVEs Updated 2mo ago
Risk Assessment

The wpbettercodehighlighting plugin version 1.0 exhibits a generally strong security posture based on the provided static analysis. It demonstrates good practices by having no dangerous functions, all SQL queries utilizing prepared statements, and all output being properly escaped. Furthermore, the absence of file operations and external HTTP requests reduces potential attack vectors. The plugin also reports no known CVEs, indicating a lack of historical security incidents.

However, a significant concern lies in the complete absence of nonce checks and capability checks across all entry points. While the static analysis indicates a small attack surface (1 shortcode) and no unprotected AJAX handlers or REST API routes, the lack of these fundamental security measures means that any authenticated user could potentially trigger the shortcode's functionality without proper verification. This could lead to unintended consequences if the shortcode's execution relies on specific user permissions or actions that should be protected by nonces.

In conclusion, while the plugin benefits from clean code in terms of dangerous functions, SQL, and output handling, the omission of nonce and capability checks is a notable weakness. The plugin's lack of historical vulnerabilities is positive, but it does not negate the inherent risk introduced by these missing security controls. Future versions should prioritize the implementation of these checks to bolster its security.

Key Concerns

  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

WPBetterCodeHighlighting Security Vulnerabilities

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

WPBetterCodeHighlighting Code Analysis

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

Output Escaping

100% escaped4 total outputs
Attack Surface

WPBetterCodeHighlighting Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[wpbch] compatibilities\misc\class-wpbch-shortcode.php:44
WordPress Hooks 2
actionwp_enqueue_scriptsclasses\class-wpbch-assest-loader.php:44
actionplugins_loadedclasses\class-wpbch-loader.php:52
Maintenance & Trust

WPBetterCodeHighlighting Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJan 3, 2026
PHP min version
Downloads112

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

WPBetterCodeHighlighting Developer Profile

conlabltd

1 plugin · 0 total installs

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

How We Detect WPBetterCodeHighlighting

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/wpbettercodehighlighting/assets/js/prism.js/wp-content/plugins/wpbettercodehighlighting/assets/css/prism.css/wp-content/plugins/wpbettercodehighlighting/assets/js/wpbch-custom-prism-toolbar-js.js/wp-content/plugins/wpbettercodehighlighting/assets/css/wpbch-custom-prism-css.css
Script Paths
/wp-content/plugins/wpbettercodehighlighting/assets/js/prism.js/wp-content/plugins/wpbettercodehighlighting/assets/js/wpbch-custom-prism-toolbar-js.js
Version Parameters
wpbettercodehighlighting/assets/js/prism.js?ver=wpbettercodehighlighting/assets/css/prism.css?ver=wpbettercodehighlighting/assets/js/wpbch-custom-prism-toolbar-js.js?ver=wpbettercodehighlighting/assets/css/wpbch-custom-prism-css.css?ver=

HTML / DOM Fingerprints

Shortcode Output
[wpbch]
FAQ

Frequently Asked Questions about WPBetterCodeHighlighting