Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    WordPress Security Review (Plugins and Themes)

    by Saizul Amin

    1

    Security review of WordPress plugin or theme PHP code - escaping, sanitization, nonces, capability checks, $wpdb->prepare(), REST permission callbacks, file and shell functions.

    $10

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    WordPress Security Review (Plugins and Themes)

    WordPress Security Review (Plugins and Themes)

    Example session with this skill installed

    Run the WordPress Security Review skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the wordpress security review

    Here is what the WordPress Security Review (Plugins and Themes) skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:6: [HIGH] WPS011 AJAX/admin-post handler file has no nonce check
        add_action( 'wp_ajax_demo_save', 'demo_save' );
        fix: Call check_ajax_referer() / check_admin_referer() at the start of the handler.
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:6: [MEDIUM] WPS017 Privileged AJAX/admin-post handler file has no capability check
        add_action( 'wp_ajax_demo_save', 'demo_save' );
        fix: Check current_user_can( 'manage_options' ) (or a narrower cap) in the handler.
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:10: [MEDIUM] WPS012 Request data used without sanitization
        $id   = $_POST['id'];
        fix: Wrap with wp_unslash() then sanitize_text_field()/absint()/sanitize_key() etc.
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:12: [CRITICAL] WPS003 Request data concatenated into SQL (SQL injection)
        $wpdb->query( "DELETE FROM {$wpdb->posts} WHERE ID = " . $_POST['id'] );
        fix: Never concatenate request data into SQL; use $wpdb->prepare() with placeholders.
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:13: [HIGH] WPS002 SQL query built with variables and no $wpdb->prepare()
        $rows = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}demo WHERE name = '$name'" );
        fix: Use $wpdb->prepare( 'SELECT ... WHERE id = %d', $id ).
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:15: [LOW] WPS016 Quoted placeholder in $wpdb->prepare() ('%s' should be %s)
        $bad  = $wpdb->prepare( "SELECT * FROM t WHERE a = '%s'", $name );
        fix: prepare() quotes %s itself; remove the quotes around the placeholder.
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:16: [HIGH] WPS001 Superglobal echoed without escaping (XSS)
        echo $_GET['msg'];
        fix: Escape late: esc_html(), esc_attr(), esc_url() or wp_kses_post() on output.
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:18: [LOW] WPS013 Variable echoed without an escaping function
        echo $name;
        fix: Escape late even for 'trusted' values: echo esc_html( $value );
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:19: [HIGH] WPS005 unserialize() on request data (object injection)
        $data = unserialize( $_COOKIE['prefs'] );
        fix: Use json_decode() for untrusted data, or maybe_unserialize() only on trusted data.
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:20: [CRITICAL] WPS007 include/require path built from request data
        include $_GET['tpl'] . '.php';
        fix: Map request values to a fixed whitelist of files; never build include paths.
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:21: [HIGH] WPS008 extract() on request data
        extract( $_REQUEST );
        fix: Read the specific keys you need and sanitize each one.
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:22: [MEDIUM] WPS014 Redirect to request data without wp_safe_redirect()
        wp_redirect( $_GET['back'] );
        fix: Use wp_safe_redirect( wp_validate_redirect( $url, admin_url() ) ); exit;
    -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/wordpress-dev-skills/tests/fixtures/security/vulnerable.php:23: [HIGH] WPS015 Filesystem function called with request data (path traversal)
        readfile( $_GET['file'] );
        fix: Validate with validate_file() / rea
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Security review of WordPress plugin or theme PHP code - escaping, sanitization, nonces, capability checks, $wpdb->prepare(), REST permission callbacks, file and shell functions. Includes a scanner script that flags risky patterns with file:line and a fix.

    Who it's for

    Use when reviewing or auditing a WordPress plugin/theme, before a release or WordPress.org submission, when a PR touches forms, AJAX, REST routes or SQL, or when the user asks "is this plugin secure?".

    What's inside

    • Tested, offline Python script(s): wp_security_scan.py (deterministic results, standard library only unless noted)
    • Reference guides: patterns.md, rules.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; Workflow; Entry-point checklist; Suppressing reviewed lines; Security review: <plugin> <version>

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/wordpress-dev-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    Security review of WordPress plugin or theme PHP code - escaping, sanitization, nonces, capability checks, $wpdb->prepare(), REST permission callbacks, file and shell functions. Includes a scanner script that flags risky patterns with file:line and a fix.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use WordPress Security Review (Plugins and Themes) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.