78% woo-save-abandoned-carts

Code Review | CartBounty - Save and recover abandoned carts for WooCommerce

WordPress plugin CartBounty - Save and recover abandoned carts for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: woo-save-abandone...
  • Plugin version: 7.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2017
  • Latest release: Aug 21, 2023
  • Number of updates: 298
  • Update frequency: every 7.9 days
  • Top authors: streamlinestar (76.51%)Prowebdesign (23.83%)

Code review

54 tests

User reviews

70 reviews

Install metrics

10,000+ active /267,263 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.51 ▲1.0544.86 ▲4.62
Dashboard /wp-admin4.33 ▲0.9948.00 ▼17.98
Posts /wp-admin/edit.php4.38 ▲1.0252.81 ▲8.31
Add New Post /wp-admin/post-new.php6.85 ▲0.9684.44 ▼12.49
Media Library /wp-admin/upload.php4.19 ▲0.9639.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.42 ▼0.854.01 ▲2.3238.42 ▼7.42
Dashboard /wp-admin2,224 ▲364.85 ▼0.08112.27 ▲4.8337.66 ▼7.60
Posts /wp-admin/edit.php2,107 ▲152.04 ▲0.0239.51 ▲1.1834.66 ▼2.18
Add New Post /wp-admin/post-new.php1,552 ▲3918.60 ▲1.09608.73 ▼20.8052.20 ▼7.31
Media Library /wp-admin/upload.php1,409 ▲244.25 ▲0.0997.36 ▼4.1342.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP158901,6415,573
CSS6408272,204
JavaScript5918479
SVG8008

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 code0.34
Average class complexity79.22
▷ Minimum class complexity1.00
▷ Maximum class complexity343.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods180
▷ Static methods42.22%
▷ Public methods16993.89%
▷ Protected methods00.00%
▷ Private methods116.11%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants25100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/assets/admin-notification-email-product-image-6.png2.33KB1.65KB▼ 29.50%
admin/assets/admin-notification-email-product-image-4.png1.93KB1.67KB▼ 13.52%
admin/assets/admin-notification-email-product-image-5.png0.71KB0.48KB▼ 32.83%
admin/assets/admin-notification-email-product-image-3.png2.05KB1.70KB▼ 17.02%
admin/assets/admin-notification-email-product-image-1.png1.54KB1.46KB▼ 5.50%