PHP Console Log Security & Risk Analysis

wordpress.org/plugins/php-console-log

Log PHP variables and arrays to the web console in your browser via JavaScript's console.log(). No browser extensions required.

20 active installs v1.0.1 PHP 5.6.20+ WP 4.4+ Updated Feb 7, 2020
browserconsole-logdebugdevelopmentphp
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is PHP Console Log Safe to Use in 2026?

Generally Safe

Score 85/100

PHP Console Log 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 php-console-log plugin version 1.0.1 presents a mixed security posture. On the positive side, the static analysis reveals no direct attack surface points like AJAX handlers, REST API routes, shortcodes, or cron events that are exposed without authentication or proper permission checks. Furthermore, all detected SQL queries utilize prepared statements, which is a strong defense against SQL injection. The absence of known CVEs and a clean vulnerability history also suggests a generally stable and well-maintained codebase in the past.

However, a significant concern arises from the output escaping analysis, which indicates that 100% of outputs are not properly escaped. This is a critical weakness that could lead to cross-site scripting (XSS) vulnerabilities if any user-supplied data is directly echoed into the output without sanitization. While taint analysis shows no flows, this is likely due to the limited scope of the analysis or the absence of complex data handling, and does not negate the risk posed by unescaped output. The absence of nonce checks on any potential entry points is also a minor concern, although the lack of identified entry points mitigates this risk for now.

In conclusion, while the plugin has a strong foundation in terms of preventing direct access and handling database interactions securely, the widespread lack of output escaping represents a serious potential security flaw. This needs to be addressed urgently to prevent potential XSS attacks. The plugin's history of no vulnerabilities is a positive indicator, but it should not be relied upon to overlook the current static analysis findings.

Key Concerns

  • Output escaping is not implemented
  • No nonce checks on entry points
Vulnerabilities
None known

PHP Console Log Security Vulnerabilities

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

PHP Console Log Code Analysis

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

Output Escaping

0% escaped1 total outputs
Attack Surface

PHP Console Log Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 9
actionadmin_menuincludes\php-console-log-menu.php:27
actionwp_enqueue_scriptsincludes\php-console-log-scripts.php:79
actionadmin_enqueue_scriptsincludes\php-console-log-scripts.php:80
actionlogin_enqueue_scriptsincludes\php-console-log-scripts.php:81
actionadmin_enqueue_scriptsincludes\php-console-log-styles.php:25
actionplugins_loadedphp-console-log.php:85
actionphp_console_logphp-console-log.php:143
actionactivated_pluginphp-console-log.php:182
actiondeactivated_pluginphp-console-log.php:183
Maintenance & Trust

PHP Console Log Maintenance & Trust

Maintenance Signals

WordPress version tested5.3.21
Last updatedFeb 7, 2020
PHP min version5.6.20
Downloads3K

Community Trust

Rating100/100
Number of ratings1
Active installs20
Developer Profile

PHP Console Log Developer Profile

Marcus Viar

1 plugin · 20 total installs

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

How We Detect PHP Console Log

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/php-console-log/js/php-console-log.js
Script Paths
/wp-content/plugins/php-console-log/js/php-console-log.js
Version Parameters
php-console-log.js?ver=1.0.1

HTML / DOM Fingerprints

JS Globals
phpConsoleLogI18n
FAQ

Frequently Asked Questions about PHP Console Log