Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/cart-deals-for-woocommerce/vt-cart-deals.php+513
Function create_function() is deprecated
Server metrics [RAM: ▲0.35MB] [CPU: ▼137.76ms] Passed 4 tests
This is a short check of server-side resources used by Cart Deals for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.09 ▲0.37 | 36.90 ▲14.95 |
Dashboard /wp-admin | 3.41 ▲0.36 | 56.93 ▲10.82 |
Posts /wp-admin/edit.php | 3.46 ▲0.35 | 51.89 ▲4.00 |
Add New Post /wp-admin/post-new.php | 5.76 ▲0.33 | 95.67 ▼569.93 |
Media Library /wp-admin/upload.php | 3.35 ▲0.35 | 37.33 ▲4.09 |
Upgrade to Pro /wp-admin/edit.php?post_type=vtcrt-rule&page=vtcrt_pro_upgrade | 3.32 | 33.15 |
Cart Deals Help /wp-admin/edit.php?post_type=vtcrt-rule&page=vtcrt_show_help_page | 3.32 | 29.38 |
Cart Deals Rules /wp-admin/edit.php?post_type=vtcrt-rule | 3.41 | 36.19 |
Cart Deals Categories /wp-admin/edit-tags.php?taxonomy=vtcrt_rule_category&post_type=product | 3.33 | 38.43 |
Cart Deal Settings /wp-admin/edit.php?post_type=vtcrt-rule&page=vtcrt_setup_options_page | 3.30 | 31.66 |
Add New /wp-admin/post-new.php?post_type=vtcrt-rule | 3.34 | 39.21 |
Server storage [IO: ▲2.45MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 68 new files
Database: 3 new tables, 3 new options
New tables |
---|
wp_vtcrt_purchase_log |
wp_vtcrt_purchase_log_product_rule |
wp_vtcrt_purchase_log_product |
New WordPress options |
---|
vtcrt_setup_options |
recovery_mode_email_last_sent |
vtcrt_rule_category_children |
Browser metrics Passed 4 tests
A check of browser resources used by Cart Deals for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,869 ▲263 | 16.55 ▲1.09 | 13.08 ▲3.25 | 54.34 ▲1.82 |
Dashboard /wp-admin | 3,028 ▲97 | 5.92 ▼0.21 | 137.84 ▼8.89 | 127.55 ▲16.68 |
Posts /wp-admin/edit.php | 2,794 ▲55 | 2.81 ▼0.01 | 70.14 ▲0.92 | 93.98 ▼5.13 |
Add New Post /wp-admin/post-new.php | 1,707 ▲24 | 18.89 ▲0.09 | 407.59 ▲22.87 | 112.81 ▲0.23 |
Media Library /wp-admin/upload.php | 1,862 ▲55 | 5.03 ▲0.02 | 147.13 ▼9.08 | 118.38 ▼5.44 |
Upgrade to Pro /wp-admin/edit.php?post_type=vtcrt-rule&page=vtcrt_pro_upgrade | 1,266 | 2.21 | 59.36 | 146.84 |
Cart Deals Help /wp-admin/edit.php?post_type=vtcrt-rule&page=vtcrt_show_help_page | 1,064 | 2.44 | 53.42 | 58.72 |
Cart Deals Rules /wp-admin/edit.php?post_type=vtcrt-rule | 1,491 | 3.10 | 74.83 | 67.29 |
Cart Deals Categories /wp-admin/edit-tags.php?taxonomy=vtcrt_rule_category&post_type=product | 1,841 | 2.51 | 65.38 | 94.96 |
Cart Deal Settings /wp-admin/edit.php?post_type=vtcrt-rule&page=vtcrt_setup_options_page | 5,553 | 2.71 | 66.22 | 182.28 |
Add New /wp-admin/post-new.php?post_type=vtcrt-rule | 1,736 | 2.54 | 49.97 | 81.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_vtcrt_purchase_log_product_rule
- wp_vtcrt_purchase_log
- wp_vtcrt_purchase_log_product
- This plugin does not fully uninstall, leaving 3 options in the database
- recovery_mode_email_last_sent
- vtcrt_rule_category_children
- vtcrt_setup_options
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)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit-tags.php?taxonomy=vtcrt_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=vtcrt-rule&page=vtcrt_setup_options_page
- > Warning in wp-content/plugins/cart-deals-for-woocommerce/admin/vtcrt-setup-options.php+288
Use of undefined constant VTCRT_DOCUMENTATION_PATH - assumed 'VTCRT_DOCUMENTATION_PATH' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=vtcrt-rule&page=vtcrt_setup_options_page
- > Warning in wp-content/plugins/cart-deals-for-woocommerce/admin/vtcrt-show-help-functions.php+117
Use of undefined constant VTCRT_PARENT_PLUGIN_TEXTNAME - assumed 'VTCRT_PARENT_PLUGIN_TEXTNAME' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=vtcrt-rule&page=vtcrt_setup_options_page
- > Warning in wp-content/plugins/cart-deals-for-woocommerce/admin/vtcrt-show-help-functions.php+117
Use of undefined constant VTCRT_PARENT_PLUGIN_ABBREV - assumed 'VTCRT_PARENT_PLUGIN_ABBREV' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Warning in wp-content/plugins/cart-deals-for-woocommerce/admin/vtcrt-rules-ui.php+118
sizeof(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Notice in wp-content/plugins/cart-deals-for-woocommerce/admin/vtcrt-rules-ui.php+120
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Notice in wp-content/plugins/cart-deals-for-woocommerce/admin/vtcrt-rules-ui.php+120
Trying to get property 'post_id' of non-object
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Notice in wp-content/plugins/cart-deals-for-woocommerce/core/vtcrt-rules-classes.php+458
Undefined property: VTCRT_Rule::$rule_type_framework_key
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Notice in wp-content/plugins/cart-deals-for-woocommerce/core/vtcrt-rules-classes.php+459
Undefined property: VTCRT_Rule::$rule_type_name
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Notice in wp-content/plugins/cart-deals-for-woocommerce/core/vtcrt-rules-classes.php+513
Undefined property: VTCRT_Rule::$actionPop_same_as_inPop
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Notice in wp-content/plugins/cart-deals-for-woocommerce/core/vtcrt-rules-classes.php+531
Undefined property: VTCRT_Rule::$anyChoiceOut_max
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Notice in wp-content/plugins/cart-deals-for-woocommerce/core/vtcrt-rules-classes.php+534
Undefined property: VTCRT_Rule::$actionPop_threshHold_amt
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Notice in wp-content/plugins/cart-deals-for-woocommerce/admin/vtcrt-rules-ui.php+141
Undefined variable: content
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Error in wp-content/plugins/cart-deals-for-woocommerce/woo-integration/vtcrt-parent-functions.php+577
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/cart-deals-for-woocommerce/woo-integration/vtcrt-parent-functions.php:577
Stack trace:
#0 wp-content/plugins/cart-deals-for-woocommerce/admin/vtcrt-rules-ui.php(229): vtcrt_get_currency_symbol()
#1 wp-admin/includes/template.php(1395): VTCRT_Rules_UI->vtcrt_deal()
#2 wp-admin/edit-form-advanced.php(688): do_meta_boxes()
#3 wp-admin/post-new.php(75): require('/var/www/wordpr...')
#4 {main}
thrown
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
Please fix the following items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cart-deals-for-woocommerce/admin/vtcrt-rules-ui-framework.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cart-deals-for-woocommerce/woo-integration/vtcrt-parent-functions.php:2317
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cart-deals-for-woocommerce/woo-integration/vtcrt-parent-definitions.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cart-deals-for-woocommerce/vt-cart-deals.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cart-deals-for-woocommerce/woo-integration/vtcrt-parent-cart-validation.php:202
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cart-deals-for-woocommerce/admin/vtcrt-setup-options.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cart-deals-for-woocommerce/woo-integration/vtcrt-parent-theme-functions.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/cart-deals-for-woocommerce/core/vtcrt-backbone.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=vtcrt-rule&page=vtcrt_pro_upgrade
- > Network (severe)
wp-content/plugins/cart-deals-for-wp-e-commerce/admin/images/upgrade-bkgrnd-banner.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: Cannot read properties of null (reading 'length')" "TypeError: Cannot read properties of null (reading 'length')\n at reload_PricingType_Titles_catalog (/wp-content/plugins/cart-deals-for-woocommerce/admin/js/vtcrt-admin-script.js?ver=5.8.1:636:64)\n at cartOrCatalogTest (/wp-content/plugins/cart-deals-for-woocommerce/admin/js/vtcrt-admin-script.js?ver=5.8.1:215:35)\n at firstTimeThroughControl (/wp-content/plugins/cart-deals-for-woocommerce/admin/js/vtcrt-admin-script.js?ver=5.8.1:120:30)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/cart-deals-for-woocommerce/admin/js/vtcrt-admin-script.js?ver=5.8.1:32:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=vtcrt-rule
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: Cannot read properties of null (reading 'length')
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Cart Deals - Add New Rule Basic), #2 (Cart Deals - Add New Rule Advanced Lower Area), #3 (Cart Deals - Add New Rule Advanced Upper Area), #4 (Cart Deals - Cart Widget with Discount), #5 (Cart Deals - Checkout with Discount)
- Tags: You are using too many tags: 26 tag instead of maximum 10
cart-deals-for-woocommerce/vt-cart-deals.php 85% from 13 tests
Analyzing the main PHP file in "Cart Deals for WooCommerce" version 1.0.6.7
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 ("cart-deals-for-woocommerce.php" instead of "vt-cart-deals.php")
- Requires at least: Required version must match the one declared in readme.txt ("3.3" instead of "2.4.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected22,852 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 3,580 | 5,296 | 17,170 |
JavaScript | 4 | 390 | 450 | 3,040 |
CSS | 9 | 178 | 336 | 2,642 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 108)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 68.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 327.00 |
Average method complexity | 5.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 108.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 237 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 237 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 118 | |
▷ Named functions | 118 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 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
25 PNG files occupy 0.22MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/smoothness/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
admin/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
admin/css/smoothness/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
admin/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
admin/css/smoothness/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |