Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.68ms] Passed 4 tests
An overview of server-side resources used by WC Min Max Quantities - Set Minimum/Maximum Quantity & Price Limit with Step Control for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 38.60 ▼2.16 |
Dashboard /wp-admin | 3.57 ▲0.22 | 45.06 ▼15.33 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 47.81 ▲1.03 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 92.62 ▲2.72 |
Media Library /wp-admin/upload.php | 3.43 ▲0.19 | 33.55 ▲1.76 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
wcmmq_min_cart_qty |
wcmmq_min_qty |
wc_min_max_quantities_install_date |
wcmmq_step |
wcmmq_max_cart_qty |
wcmmq_min_cart_total |
widget_theysaidso_widget |
wcmmq_max_cart_total |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WC Min Max Quantities - Set Minimum/Maximum Quantity & Price Limit with Step Control for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲11 | 14.04 ▼0.31 | 1.59 ▼0.45 | 37.85 ▼9.57 |
Dashboard /wp-admin | 2,200 ▲23 | 5.61 ▲0.05 | 93.44 ▼7.86 | 41.79 ▼2.55 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 1.96 ▼0.04 | 41.36 ▼0.66 | 39.43 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,534 ▲7 | 23.21 ▼0.03 | 672.61 ▲63.53 | 51.82 ▲1.23 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.30 ▲0.10 | 98.16 ▼1.81 | 47.57 ▲4.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 15 options in the database
- widget_recent-comments
- db_upgraded
- wc_min_max_quantities_version
- widget_recent-posts
- theysaidso_admin_options
- wcmmq_max_cart_qty
- wcmmq_max_qty
- wcmmq_min_cart_qty
- widget_theysaidso_widget
- wcmmq_min_qty
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (34 tag instead of maximum 10)
wc-min-max-quantities/wc-min-max-quantities.php 92% from 13 tests
The principal PHP file in "WC Min Max Quantities - Set Minimum/Maximum Quantity & Price Limit with Step Control for WooCommerce" v. 1.1.7 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
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
There were no executable files found in this plugin1,993 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 441 | 1,508 | 1,992 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 24.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 166 | |
▷ Static methods | 22 | 13.25% |
▷ Public methods | 152 | 91.57% |
▷ Protected methods | 13 | 7.83% |
▷ Private methods | 1 | 0.60% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin