Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼149.18ms] Passed 4 tests
Analyzing server-side resources used by MaxiCharts Query Builder Add-on
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 37.86 ▲9.71 |
Dashboard /wp-admin | 3.17 ▲0.11 | 44.46 ▼10.46 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 42.62 ▼9.79 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 97.42 ▼576.84 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 34.48 ▲0.38 |
Server storage [IO: ▲27.44MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Total filesystem usage must be limited to 25MB (currently using 27.44MB)
Filesystem: 2,073 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
MaxiCharts Query Builder Add-on: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.93 ▲0.41 | 10.85 ▼0.54 | 48.18 ▼3.71 |
Dashboard /wp-admin | 2,970 ▲36 | 5.95 ▲0.00 | 149.38 ▼19.06 | 109.79 ▼7.40 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 69.45 ▼13.52 | 88.64 ▼11.16 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.75 ▲1.69 | 432.47 ▲20.23 | 113.45 ▲2.34 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.01 ▼0.01 | 154.48 ▼0.96 | 121.90 ▼13.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 130× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Assetic\\Factory\\Resource\\ResourceInterface' not found in wp-content/plugins/maxicharts-query-builder-add-on/libs/vendor/kriswallsmith/assetic/src/Assetic/Factory/Resource/IteratorResourceInterface.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Assetic\\Factory\\Loader\\FormulaLoaderInterface' not found in wp-content/plugins/maxicharts-query-builder-add-on/libs/vendor/kriswallsmith/assetic/src/Assetic/Factory/Loader/BasePhpFormulaLoader.php:23
- > PHP Fatal error
Uncaught Error: Class 'Assetic\\Filter\\BaseCssFilter' not found in wp-content/plugins/maxicharts-query-builder-add-on/libs/vendor/kriswallsmith/assetic/src/Assetic/Filter/CssCacheBustingFilter.php:22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Process\\Pipes\\AbstractPipes' not found in wp-content/plugins/maxicharts-query-builder-add-on/libs/vendor/symfony/process/Pipes/UnixPipes.php:23
- > PHP Fatal error
Uncaught Error: Class 'Assetic\\Filter\\BaseNodeFilter' not found in wp-content/plugins/maxicharts-query-builder-add-on/libs/vendor/kriswallsmith/assetic/src/Assetic/Filter/LessFilter.php:26
- > PHP Fatal error
Uncaught Error: Class 'Assetic\\Asset\\BaseAsset' not found in wp-content/plugins/maxicharts-query-builder-add-on/libs/vendor/kriswallsmith/assetic/src/Assetic/Asset/FileAsset.php:22
- > PHP Fatal error
Uncaught Error: Class 'ComponentInstaller\\Test\\Process\\ProcessTest' not found in wp-content/plugins/maxicharts-query-builder-add-on/libs/vendor/robloach/component-installer/tests/ComponentInstaller/Test/Process/RequireJsProcessTest.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Assetic\\Filter\\DependencyExtractorInterface' not found in wp-content/plugins/maxicharts-query-builder-add-on/libs/vendor/kriswallsmith/assetic/src/Assetic/Filter/PhpCssEmbedFilter.php:24
- > PHP Warning
Use of undefined constant STDIN - assumed 'STDIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/maxicharts-query-builder-add-on/libs/vendor/symfony/process/Tests/PipeStdinInStdoutStdErrStreamSelect.php on line 17
- > PHP Warning
Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/maxicharts-query-builder-add-on/libs/vendor/symfony/process/Tests/PipeStdinInStdoutStdErrStreamSelect.php on line 22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in maxicharts-query-builder-add-on/assets to your readme.txt
- Tags: There are too many tags (26 tag instead of maximum 10)
maxicharts-query-builder-add-on/maxicharts_querybuilder_add_on.php 77% from 13 tests
"MaxiCharts Query Builder Add-on" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("maxicharts-query-builder-add-on.php" instead of "maxicharts_querybuilder_add_on.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected399,323 lines of code in 1,756 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1,142 | 40,852 | 31,445 | 289,917 |
HTML | 55 | 6,637 | 786 | 31,835 |
CSS | 40 | 1,432 | 149 | 26,040 |
JSON | 93 | 107 | 0 | 23,109 |
PHP | 160 | 3,004 | 5,186 | 11,344 |
LESS | 71 | 1,175 | 1,542 | 5,590 |
Sass | 97 | 1,324 | 1,082 | 5,474 |
Markdown | 34 | 1,228 | 0 | 2,928 |
TypeScript | 49 | 613 | 339 | 2,521 |
SVG | 1 | 0 | 0 | 288 |
YAML | 9 | 28 | 18 | 165 |
XML | 3 | 5 | 0 | 75 |
Bourne Shell | 1 | 12 | 0 | 35 |
Windows Module Definition | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 15 | |
Traits | 0 | |
Classes | 137 | |
▷ Abstract classes | 13 | 9.49% |
▷ Concrete classes | 124 | 90.51% |
▷ Final classes | 0 | 0.00% |
Methods | 1,010 | |
▷ Static methods | 30 | 2.97% |
▷ Public methods | 917 | 90.79% |
▷ Protected methods | 49 | 4.85% |
▷ Private methods | 44 | 4.36% |
Functions | 36 | |
▷ Named functions | 9 | 25.00% |
▷ Anonymous functions | 27 | 75.00% |
Constants | 68 | |
▷ Global constants | 7 | 10.29% |
▷ Class constants | 61 | 89.71% |
▷ Public constants | 61 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/vendor/mistic100/jquery-querybuilder/examples/screenshot.png | 15.28KB | 7.35KB | ▼ 51.91% |
libs/node_modules/jQuery-QueryBuilder/examples/screenshot.png | 15.28KB | 7.35KB | ▼ 51.91% |