From d18e77c16fc7a0d12170b940e556e1d13a3c962f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 15 Jan 2026 18:51:22 +0000 Subject: [PATCH 1/5] Initial plan From 718acafed092da30539bb244b9aa9248e59d2c1c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 15 Jan 2026 18:53:51 +0000 Subject: [PATCH 2/5] Add GitHub Copilot instructions file Co-authored-by: westonruter <134745+westonruter@users.noreply.github.com> --- .github/copilot-instructions.md | 89 +++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 .github/copilot-instructions.md diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000000..3df0fdce70 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,89 @@ +# Copilot Instructions for Performance Lab + +This repository is a monorepo for the WordPress Performance Team, containing a collection of standalone performance feature plugins. When contributing to this project, follow these guidelines: + +## Project Structure + +- `/plugins/*` - Individual WordPress plugin folders +- `/plugins/*/tests` - PHPUnit tests for each plugin +- `/bin` - Custom CLI commands and scripts +- `/tools` - Setup and configuration files for linting and testing + +## Code Style Standards + +### PHP +- Follow [WordPress PHP Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/) +- Use procedural programming patterns (classes play a supporting role) +- Do NOT use namespaces (following WordPress core conventions) +- Use the most specific PHP type hints compatible with PHP 7.2+ +- For filter functions, accept `mixed` union types and validate at runtime +- Use PHPStan's PHPDoc Types (level 10 compliance) +- Never render `