Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼9.74ms] Passed 4 tests
This is a short check of server-side resources used by Cartbox – Abandoned Cart Recovery - Order Success Notifications – Message Notifications for Contact Form 7 - Click to Chat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 43.58 ▲1.29 |
Dashboard /wp-admin | 3.43 ▲0.09 | 48.64 ▼21.44 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.16 ▲0.12 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.16 ▼18.94 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.09 ▲4.34 |
Abandoned Cart /wp-admin/admin.php?page=cbcart_abandoned_Cart | 3.41 | 35.56 |
Click To Chat /wp-admin/admin.php?page=cbcart_clicktochat | 3.67 | 39.95 |
CloudAPI Tutorial /wp-admin/admin.php?page=cbcart_tutorial | 3.45 | 36.24 |
Settings /wp-admin/admin.php?page=cbcart_admin_settings_display | 3.43 | 36.24 |
Dashboard /wp-admin/admin.php?page=cbcart_dashboard | 3.43 | 29.92 |
Incoming Message /wp-admin/admin.php?page=cbcart_incoming_message | 3.32 | 36.27 |
Mobile Capture /wp-admin/admin.php?page=cbcart_early_capture | 3.45 | 34.81 |
Order Notification /wp-admin/admin.php?page=cbcart_ordernotification | 3.32 | 33.59 |
Message Notification for CF7 /wp-admin/admin.php?page=cbcart_messages_cf | 3.32 | 34.68 |
Server storage [IO: ▲3.52MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 89 new files
Database: 4 new tables, 8 new options
New tables |
---|
wp_cbcart_orderdetails |
wp_cbcart_abandoneddetails |
wp_cbcart_template |
wp_cbcart_contactformdetails |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
cbcart_ordernotificationsettings |
cbcart_chat_setting |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Cartbox – Abandoned Cart Recovery - Order Success Notifications – Message Notifications for Contact Form 7 - Click to Chat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲232 | 13.63 ▼1.05 | 10.31 ▲8.47 | 39.75 ▼3.24 |
Dashboard /wp-admin | 2,253 ▲61 | 5.83 ▲0.84 | 101.01 ▼10.21 | 81.45 ▲36.83 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 1.99 ▼0.02 | 33.87 ▼2.91 | 30.32 ▼5.81 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 23.27 ▼0.03 | 692.60 ▲23.60 | 54.12 ▼5.65 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.12 ▼0.08 | 106.87 ▲5.19 | 46.67 ▲1.01 |
Abandoned Cart /wp-admin/admin.php?page=cbcart_abandoned_Cart | 891 | 2.67 | 35.44 | 51.66 |
Click To Chat /wp-admin/admin.php?page=cbcart_clicktochat | 1,509 | 2.40 | 41.85 | 24.72 |
CloudAPI Tutorial /wp-admin/admin.php?page=cbcart_tutorial | 1,181 | 2.53 | 32.57 | 43.07 |
Settings /wp-admin/admin.php?page=cbcart_admin_settings_display | 1,042 | 2.58 | 32.77 | 30.57 |
Dashboard /wp-admin/admin.php?page=cbcart_dashboard | 1,180 | 2.53 | 29.98 | 32.91 |
Incoming Message /wp-admin/admin.php?page=cbcart_incoming_message | 1,042 | 2.62 | 32.87 | 23.53 |
Mobile Capture /wp-admin/admin.php?page=cbcart_early_capture | 1,148 | 2.57 | 31.36 | 53.66 |
Order Notification /wp-admin/admin.php?page=cbcart_ordernotification | 1,042 | 2.57 | 34.21 | 23.38 |
Message Notification for CF7 /wp-admin/admin.php?page=cbcart_messages_cf | 1,042 | 2.55 | 33.23 | 26.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% 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)
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=cbcart_abandoned_Cart
- > Notice in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-setup-abandonedcart.php+43
Undefined variable: cbcart_order_failed_amt
- > GET request to /wp-admin/admin.php?page=cbcart_abandoned_Cart
- > Notice in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-setup-abandonedcart.php+43
Undefined variable: cbcart_order_failed1_amt
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
Almost there! Just fix the following items
- 49× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-incoming-message.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-startup.php:3
- > PHP Warning
Use of undefined constant CBCART_DIR - assumed 'CBCART_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-clicktochat.php on line 11
- > PHP Warning
Use of undefined constant cbcart_logonew_black - assumed 'cbcart_logonew_black' (this will throw an Error in a future version of PHP) in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-incoming-message.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-abandonedcart.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-customise-template.php on line 4
- > PHP Warning
Use of undefined constant CBCART_DOMAIN - assumed 'CBCART_DOMAIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-clicktochat.php on line 10
- > PHP Warning
Use of undefined constant CBCART_DIR - assumed 'CBCART_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cartbox-messaging-widgets/admin/partials/cbcart-admin-clicktochat.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/cartbox-messaging-widgets/cbcart.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 need to be fixed:
- Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
cartbox-messaging-widgets/cbcart.php 92% from 13 tests
The entry point to "Cartbox – Abandoned Cart Recovery - Order Success Notifications – Message Notifications for Contact Form 7 - Click to Chat" version 3.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cartbox-messaging-widgets.php" instead of "cbcart.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin30,460 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 2,514 | 52 | 13,901 |
PHP | 27 | 610 | 1,006 | 12,533 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 11 | 109 | 157 | 1,355 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 80.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 7.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 26 | 32.10% |
▷ Public methods | 76 | 93.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.17% |
Functions | 23 | |
▷ Named functions | 20 | 86.96% |
▷ Anonymous functions | 3 | 13.04% |
Constants | 24 | |
▷ Global constants | 24 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
23 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/cbcart-icon-8.png | 2.20KB | 2.34KB | 0.00% |
admin/images/cbcart-LogoNew-black.png | 15.46KB | 6.49KB | ▼ 58.04% |
admin/images/cbcart-SmileyImgs.png | 9.72KB | 7.23KB | ▼ 25.56% |
admin/images/cbcart-profile2.png | 2.47KB | 2.50KB | 0.00% |
admin/images/cbcart-VectorArrow.png | 17.33KB | 5.44KB | ▼ 68.63% |