Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Performant WP Query Check #193

Merged
merged 16 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"require": {
"php": ">=5.6",
"composer/installers": "^v1.12.0 || ^2.2",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"wp-coding-standards/wpcs": "dev-develop#fca9d9e"
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0",
"wp-coding-standards/wpcs": "dev-develop#fca9d9e as 2.3.0",
"automattic/vipwpcs": "2.3.3",
"cweagans/composer-patches": "^1.7"
},
"require-dev": {
"wp-phpunit/wp-phpunit": "^6.1",
Expand Down Expand Up @@ -36,12 +38,21 @@
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true,
"phpstan/extension-installer": true
"phpstan/extension-installer": true,
"cweagans/composer-patches": true
},
"platform": {
"php": "5.6.20"
}
},
"extra": {
"enable-patching": true,
"patches": {
"automattic/vipwpcs": {
"Fix incompatablity wp-coding-standards/wpcs": "patches/remove-rules.patch"
}
}
},
"autoload": {
"psr-4": {
"WordPress\\Plugin_Check\\": "includes/"
Expand Down
231 changes: 196 additions & 35 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions includes/Checker/Abstract_Check_Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ private function register_checks() {
'late_escaping' => new Checks\Late_Escaping_Check(),
'plugin_updater' => new Checks\Plugin_Updater_Check(),
'plugin_review_phpcs' => new Checks\Plugin_Review_PHPCS_Check(),
'performant_wp_query_params' => new Checks\Performant_WP_Query_Params_Check(),
'enqueued_scripts_in_footer' => new Checks\Enqueued_Scripts_In_Footer_Check(),
'plugin_readme' => new Checks\Plugin_Readme_Check(),
'enqueued_styles_scope' => new Checks\Enqueued_Styles_Scope_Check(),
Expand Down
Loading