WordPress / plugin-check

A repository for the new Plugin Check plugin from the WordPress Performance and Plugins Team.
https://wordpress.org/plugins/plugin-check/
GNU General Public License v2.0
237 stars 45 forks source link

Plugin Foundation #1

Closed mehulkaklotar closed 1 year ago

mehulkaklotar commented 1 year ago

Description

The initial plugin foundation will use package.json to make use of wp-scripts, wp-env, preparing husky and common infrastructure commands to format codes, run tests, etc, using the Performance Lab plugin as an example.

Composer packages will be installed like squizlabs/php_codesnifferand wp-coding-standards/wpcs. Composer will require PHP to be >=5.6 and autload classes with psr-4:

"autoload": {
    "psr-4": {
      "WordPress\\Plugin_Check\\": "includes"
    }
  }

Directory structure of the plugin

plugin-check/
├─ includes/
├─ tests/
├─ .gitignore
├─ composer.json
├─ CONTRIBUTING.md
├─ plugin-check.php
├─ README.md
├─ readme.txt

Acceptance Criteria

felixarntz commented 1 year ago

@jjgrainger The ACs look good to me, just nit-picking that we probably need a few more workflow related files, such as .editorconfig, possibly .nvmrc if we later also add package.json, things like that. We don't necessarily have to list those one by one in the ACs, but it would be good to follow the example of https://github.com/WordPress/performance.

jjgrainger commented 1 year ago

Thanks @felixarntz

I've updated the ACs to include the items you've raised and referenced the Performance Lab plugin as an example.

felixarntz commented 1 year ago

Thanks @jjgrainger, LGTM!