Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/min-and-max-purchase-for-woocommerce/woo-integration/vtmam-parent-definitions.php+132
Undefined variable: timeout
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.48ms] Passed 4 tests
Analyzing server-side resources used by Min and Max Purchase for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.75 ▼2.36 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.04 ▼3.98 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.26 ▲9.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.84 ▼15.55 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.64 ▼4.02 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
vtmam_ip_address |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Min and Max Purchase for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼1.39 | 1.82 ▲0.09 | 45.13 ▼1.28 |
Dashboard /wp-admin | 2,206 ▲15 | 5.90 ▲1.00 | 94.67 ▼10.14 | 38.17 ▼4.01 |
Posts /wp-admin/edit.php | 2,089 ▲21 | 2.02 ▲0.03 | 39.41 ▲4.83 | 35.00 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.75 ▼5.38 | 679.38 ▲7.13 | 52.04 ▼14.94 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.02 | 93.30 ▼9.25 | 43.19 ▼3.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- vtmam_ip_address
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/min-and-max-purchase-for-woocommerce/woo-integration/vtmam-parent-cart-validation.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/min-and-max-purchase-for-woocommerce/admin/vtmam-license-options.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/min-and-max-purchase-for-woocommerce/vt-minandmax-purchase.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/min-and-max-purchase-for-woocommerce/admin/vtmam-setup-options.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/min-and-max-purchase-for-woocommerce/woo-integration/vtmam-parent-definitions.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/min-and-max-purchase-for-woocommerce/core/vtmam-backbone.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/min-and-max-purchase-for-woocommerce/woo-integration/vtmam-parent-functions.php:866
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Min and Max Purchase Rule Screen), #2 (Group Search Criteria), #3 (Rule application method - Any), #4 (Rule application method - Each), #5 (Rule application method - All), #6 (Quantity or Price Min and Max Amount), #7 (Error Message at Checkout)
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
min-and-max-purchase-for-woocommerce/vt-minandmax-purchase.php 85% from 13 tests
The primary PHP file in "Min and Max Purchase for WooCommerce" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("min-and-max-purchase-for-woocommerce.php" instead of "vt-minandmax-purchase.php")
- Requires at least: The required version number must match the one declared in readme.txt ("3.3" instead of "2.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin7,844 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 1,913 | 2,805 | 6,479 |
CSS | 3 | 67 | 154 | 1,140 |
JavaScript | 2 | 37 | 53 | 221 |
INI | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 42.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 5.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 171 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 169 | 98.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.17% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 30 | |
▷ Global constants | 30 | 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
No PNG images were found in this plugin