Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.98MB] [CPU: ▼5.63ms] Passed 4 tests
A check of server-side resources used by CartBounty - Save and recover abandoned carts for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.51 ▲1.05 | 44.86 ▲4.62 |
Dashboard /wp-admin | 4.33 ▲0.99 | 48.00 ▼17.98 |
Posts /wp-admin/edit.php | 4.38 ▲1.02 | 52.81 ▲8.31 |
Add New Post /wp-admin/post-new.php | 6.85 ▲0.96 | 84.44 ▼12.49 |
Media Library /wp-admin/upload.php | 4.19 ▲0.96 | 39.78 ▲3.35 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 51 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_cartbounty |
New WordPress options |
---|
theysaidso_admin_options |
cartbounty_exit_intent_type |
db_upgraded |
widget_theysaidso_widget |
cartbounty_automation_steps |
widget_recent-comments |
cartbounty_converted_minutes_to_miliseconds |
widget_recent-posts |
cartbounty_version_number |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by CartBounty - Save and recover abandoned carts for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 13.42 ▼0.85 | 4.01 ▲2.32 | 38.42 ▼7.42 |
Dashboard /wp-admin | 2,224 ▲36 | 4.85 ▼0.08 | 112.27 ▲4.83 | 37.66 ▼7.60 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.04 ▲0.02 | 39.51 ▲1.18 | 34.66 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,552 ▲39 | 18.60 ▲1.09 | 608.73 ▼20.80 | 52.20 ▼7.31 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.25 ▲0.09 | 97.36 ▼4.13 | 42.17 ▼0.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-save-abandoned-carts/templates/emails/cartbounty-email-light.php
- > /wp-content/plugins/woo-save-abandoned-carts/templates/emails/cartbounty-admin-email-notification.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-save-abandoned-carts/admin/class-cartbounty-admin-table.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-save-abandoned-carts/admin/class-cartbounty-admin-table.php on line 13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/woo-save-abandoned-carts/admin/class-cartbounty-admin-table.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: cart abandonment, abandoned carts, activecampaign, woocommerce, exit popup
woo-save-abandoned-carts/cartbounty-abandoned-carts.php 92% from 13 tests
The principal PHP file in "CartBounty - Save and recover abandoned carts for WooCommerce" v. 7.3 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-save-abandoned-carts.php" instead of "cartbounty-abandoned-carts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin8,264 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 890 | 1,641 | 5,573 |
CSS | 6 | 408 | 27 | 2,204 |
JavaScript | 5 | 91 | 8 | 479 |
SVG | 8 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 79.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 343.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 4 | 2.22% |
▷ Public methods | 169 | 93.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 6.11% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 25 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/admin-notification-email-product-image-6.png | 2.33KB | 1.65KB | ▼ 29.50% |
admin/assets/admin-notification-email-product-image-4.png | 1.93KB | 1.67KB | ▼ 13.52% |
admin/assets/admin-notification-email-product-image-5.png | 0.71KB | 0.48KB | ▼ 32.83% |
admin/assets/admin-notification-email-product-image-3.png | 2.05KB | 1.70KB | ▼ 17.02% |
admin/assets/admin-notification-email-product-image-1.png | 1.54KB | 1.46KB | ▼ 5.50% |