Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.66ms] Passed 4 tests
Server-side resources used by Order Reports for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.38 ▲2.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.37 ▼7.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.91 ▲1.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.65 ▼25.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.35 ▼2.85 |
Server storage [IO: ▲7.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 1,094 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Order Reports for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.47 ▼0.08 | 1.86 ▼0.05 | 45.26 ▲2.43 |
Dashboard /wp-admin | 2,200 ▲9 | 5.78 ▲0.89 | 93.24 ▼6.55 | 38.92 ▼4.21 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▲0.01 | 37.90 ▲4.05 | 34.34 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,529 ▲10 | 18.21 ▼5.09 | 618.16 ▼42.78 | 52.20 ▼7.47 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.17 ▼0.17 | 94.56 ▼4.17 | 41.71 ▼2.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wc-order-reports/includes/packages/vendor/markbaker/matrix/buildPhar.php
- > /wp-content/plugins/wc-order-reports/public/partials/wc-order-reports-public-display.php
- 443× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Filter' not found in wp-content/plugins/wc-order-reports/includes/packages/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Filter/YouTube.php:3
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/wc-order-reports/includes/packages/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS.php:14
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Style\\ConditionalFormatting\\Wizard\\WizardAbstract' not found in wp-content/plugins/wc-order-reports/includes/packages/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/Blanks.php:15
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef\\LookupRefValidations' not found in wp-content/plugins/wc-order-reports/includes/packages/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Sort.php:12
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\BaseWriter' not found in wp-content/plugins/wc-order-reports/includes/packages/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods.php:18
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/wc-order-reports/includes/packages/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Trends.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'ZipStream\\Exception' not found in wp-content/plugins/wc-order-reports/includes/packages/vendor/maennchen/zipstream-php/src/Exception/EncodingException.php:11
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/wc-order-reports/includes/packages/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTimeExcel/Difference.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/wc-order-reports/includes/packages/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Object.php:8
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/wc-order-reports/includes/packages/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Binomial.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("")
- Requires php: The plugin version is formatted incorrectly
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
wc-order-reports/wc-order-reports.php 92% from 13 tests
"Order Reports for WooCommerce" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)
Code Analysis 95% from 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
There were no executable files found in this plugin120,208 lines of code in 879 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 822 | 20,506 | 53,399 | 100,247 |
JavaScript | 7 | 311 | 333 | 14,923 |
CSS | 5 | 67 | 131 | 1,815 |
Markdown | 22 | 547 | 0 | 1,499 |
JSON | 12 | 0 | 0 | 1,169 |
YAML | 5 | 51 | 0 | 237 |
SVG | 1 | 0 | 0 | 212 |
XML | 4 | 20 | 4 | 105 |
INI | 1 | 1 | 1 | 1 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,022)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 333)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,022.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 333.00 |
Code structure | ||
---|---|---|
Namespaces | 87 | |
Interfaces | 29 | |
Traits | 1 | |
Classes | 762 | |
▷ Abstract classes | 44 | 5.77% |
▷ Concrete classes | 718 | 94.23% |
▷ Final classes | 4 | 0.56% |
Methods | 5,710 | |
▷ Static methods | 1,714 | 30.02% |
▷ Public methods | 4,241 | 74.27% |
▷ Protected methods | 312 | 5.46% |
▷ Private methods | 1,157 | 20.26% |
Functions | 140 | |
▷ Named functions | 85 | 60.71% |
▷ Anonymous functions | 55 | 39.29% |
Constants | 1,309 | |
▷ Global constants | 15 | 1.15% |
▷ Class constants | 1,294 | 98.85% |
▷ Public constants | 1,193 | 92.19% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.27MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/download.png | 1.27KB | 0.54KB | ▼ 57.80% |
admin/css/images/ui-icons_cd0a0a_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
admin/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |
admin/images/chart.png | 2.21KB | 1.11KB | ▼ 49.78% |
admin/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.12KB | ▼ 67.68% |