Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > User error in wp-content/plugins/woocommerce-order-product-count/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
Server metrics [RAM: ▼1.92MB] [CPU: ▼53.40ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Order Product Count
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.85 ▼35.49 |
Dashboard /wp-admin | 2.10 ▼1.24 | 5.90 ▼56.23 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 5.60 ▼40.42 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.09 ▼81.45 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.96 ▼27.55 |
Server storage [IO: ▲92.21MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- Try to limit filesystem usage to 25MB (currently using 92.21MB)
Filesystem: 668 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WooCommerce Order Product Count: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲54 | 14.43 ▼0.12 | 1.57 ▲0.02 | 43.58 ▲2.37 |
Dashboard /wp-admin | 2,194 ▲19 | 5.51 ▼0.11 | 80.78 ▼20.57 | 76.96 ▲33.54 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.01 | 34.44 ▼2.93 | 33.86 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.71 ▼0.95 | 659.75 ▲3.89 | 57.77 ▲2.16 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.14 ▼0.09 | 98.77 ▼6.92 | 42.26 ▼3.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > User error in wp-content/plugins/woocommerce-order-product-count/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16.
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 230× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/woocommerce-order-product-count/vendor/mpdf/mpdf/src/Tag/Q.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/woocommerce-order-product-count/vendor/mpdf/mpdf/src/Tag/Cite.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/woocommerce-order-product-count/vendor/mpdf/mpdf/src/Barcode/Code93.php:9
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/woocommerce-order-product-count/vendor/mpdf/mpdf/src/Tag/Dd.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/woocommerce-order-product-count/vendor/mpdf/mpdf/src/Tag/S.php:5
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\TypeFilter\\TypeFilter' not found in wp-content/plugins/woocommerce-order-product-count/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ShallowCopyFilter.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\TTFontFile' not found in wp-content/plugins/woocommerce-order-product-count/vendor/mpdf/mpdf/src/TTFontFileAnalysis.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/woocommerce-order-product-count/vendor/mpdf/mpdf/src/Tag/Dt.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\SubstituteTag' not found in wp-content/plugins/woocommerce-order-product-count/vendor/mpdf/mpdf/src/Tag/Tts.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woocommerce-order-product-count/vendor/mpdf/mpdf/data/CJKdata.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: bulk, pdf, export, order, woocommerce
woocommerce-order-product-count/wc-order-product-count.php 85% from 13 tests
This is the main PHP file of "WooCommerce Order Product Count" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-order-product-count.php" instead of "wc-order-product-count.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 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin79,055 lines of code in 464 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 413 | 11,691 | 12,757 | 76,410 |
Markdown | 13 | 481 | 0 | 1,472 |
JSON | 23 | 0 | 0 | 454 |
CSS | 2 | 65 | 18 | 405 |
YAML | 9 | 63 | 4 | 236 |
XML | 3 | 10 | 0 | 75 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 7,021)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 55.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,021.00 |
Average method complexity | 13.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 20 | |
Traits | 9 | |
Classes | 295 | |
▷ Abstract classes | 8 | 2.71% |
▷ Concrete classes | 287 | 97.29% |
▷ Final classes | 14 | 4.88% |
Methods | 1,509 | |
▷ Static methods | 144 | 9.54% |
▷ Public methods | 1,312 | 86.94% |
▷ Protected methods | 56 | 3.71% |
▷ Private methods | 141 | 9.34% |
Functions | 36 | |
▷ Named functions | 13 | 36.11% |
▷ Anonymous functions | 23 | 63.89% |
Constants | 429 | |
▷ Global constants | 5 | 1.17% |
▷ Class constants | 424 | 98.83% |
▷ Public constants | 424 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin