/wordpress-expert:security-analysisfrom wordpress-expert
Audits WordPress code for OWASP Top 10 and WordPress-specific vulnerabilities including SQL injection, XSS, CSRF, authentication flaws, and file security.
Ships in wordpress-expert. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Evaluate the codebase and configuration against OWASP Top 10 and WordPress-specific vulnerability patterns.
sanitize_text_field(), sanitize_email(), absint(), wp_kses(), wp_kses_post())$_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE are never used directly without sanitization$wpdb->prepare() for all parameterized queries — no raw string concatenation in SQLesc_url() used for all URLs before output or redirectesc_html()esc_attr()esc_js() or wp_json_encode()esc_url()esc_html__(), esc_html_e(), esc_attr__()echo of user-controlled dataeval(), assert(), preg_replace() with e modifier, or create_function()check_ajax_referer() or equivalent nonce verificationwp_verify_nonce()permission_callback (never __return_true for sensitive operations)current_user_can()) before any privileged operationhttpOnly, Secure, and SameSite flags where applicablewp_nonce_field()wp_create_nonce() / check_ajax_referer()$wpdb->prepare() with proper placeholders (%s, %d, %f)LIKE queries use $wpdb->esc_like() followed by $wpdb->prepare()dbDelta() with proper schemaquery() with unsanitized inputABSPATH check at top of PHP files.htaccess protectionwp-config.php not accessible from webdebug.log) not publicly accessiblephpinfo() calls in production codeWP_DEBUG set to false in productionWP_DEBUG_DISPLAY set to false in productionWP_DEBUG_LOG either false or logging to a non-public pathdisplay_errors = Off)wp_options without encryptionreadme.html and license.txt removed or access-restrictedbase64_decode(), gzinflate(), str_rot13(), gzuncompress() chainseval() usage with dynamic contentwp_options entriesnpm auditImmediate investigation triggers — if you encounter any of these, escalate severity:
eval() with any dynamic contentbase64_decode() followed by eval() or include$wpdb->prepare()wp_ajax_nopriv_ handlers without rate limiting or input validationWP_DEBUG set to true with WP_DEBUG_DISPLAY also true in productionwp_ table prefix in productionindex.php files missing from directories (directory traversal risk).git directory accessible from webwp-config.php backup files in webroot (wp-config.php.bak, wp-config.old)# Scan for eval() usage
grep -rn "eval(" /path/to/plugin --include="*.php"
# Scan for base64_decode (potential obfuscation)
grep -rn "base64_decode(" /path/to/plugin --include="*.php"
# Scan for direct superglobal usage (missing sanitization)
grep -rn '$_GET\|$_POST\|$_REQUEST\|$_SERVER\|$_COOKIE' /path/to/plugin --include="*.php"
# Scan for SQL queries without prepare (SQL injection risk)
grep -rn "query(" /path/to/plugin --include="*.php" | grep -v "prepare"
# Scan for common backdoor functions
grep -rn 'system(\|exec(\|passthru(\|shell_exec(\|popen(' /path/to/plugin --include="*.php"
# Verify WordPress core file checksums
wp core verify-checksums
# Verify plugin checksums
wp plugin verify-checksums --all
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: commands.batch: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.build: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.connect: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.diagnose: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.investigate: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.modify: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.status: Command must have either "source" (file path) or "content" (inline markdown), but not both, skills: Invalid input
.claude-plugin/plugin.json: commands.batch: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.build: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.connect: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.diagnose: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.investigate: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.modify: Command must have either "source" (file path) or "content" (inline markdown), but not both, commands.status: Command must have either "source" (file path) or "content" (inline markdown), but not both, skills: Invalid input
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
38 skills in this plugin
/accessibilityEvaluates WordPress sites against WCAG compliance and data privacy requirements. Use when auditing accessibility, reviewing GDPR compliance, or checking privacy implementations./build-contentInstall relevant WP.org plugins, generate AI placeholder content (pages, posts, menus), create placeholder images, and re-export the database for NL builds/build-gitInitialize git repository at build root, generate dynamic .gitignore excluding WP core and known components, commit after each build stage with conventional prefixes/build-mcpInstall, activate, and configure the WordPress MCP adapter in a build — copy from vendor/, activate via WP-CLI, re-export the database, write README.md, and update build.json/build-modifySession-aware per-step execution engine for /modify — surgical theme edits, WP-CLI content/plugin changes, lazy Docker startup, and versioned output on session completion/build-scaffoldScaffold a blank WordPress installation with Docker MySQL, WP-CLI, SQL export, zip packaging, and build.json manifestOther plugins' skills for the same job