Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.67ms] Passed 4 tests
Server-side resources used by Product Quantity, Minimum Maximum quantity & Minimum Order quantity WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 36.69 ▼6.57 |
Dashboard /wp-admin | 3.32 ▼0.03 | 46.47 ▼17.31 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.92 ▼1.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.86 ▼5.42 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.31 ▲0.12 |
Server storage [IO: ▲2.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Product Quantity, Minimum Maximum quantity & Minimum Order quantity WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.34 ▼0.03 | 1.56 ▼0.17 | 35.68 ▼8.62 |
Dashboard /wp-admin | 2,198 ▲20 | 5.56 ▼0.16 | 104.68 ▼8.02 | 45.75 ▲0.95 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▼0.01 | 40.38 ▲1.36 | 38.88 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.21 ▼0.23 | 597.50 ▼13.07 | 56.13 ▲8.48 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▲0.01 | 96.91 ▼3.74 | 41.63 ▼0.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 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 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/pisol-mmq/includes/pisol.class.form.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pisol-mmq/public/class-pisol-mmq-cart.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pisol-mmq/admin/class-admin-ajax.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pisol-mmq/public/class-pisol-mmq-cart-amount.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pisol-mmq/public/class-pisol-mmq-message.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pisol-mmq/includes/banner-sample.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pisol-mmq/includes/includes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pisol-mmq/public/class-pisol-mmq-product.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 need to be fixed:
- Screenshots: These screenshots lack descriptions #10, #11, #12, #13, #14, #4, #6, #7, #9 in pisol-mmq/assets to your readme.txt
- Donate link: Invalid URI found ("piwebsolution.com")
pisol-mmq/pisol-mmq.php 92% from 13 tests
The main PHP script in "Product Quantity, Minimum Maximum quantity & Minimum Order quantity WooCommerce" version 2.1.30 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 167 characters long)
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected16,339 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2,040 | 31 | 9,405 |
SVG | 8 | 246 | 7 | 4,513 |
PHP | 30 | 714 | 518 | 2,232 |
JavaScript | 4 | 36 | 42 | 173 |
XML | 1 | 0 | 0 | 16 |
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.36 |
Average class complexity | 12.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 24 | 16.22% |
▷ Public methods | 143 | 96.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.38% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.45MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/min-amount-category.png | 76.77KB | 25.01KB | ▼ 67.42% |
public/img/free-delivery.png | 200.80KB | 107.97KB | ▼ 46.23% |
admin/img/pi-web-solution.png | 21.25KB | 9.42KB | ▼ 55.67% |
includes/background.png | 74.27KB | 26.29KB | ▼ 64.60% |
admin/img/pi.png | 1.48KB | 1.11KB | ▼ 24.83% |