What problem does it solve?
This Skill addresses the need for high-quality, maintainable, and standards-compliant WordPress code by providing automated checks for coding standards, static analysis, architectural patterns, and error handling.
Core Features & Use Cases
- Coding Standards Enforcement: Verifies adherence to WordPress PHP, JavaScript, CSS, and HTML coding standards.
- Static Analysis: Utilizes tools like PHPCS, PHPStan, Psalm, and ESLint to detect bugs, vulnerabilities, and code smells.
- Architecture Review: Assesses the use of WordPress hooks, namespacing, autoloading, and separation of concerns.
- Error Handling Validation: Checks for graceful error management and the use of WordPress error patterns.
- Deprecated Function Detection: Identifies the use of outdated or removed functions.
- Use Case: Before deploying a custom plugin or theme, use this Skill to perform a comprehensive code audit, ensuring it meets WordPress best practices and is free from common pitfalls.
Quick Start
Run a full code quality analysis on the /path/to/your/wordpress/plugin directory.