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.12MB] [CPU: ▼4.40ms] Passed 4 tests
Analyzing server-side resources used by Min Max Control - Min Max Quantity & Step Control for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 35.57 ▼7.22 |
Dashboard /wp-admin | 3.43 ▲0.12 | 47.80 ▼2.99 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 45.40 ▼0.09 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 82.66 ▼7.30 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.88 ▲3.17 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 166 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
wcmmq_minmaxstep |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Min Max Control - Min Max Quantity & Step Control 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,814 ▲27 | 14.17 ▼0.18 | 1.74 ▼0.19 | 27.74 ▼16.52 |
Dashboard /wp-admin | 2,219 ▲42 | 5.62 ▲0.04 | 88.34 ▼12.99 | 47.81 ▲5.22 |
Posts /wp-admin/edit.php | 2,125 ▲22 | 2.12 ▼0.00 | 39.61 ▲3.68 | 42.55 ▲5.62 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.15 ▼0.19 | 642.72 ▼55.55 | 55.79 ▼0.86 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.19 ▼0.00 | 98.19 ▼1.49 | 43.38 ▼0.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- wcmmq_minmaxstep
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-min-max-quantity-step-control-single/admin/page/addons-list.php
- 35× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-min-max-quantity-step-control-single/includes/set_max_min_quantity.php:156
- > PHP Warning
include(wp-content/plugins/woo-min-max-quantity-step-control-single/framework/ca-framework/ca-framework/loader.php): failed to open stream: No such file or directory in wp-content/plugins/woo-min-max-quantity-step-control-single/framework/ca-framework/example.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_object_taxonomies() in wp-content/plugins/woo-min-max-quantity-step-control-single/admin/page/main-page/supported-terms.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-min-max-quantity-step-control-single/admin/page/topbar.php:22
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-min-max-quantity-step-control-single/modules/module-page.php:15
- > PHP Fatal error
Uncaught Error: Class 'CA_Framework\\Form\\Inc\\Field_Base' not found in wp-content/plugins/woo-min-max-quantity-step-control-single/framework/ca-framework/form/fields/select.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-min-max-quantity-step-control-single/admin/plugin_setting_link.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_MMQ\\Core\\Base' not found in wp-content/plugins/woo-min-max-quantity-step-control-single/admin/admin-loader.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-min-max-quantity-step-control-single/admin/set_menu_and_fac.php:23
- > PHP Fatal error
Uncaught Error: Class 'WC_MMQ\\Core\\Base' not found in wp-content/plugins/woo-min-max-quantity-step-control-single/admin/page-loader.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #7, #8 in woo-min-max-quantity-step-control-single/assets to your readme.txt
woo-min-max-quantity-step-control-single/wcmmq.php 77% from 13 tests
Analyzing the main PHP file in "Min Max Control - Min Max Quantity & Step Control for WooCommerce" version 5.7
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 331 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-min-max-quantity-step-control-single.php" instead of "wcmmq.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin24,639 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 2,510 | 734 | 9,746 |
PHP | 56 | 1,334 | 2,062 | 5,874 |
CSS | 16 | 501 | 146 | 3,991 |
PO File | 21 | 1,383 | 1,467 | 3,934 |
HTML | 1 | 9 | 1 | 480 |
JSON | 1 | 0 | 0 | 478 |
SVG | 1 | 77 | 0 | 89 |
Markdown | 1 | 8 | 0 | 47 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 194 | |
▷ Static methods | 30 | 15.46% |
▷ Public methods | 167 | 86.08% |
▷ Protected methods | 9 | 4.64% |
▷ Private methods | 18 | 9.28% |
Functions | 51 | |
▷ Named functions | 43 | 84.31% |
▷ Anonymous functions | 8 | 15.69% |
Constants | 21 | |
▷ Global constants | 18 | 85.71% |
▷ Class constants | 3 | 14.29% |
▷ Public constants | 3 | 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
31 PNG files occupy 0.39MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/brand/social/skype.png | 1.77KB | 1.72KB | ▼ 2.71% |
assets/images/features/setting-bottom.png | 13.89KB | 8.70KB | ▼ 37.36% |
assets/images/min-max.png | 1.48KB | 0.85KB | ▼ 42.64% |
assets/images/products/wc-quantity-plus-minus-button.png | 3.01KB | 1.89KB | ▼ 36.97% |
assets/images/brand/social/wpt.png | 3.33KB | 1.89KB | ▼ 43.31% |