One-click install
npx skills add https://github.com/artisanworkshop/Japanized-for-WooCommerce --skill wp-security-check-artisanworkshop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-security-check
Source: https://github.com/artisanworkshop/Japanized-for-WooCommerce/tree/main/.claude/skills/wp-security-check
Command: npx skills add https://github.com/artisanworkshop/Japanized-for-WooCommerce --skill wp-security-check-artisanworkshop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you find common WordPress plugin security weaknesses before they reach production, reducing the risk of XSS, CSRF, SQL injection, privilege escalation, and insecure REST endpoints.

Core Features & Use Cases

  • Comprehensive security audit: Reviews nonce validation, capability checks, input sanitization, and output escaping patterns across plugin code.
  • SQL injection prevention checks: Flags unsafe uses of $wpdb where variable queries are not protected by $wpdb->prepare().
  • WooCommerce- and payment-specific guidance: Verifies REST permission callbacks, checks for PCI DSS-relevant issues (card data logging/storage), and enforces WooCommerce HPOS order-meta patterns.

Quick Start

Run the wp-security-check skill on your plugin root path with an audit scope (full plugin or specific files) and set whether payment processing is involved so the PCI DSS checks apply.

Frequently Asked Questions about wp-security-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit my WordPress plugin code for SQL injection and CSRF vulnerabilities?

To audit WordPress plugin code for SQL injection and CSRF vulnerabilities, scan PHP files for missing nonce validation and unsafe $wpdb variable queries lacking $wpdb->prepare(). This identifies failures in nonce checks and unprotected database calls before production.

Does this WordPress security audit check WooCommerce REST API permission callbacks and HPOS patterns?

Yes, a WordPress security audit can check WooCommerce REST API permission callbacks and HPOS patterns by verifying permission_callback enforcement and scanning for correct order-meta usage within WooCommerce 9.0+ and WordPress 6.7+ contexts.

What is the best way to check my plugin for PCI DSS compliance regarding card data storage?

The best way to check plugin code for PCI DSS compliance is to scan payment processing logic for insecure card data logging or storage. This flags PCI DSS-relevant hygiene issues and payment logger vulnerabilities during static code review.

How do I verify capability checks and output escaping in my custom WordPress admin pages?

To verify capability checks and output escaping in custom WordPress admin pages, scan the code for current_user_can gates and required escaping functions. This detects missing privilege escalation protections and XSS prevention patterns.

Can I scan specific plugin files for AJAX nonce validation instead of the full plugin directory?

Yes, you can scan specific plugin files for AJAX nonce validation by setting the audit scope to target individual files instead of the full plugin. This narrows the static review to check_ajax_referer patterns within defined routes.

Why does my WordPress plugin fail REST API permission checks during a security review?

A WordPress plugin fails REST API permission checks during a security review when route registration flows lack proper permission_callback enforcement. Static scanning identifies missing REST API permission controls that expose endpoints to unauthorized access.