Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼136.14ms] Passed 4 tests
An overview of server-side resources used by WP Query Generator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 33.81 ▲4.95 |
Dashboard /wp-admin | 3.08 ▲0.02 | 44.37 ▲10.20 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 41.91 ▼3.65 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 91.95 ▼546.42 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.31 ▲0.58 |
WP_Query Generator /wp-admin/tools.php?page=wp-query-generator | 3.16 | 55.76 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 67 new files
Database: no new tables, 1 new option
New WordPress options |
---|
category_children |
Browser metrics Passed 4 tests
A check of browser resources used by WP Query Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.90 ▲0.24 | 7.14 ▼1.58 | 46.99 ▼2.65 |
Dashboard /wp-admin | 2,975 ▲41 | 5.89 ▼0.05 | 124.22 ▼17.78 | 105.99 ▼12.05 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 64.75 ▼7.75 | 96.16 ▲14.97 |
Add New Post /wp-admin/post-new.php | 1,501 ▼171 | 18.92 ▼0.26 | 373.26 ▲1.51 | 106.26 ▼4.56 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.02 ▲0.01 | 150.62 ▼11.58 | 116.69 ▼7.17 |
WP_Query Generator /wp-admin/tools.php?page=wp-query-generator | 4,138 | 3.47 | 136.66 | 97.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- category_children
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=wp-query-generator
- > Warning in wp-content/plugins/query-generator/includes/templates/form-parts/meta-query.php+47
array_values() expects parameter 1 to be array, null given
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/query-generator/includes/templates/preview/posts-list.php
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'meAnjanWqg_Posts' not found in wp-content/plugins/query-generator/includes/templates/form-parts/sorting.php:2
- > PHP Fatal error
Uncaught Error: Class 'meAnjanWqg_Utils' not found in wp-content/plugins/query-generator/includes/templates/form-parts/date.php:7
- > PHP Fatal error
Uncaught Error: Class 'meAnjanWqg_Posts' not found in wp-content/plugins/query-generator/includes/templates/form-parts/meta.php:13
- > PHP Fatal error
Uncaught Error: Class 'meAnjanWqg_Main' not found in wp-content/plugins/query-generator/includes/templates/form-parts/index.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function getGeneratedArgs() on null in wp-content/plugins/query-generator/includes/templates/preview/index.php:17
- > PHP Notice
Undefined variable: gen in wp-content/plugins/query-generator/includes/templates/preview/index.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'meAnjanWqg_Categories' not found in wp-content/plugins/query-generator/includes/templates/form-parts/category.php:8
- > PHP Fatal error
Uncaught Error: Class 'meAnjanWqg_Utils' not found in wp-content/plugins/query-generator/includes/templates/form-parts/meta-query.php:24
- > PHP Fatal error
Uncaught Error: Class 'meAnjanWqg_Utils' not found in wp-content/plugins/query-generator/includes/templates/form-parts/pagination.php:6
- > PHP Fatal error
Uncaught Error: Class 'meAnjanWqg_Utils' not found in wp-content/plugins/query-generator/includes/templates/form-parts/taxonomy.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: code, generator
query-generator/index.php 92% from 13 tests
The principal PHP file in "WP Query Generator" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("query-generator.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected7,673 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 19 | 26 | 274 | 3,487 |
PHP | 30 | 1,600 | 665 | 2,880 |
JavaScript | 6 | 533 | 274 | 766 |
Sass | 1 | 145 | 0 | 424 |
JSON | 2 | 0 | 0 | 116 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 31.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 5.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 32 | 50.00% |
▷ Public methods | 62 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.12% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 6 | 40.00% |
▷ Class constants | 9 | 60.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.19MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 43.31KB | 17.79KB | ▼ 58.92% |
assets/js/lib/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/js/lib/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/screenshot-2.png | 74.93KB | 29.94KB | ▼ 60.05% |
assets/screenshot-1.png | 75.60KB | 31.58KB | ▼ 58.22% |