Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.22ms] Passed 4 tests
Server-side resources used by Product Configurator for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.80 ▲0.99 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.82 ▼16.05 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.67 ▼3.24 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 83.12 ▼20.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.60 ▼1.06 |
Server storage [IO: ▲4.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 434 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Configurator for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.31 ▲0.07 | 1.74 ▼0.16 | 46.26 ▲2.11 |
Dashboard /wp-admin | 2,209 ▲28 | 5.60 ▼0.07 | 94.97 ▼18.85 | 38.95 ▼4.74 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.04 ▲0.02 | 34.33 ▼4.71 | 35.53 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,535 ▲6 | 23.12 ▲0.15 | 684.06 ▲96.14 | 52.46 ▼0.85 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.18 ▼0.02 | 99.00 ▲0.61 | 40.71 ▼0.43 |
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 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 137× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/product-configurator-for-woocommerce/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Imagick\\Commands\\ResizeCommand' not found in wp-content/plugins/product-configurator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/WidenCommand.php:5
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/product-configurator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/RotateCommand.php:8
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/product-configurator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/BackupCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Exception\\ImageException' not found in wp-content/plugins/product-configurator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Exception/NotReadableException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/product-configurator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Commands/EllipseCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/product-configurator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Commands/OrientateCommand.php:5
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Imagick\\Commands\\ResizeCommand' not found in wp-content/plugins/product-configurator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/HeightenCommand.php:5
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/product-configurator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/GetSizeCommand.php:8
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/product-configurator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/TrimCommand.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: product addons, customize, woocommerce, configure
product-configurator-for-woocommerce/woocommerce-mkl-product-configurator.php 85% from 13 tests
"Product Configurator for WooCommerce" version 1.2.57's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("product-configurator-for-woocommerce.php" instead of "woocommerce-mkl-product-configurator.php")
- Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin48,913 lines of code in 376 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 237 | 3,851 | 7,032 | 17,053 |
Sass | 22 | 1,477 | 457 | 12,776 |
CSS | 11 | 387 | 157 | 10,379 |
JavaScript | 87 | 1,029 | 867 | 6,570 |
Markdown | 6 | 542 | 0 | 866 |
PO File | 2 | 280 | 301 | 620 |
JSON | 7 | 0 | 0 | 610 |
SVG | 3 | 0 | 1 | 28 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 190 | |
▷ Abstract classes | 8 | 4.21% |
▷ Concrete classes | 182 | 95.79% |
▷ Final classes | 22 | 12.09% |
Methods | 1,076 | |
▷ Static methods | 89 | 8.27% |
▷ Public methods | 924 | 85.87% |
▷ Protected methods | 47 | 4.37% |
▷ Private methods | 105 | 9.76% |
Functions | 109 | |
▷ Named functions | 67 | 61.47% |
▷ Anonymous functions | 42 | 38.53% |
Constants | 34 | |
▷ Global constants | 8 | 23.53% |
▷ Class constants | 26 | 76.47% |
▷ Public constants | 15 | 57.69% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
21 PNG files occupy 1.27MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/addons/mkl-pc-stock-management.png | 2.21KB | 2.30KB | 0.00% |
assets/admin/images/addons/mkl-pc-form-fields.png | 3.31KB | 1.29KB | ▼ 60.96% |
inc/themes/wsb/preview.png | 108.64KB | 116.41KB | 0.00% |
inc/themes/old-default/preview.png | 81.24KB | 32.79KB | ▼ 59.64% |
inc/themes/la-pomme/preview.png | 269.40KB | 88.62KB | ▼ 67.11% |