79% woo-cart-abandonment-recovery

Code Review | WooCommerce Cart Abandonment Recovery

WordPress plugin WooCommerce Cart Abandonment Recovery scored79%from 54 tests.

About plugin

  • Plugin page: woo-cart-abandonm...
  • Plugin version: 1.2.26
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: May 27, 2019
  • Latest release: Nov 29, 2023
  • Number of updates: 46
  • Update frequency: every 35.9 days
  • Top authors: cartflowswp (45.65%)sandesh055 (39.13%)rohitrpatil (13.04%)cartflows (6.52%)patilvikasj (4.35%)

Code review

54 tests

User reviews

421 reviews

Install metrics

200,000+ active /4,563,693 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.16ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Cart Abandonment Recovery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.09 ▼5.58
Dashboard /wp-admin3.36 ▲0.0150.98 ▼12.89
Posts /wp-admin/edit.php3.47 ▲0.1249.07 ▼0.85
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.00 ▼5.33
Media Library /wp-admin/upload.php3.28 ▲0.0534.01 ▲1.77

Server storage [IO: ▲0.76MB] [DB: ▲0.08MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 69 new files
Database: 4 new tables, 22 new options
New tables
wp_cartflows_ca_email_history
wp_cartflows_ca_cart_abandonment
wp_cartflows_ca_email_templates
wp_cartflows_ca_email_templates_meta
New WordPress options
db_upgraded
wcf_ca_gdpr_status
widget_theysaidso_widget
theysaidso_admin_options
wcf_ca_discount_type
widget_recent-posts
wcf_ca_from_name
wcf_ca_zapier_cart_abandoned_webhook
wcf_ca_coupon_code_status
wcf_ca_cut_off_time
...

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Cart Abandonment Recovery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5614.20 ▼0.151.77 ▲0.1041.43 ▼2.18
Dashboard /wp-admin2,208 ▲315.57 ▼0.0491.64 ▼11.6642.65 ▼3.49
Posts /wp-admin/edit.php2,113 ▲131.94 ▼0.0640.12 ▲3.1237.69 ▲3.17
Add New Post /wp-admin/post-new.php1,539 ▲423.31 ▼2.17638.62 ▼11.5457.26 ▼9.25
Media Library /wp-admin/upload.php1,410 ▲104.18 ▲0.03104.49 ▲7.8344.93 ▲4.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_cartflows_ca_email_templates
    • wp_cartflows_ca_cart_abandonment
    • wp_cartflows_ca_email_history
    • wp_cartflows_ca_email_templates_meta
  • Zombie WordPress options were found after uninstall: 22 options
    • wcf_ca_gdpr_status
    • wcf_ca_from_name
    • wcf_ca_reply_email
    • wcf_ca_zapier_cart_abandoned_webhook
    • wcf_ca_coupon_amount
    • db_upgraded
    • wcf_ca_zapier_tracking_status
    • wcf_ca_coupon_expiry_unit
    • wcf_ca_discount_type
    • widget_recent-comments
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: cart abandonment, woocommerce, cart recovery

woo-cart-abandonment-recovery/woo-cart-abandonment-recovery.php 85% from 13 tests

The main file in "WooCommerce Cart Abandonment Recovery" v. 1.2.26 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 141 characters long)
  • Requires at least: The required version number must match the one declared in readme.txt ("5.4" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected7,687 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP331,4041,9365,992
JavaScript117234838
CSS912318788
SVG20266
JSON1103

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity27.76
▷ Minimum class complexity3.00
▷ Maximum class complexity106.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes14.76%
Methods249
▷ Static methods3212.85%
▷ Public methods22891.57%
▷ Protected methods20.80%
▷ Private methods197.63%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants58
▷ Global constants58100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.33MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/facebook2x.png1.89KB1.01KB▼ 46.72%
admin/assets/images/twitter2x.png2.13KB1.14KB▼ 46.30%
admin/assets/images/wcar-icon.png308.94KB1.94KB▼ 99.37%
admin/assets/images/cartflows-email-logo.png13.00KB8.11KB▼ 37.57%
admin/assets/images/image-placeholder.png12.27KB6.98KB▼ 43.09%