Monorepo for the WordPress Performance Group, primarily for the Performance Lab plugin, which is a collection of standalone performance modules.
Learn more about the Performance Lab plugin.
To get started with contributing to the Performance Lab project:
- Fork the repository.
- Clone the fork locally.
- Run
composer install
in the project folder. - Run
npm install
in the project folder. - Start the development environment by running
npm run wp-env start
. - Go to
http://localhost:8888/wp-admin/
in your browser. - Log in using
admin
andpassword
.
See the section below for more details on how the environment works.
More details about getting started here.
In order to run the following commands, you need to have Node.js (including npm
) and Docker installed, and Docker needs to be up and running. The Docker configuration used relies on the @wordpress/env
package.
npm install
: Installs local development dependencies.npm run wp-env start
: Starts the local development environment.npm run wp-env stop
: Stops the local development environment.npm run lint-php
: Lints all PHP code.npm run format-php
: Formats all PHP code.npm run test-php
: Runs PHPUnit tests for all PHP code.npm run test-php-multisite
: Runs PHPUnit tests in multisite for all PHP code.