Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.77ms] Passed 4 tests
A check of server-side resources used by Min Max Default Quantity for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.31 ▼8.21 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.22 ▼6.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.66 ▼0.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.26 ▼21.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.45 ▼3.02 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Min Max Default Quantity for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.34 ▼0.30 | 1.97 ▲0.23 | 46.57 ▲7.12 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▼0.03 | 96.14 ▲0.46 | 39.67 ▼3.00 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▼0.04 | 39.62 ▲2.73 | 34.08 ▼5.52 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.24 ▲0.18 | 680.04 ▼11.56 | 52.53 ▼3.56 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.26 ▲0.15 | 101.13 ▼12.63 | 47.22 ▲1.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
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 everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 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
These attributes need your attention:
- Requires at least: Version not formatted correctly
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Plugin Main Page), #2 (Minimum Quantity Settings Page), #3 (Maximum Quantity Settings Page), #4 (Step Quantity Settings Page), #5 (Fixed Quantity Settings Page), #6 (Quantity Dropdown Settings Page), #7 (Price Display Settings Page), #8 (Quantity Info Control Settings Page), #9 (Advanced Settings Page)
product-quantity-for-woocommerce/product-quantity-for-woocommerce.php Passed 13 tests
The primary PHP file in "Min Max Default Quantity for WooCommerce" version 4.5.19 is used by WordPress to initiate all plugin functionality
129 characters long description:
Manage product quantity in WooCommerce, beautifully. Define a minimum / maximum / step quantity and more on WooCommerce products.
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 plugin13,135 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 970 | 1,796 | 7,417 |
JavaScript | 7 | 593 | 476 | 2,931 |
PO File | 3 | 755 | 1,160 | 2,267 |
CSS | 1 | 113 | 19 | 518 |
INI | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.77 |
Average class complexity | 54.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 943.00 |
Average method complexity | 8.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 1 | 3.85% |
Methods | 184 | |
▷ Static methods | 1 | 0.54% |
▷ Public methods | 184 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 15 | 88.24% |
▷ Anonymous functions | 2 | 11.76% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/js/select2.png | 0.51KB | 0.99KB | 0.00% |
includes/js/select2x2.png | 0.64KB | 0.77KB | 0.00% |