Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.22ms] Passed 4 tests
Server-side resources used by Minimum and Maximum Quantity for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.43 ▼9.67 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.94 ▼16.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.55 ▼5.63 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.99 ▼12.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.93 ▲3.50 |
Server storage [IO: ▲4.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 246 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
fs_active_plugins |
widget_recent-posts |
fs_accounts |
widget_recent-comments |
can_compress_scripts |
mmqw_version |
fs_debug_mode |
Browser metrics Passed 4 tests
Checking browser requirements for Minimum and Maximum Quantity for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.19 ▼0.18 | 1.77 ▼0.91 | 43.50 ▲0.27 |
Dashboard /wp-admin | 2,195 ▲17 | 5.62 ▼0.04 | 89.84 ▼26.09 | 37.86 ▼4.50 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.03 | 34.50 ▼8.23 | 34.94 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.08 ▲4.67 | 666.46 ▲49.26 | 59.65 ▼7.13 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.34 ▲0.13 | 110.87 ▲11.85 | 49.91 ▲5.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 10 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- fs_debug_mode
- mmqw_version
- widget_recent-posts
- fs_accounts
- widget_recent-comments
- fs_active_plugins
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
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
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #4 in min-and-max-quantity-for-woocommerce/assets to your readme.txt
min-and-max-quantity-for-woocommerce/min-and-max-quantity-for-woocommerce.php 92% from 13 tests
The entry point to "Minimum and Maximum Quantity for WooCommerce" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin39,878 lines of code in 168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 8,524 | 18,473 | 36,970 |
PO File | 4 | 628 | 953 | 1,566 |
JavaScript | 6 | 109 | 167 | 833 |
CSS | 19 | 26 | 28 | 499 |
SVG | 3 | 0 | 0 | 8 |
Markdown | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 87.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,369 | |
▷ Static methods | 214 | 15.63% |
▷ Public methods | 963 | 70.34% |
▷ Protected methods | 20 | 1.46% |
▷ Private methods | 386 | 28.20% |
Functions | 105 | |
▷ Named functions | 105 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 154 | |
▷ Global constants | 104 | 67.53% |
▷ Class constants | 50 | 32.47% |
▷ Public constants | 50 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.58MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/thedotstore-images/popular-plugins/hide-shipping-method-for-woocommerce.png | 7.13KB | 2.75KB | ▼ 61.38% |
admin/images/thedotstore-images/popular-plugins/Advance-Product-Sample-Plugin.png | 11.96KB | 4.80KB | ▼ 59.83% |
admin/css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
admin/images/menu-icon.png | 2.02KB | 0.66KB | ▼ 67.52% |
admin/images/thedotstore-images/popular-plugins/WooCommerce-Blocker-Prevent-Fake-Orders.png | 6.83KB | 6.87KB | 0.00% |