{"summary":{"plugin_name":"php-code-widget","display_name":"PHP Code Widget","version":"2.4","risk_level":"high","risk_score":50.0,"risk_factors":{"staleness":40,"static_analysis":5,"owasp":5},"last_analyzed":"2026-11-23T10:32:14.934672","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":70000,"rating":94,"num_ratings":61,"tested":"5.9.15","requires":"2.8","requires_php":"False","author":"Samuel Wood (Otto)","short_description":"Like the Text widget, but also allows working PHP code to be inserted.","tags":["execphp","php","widget"],"added":"2008-03-20","last_updated":"2022-03-30 4:55pm GMT","metadata_fetched_at":"2026-08-12T10:52:51.029811+00:00","modules_missing":null,"modules_failed":null,"latest_release":null},"security_metrics":{"total_issues":1,"parameters_found":0,"unknown_parameters":0,"headers_accessed":0,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A03":1,"A04":1,"A06":1},"attack_surface_level":"minimal","attack_surface_score":2,"tainted_sinks":1,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":0},"comparison":{"percentile":62.8,"rank":22989,"peer_count":61764,"better_than":62.8,"risk_distribution":{"high":29928,"medium":18359,"critical":3246,"low":7177,"minimal":3053,"Unknown":1}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A03","name":"Injection","severity":"medium","findings_count":1,"description":"User-supplied data is not validated, filtered, or sanitized by the application","recommendations":["Use $wpdb->prepare() for all database queries — never interpolate or concatenate input","Sanitize all user input with appropriate WordPress functions","Escape output based on context (esc_html, esc_attr, etc.)","Never pass user input to eval(), include/require, or a variable function"],"findings_summary":["Reachable 'code_exec' sink x1 - 1 attacker-reachable 'code_exec' sink(s) found by the reachability analyzer"]},{"category":"A04","name":"Insecure Design","severity":"low","findings_count":1,"description":"Missing or ineffective control design — e.g. plugin files that perform work when requested directly, bypassing the WordPress bootstrap","recommendations":["Add a `defined('ABSPATH') || exit;` guard to every PHP file so it cannot be requested directly","Move logic out of directly-reachable files into hook callbacks loaded by WordPress","Threat-model unauthenticated entry points during design, not after release"],"findings_summary":["Direct file access: 1 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]},{"category":"A06","name":"Vulnerable and Outdated Components","severity":"low","findings_count":1,"description":"Using components with known vulnerabilities, or shipping releases that are stale on the upstream directory","recommendations":["Update the plugin to its latest stable release","Replace components that are no longer maintained upstream","Subscribe to vulnerability feeds for plugins you depend on (WPScan, Wordfence)","Audit bundled JS/PHP libraries for known CVEs"],"findings_summary":["Stale component: last updated 2022-03-30 4:55pm GMT (1513 days ago)"]}],"owasp_findings":{"A03":[{"type":"reachability_sink","sink":"code_exec","count":1,"risk":"1 attacker-reachable 'code_exec' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":1,"risk":"1 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}],"A06":[{"type":"stale_component","last_updated":"2022-03-30 4:55pm GMT","age_days":1513,"risk":"Plugin has not been updated upstream in 4+ years (1513 days) — increased risk of unpatched vulnerabilities"}]}}