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
Installer ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼5.49ms] Passed 4 tests
Server-side resources used by Maximum Purchase for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.67 | 17.55 ▼26.49 |
Dashboard /wp-admin | 3.39 ▲0.09 | 51.29 ▲3.06 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 54.34 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 102.84 ▲0.85 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 49.57 ▲15.11 |
Upgrade to Pro /wp-admin/edit.php?post_type=vtmax-rule&page=vtmax_pro_upgrade | 3.29 | 38.57 |
Maximum Purchase Categories /wp-admin/edit-tags.php?taxonomy=vtmax_rule_category&post_type=product | 3.30 | 36.64 |
Maximum Purchase Rules /wp-admin/edit.php?post_type=vtmax-rule | 3.37 | 38.07 |
Rules Options Settings /wp-admin/edit.php?post_type=vtmax-rule&page=vtmax_setup_options_page | 3.27 | 37.82 |
Add New /wp-admin/post-new.php?post_type=vtmax-rule | 3.31 | 40.15 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
vtmax_setup_options |
widget_recent-comments |
vtmax_rule_category_children |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Maximum Purchase for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲175 | 14.02 ▼0.38 | 7.95 ▲6.17 | 43.33 ▼1.89 |
Dashboard /wp-admin | 2,242 ▲51 | 5.81 ▲0.94 | 97.03 ▼6.63 | 38.76 ▲0.37 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.06 ▲0.04 | 40.69 ▼6.30 | 35.07 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,565 ▲32 | 23.41 ▲0.24 | 647.51 ▲23.27 | 56.81 ▼5.44 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.24 ▼0.01 | 101.98 ▼2.74 | 43.14 ▼2.21 |
Upgrade to Pro /wp-admin/edit.php?post_type=vtmax-rule&page=vtmax_pro_upgrade | 854 | 2.02 | 22.62 | 39.63 |
Maximum Purchase Categories /wp-admin/edit-tags.php?taxonomy=vtmax_rule_category&post_type=product | 1,405 | 2.14 | 27.55 | 32.86 |
Maximum Purchase Rules /wp-admin/edit.php?post_type=vtmax-rule | 1,101 | 1.97 | 33.08 | 31.36 |
Rules Options Settings /wp-admin/edit.php?post_type=vtmax-rule&page=vtmax_setup_options_page | 1,336 | 2.12 | 23.83 | 52.84 |
Add New /wp-admin/post-new.php?post_type=vtmax-rule | 2,337 | 3.02 | 79.26 | 134.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- vtmax_rule_category_children
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- vtmax_setup_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit-tags.php?taxonomy=vtmax_rule_category&post_type=product
- > Notice in wp-admin/includes/class-wp-terms-list-table.php+584
Trying to get property 'show_ui' of non-object
- > GET request to /wp-admin/edit.php?post_type=vtmax-rule&page=vtmax_setup_options_page
- > Warning in wp-content/plugins/maximum-purchase-for-woocommerce/admin/vtmax-setup-options.php+111
Use of undefined constant VTMAX_DOCUMENTATION_PATH - assumed 'VTMAX_DOCUMENTATION_PATH' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/edit.php?post_type=vtmax-rule&page=vtmax_setup_options_page
- > Notice in wp-content/plugins/maximum-purchase-for-woocommerce/core/vtmax-backbone.php+128
Undefined offset: 1
- > GET request to /wp-admin/post-new.php?post_type=vtmax-rule
- > Warning in wp-content/plugins/maximum-purchase-for-woocommerce/admin/vtmax-rules-ui.php+72
sizeof(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/post-new.php?post_type=vtmax-rule
- > Notice in wp-content/plugins/maximum-purchase-for-woocommerce/admin/vtmax-rules-ui.php+74
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=vtmax-rule
- > Notice in wp-content/plugins/maximum-purchase-for-woocommerce/admin/vtmax-rules-ui.php+74
Trying to get property 'post_id' of non-object
- > GET request to /wp-admin/post-new.php?post_type=vtmax-rule
- > Notice in wp-content/plugins/maximum-purchase-for-woocommerce/woo-integration/vtmax-parent-functions.php+184
Undefined variable: product_variations_list
- 24 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vtmax-rule
- > Notice in wp-admin/includes/template.php+247
Trying to get property 'term_id' of non-object
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vtmax-rule
- > Warning in wp-admin/includes/template.php+242
in_array() expects parameter 2 to be array, object given
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vtmax-rule
- > Notice in wp-admin/includes/template.php+247
Trying to get property 'cap' of non-object
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vtmax-rule
- > Notice in wp-admin/includes/template.php+247
Trying to get property 'assign_terms' of non-object
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vtmax-rule
- > Notice in wp-admin/includes/template.php+250
Trying to get property 'name' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/maximum-purchase-for-woocommerce/vt-maximum-purchase.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/maximum-purchase-for-woocommerce/woo-integration/vtmax-parent-functions.php:375
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maximum-purchase-for-woocommerce/admin/vtmax-setup-options.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/maximum-purchase-for-woocommerce/woo-integration/vtmax-parent-definitions.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maximum-purchase-for-woocommerce/woo-integration/vtmax-parent-cart-validation.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/maximum-purchase-for-woocommerce/core/vtmax-backbone.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vtmax-rule
- > Network (severe)
wp-content/plugins/maximum-purchase-for-woocommerce/admin//admin/js/vtmax-variations-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% 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
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Maximum 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 Maximum Amount), #7 (Error Message at Checkout)
maximum-purchase-for-woocommerce/vt-maximum-purchase.php 85% from 13 tests
The main PHP file in "Maximum Purchase for WooCommerce" ver. 1.07.7.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.3" instead of "2.0.0")
- Main file name: Name the main plugin file the same as the plugin slug ("maximum-purchase-for-woocommerce.php" instead of "vt-maximum-purchase.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,289 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 856 | 1,057 | 3,499 |
CSS | 2 | 44 | 87 | 585 |
JavaScript | 2 | 34 | 53 | 205 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 23.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 122 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.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
PNG images were not found in this plugin