wp-coding-standards

Enforce WordPress plugin coding standards for PHP, HTML, CSS, and JavaScript.

1|Updated May 21, 2025
One-click install
npx skills add https://github.com/WebJax/fb-post-scheduler --skill wp-coding-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-coding-standards
Source: https://github.com/WebJax/fb-post-scheduler/tree/main/.github/wp-coding-standards
Command: npx skills add https://github.com/WebJax/fb-post-scheduler --skill wp-coding-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of coding standards to ensure consistent and high-quality development practices for WordPress plugins, improving maintainability and readability.

Core Features & Use Cases

  • General Principles: Guidelines for readability, consistency, and best practices.
  • File & Folder Structure: Recommendations for file naming conventions and directory organization.
  • PHP & WordPress: Best practices for PHP and WordPress-specific coding, including prefixing, escaping, and hooks.
  • HTML, CSS, and JavaScript: Standards for HTML5 semantic elements, CSS architecture, and JavaScript ES6+ features.
  • Comments & Documentation: Best practices for commenting and documenting code for readability and maintainability.
  • Version Control (Git): Best practices for commits, branches, and .gitignore rules.
  • Performance & Accessibility: Guidelines for optimizing performance and ensuring accessibility.
  • Tooling & Linting: Recommendations for linting and formatting tools.

Quick Start

Follow the coding standards outlined in the wp-coding-standards skill to review and improve your WordPress plugin code.

Frequently Asked Questions about wp-coding-standards

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

FAQPage Schema
What are the best WordPress plugin coding standards for PHP and JavaScript?

WordPress plugin coding standards enforce consistent practices for PHP, JavaScript, HTML, and CSS. They cover prefixing, escaping, hooks, ES6+ features, and semantic elements to ensure maintainable and readable code.

How do I structure files and folders for a WordPress plugin?

WordPress plugin file structure standards recommend specific directory organization and file naming conventions. Following these ensures logical separation of PHP, CSS, and JavaScript components for improved readability and maintainability.

Does this coding standard include guidelines for Git version control?

Yes, the WordPress coding standards include Git version control guidelines. These cover best practices for commits, branches, and .gitignore rules to maintain clean repository history during plugin development.

How do I configure linting and formatting tools for WordPress development?

WordPress development linting standards provide recommendations for configuring formatting tools. These tools automatically enforce PHP, HTML, CSS, and JavaScript coding practices, ensuring consistent code quality across your plugin.

What should I document in my WordPress plugin code for accessibility and performance?

WordPress plugin documentation standards require specific comments for accessibility and performance optimization. Documenting these practices ensures your code remains readable, maintainable, and compliant with established WordPress guidelines.