68% cart-lift

Code Review | Cart Lift - Abandoned Cart Recovery for WooCommerce and EDD

WordPress plugin Cart Lift - Abandoned Cart Recovery for WooCommerce and EDD scored68%from 54 tests.

About plugin

  • Plugin page: cart-lift
  • Plugin version: 3.1.10
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 16, 2020
  • Latest release: Nov 17, 2023
  • Number of updates: 75
  • Update frequency: every 16.7 days
  • Top authors: rextheme (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /36,584 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.33ms] Passed 4 tests

Server-side resources used by Cart Lift - Abandoned Cart Recovery for WooCommerce and EDD
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.54 ▼4.01
Dashboard /wp-admin3.31 ▲0.0044.06 ▼4.61
Posts /wp-admin/edit.php3.36 ▲0.0048.05 ▲2.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.26 ▼2.07
Media Library /wp-admin/upload.php3.23 ▲0.0035.00 ▲1.36

Server storage [IO: ▲2.10MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 215 new files
Database: 7 new tables, 11 new options
New tables
wp_actionscheduler_claims
wp_actionscheduler_logs
wp_cl_campaign_history
wp_cl_abandon_cart
wp_cl_email_templates
wp_actionscheduler_groups
wp_actionscheduler_actions
New WordPress options
schema-ActionScheduler_LoggerSchema
cl_db_version
can_compress_scripts
db_upgraded
cl_general_settings
widget_theysaidso_widget
action_scheduler_hybrid_store_demarkation
theysaidso_admin_options
schema-ActionScheduler_StoreSchema
widget_recent-posts
...

Browser metrics Passed 4 tests

A check of browser resources used by Cart Lift - Abandoned Cart Recovery for WooCommerce and EDD
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.411.83 ▲0.0738.54 ▼8.73
Dashboard /wp-admin2,198 ▲245.60 ▲0.0192.95 ▼7.0143.36 ▼1.85
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0538.99 ▲1.6136.62 ▼4.20
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▲0.20593.82 ▼116.2950.18 ▼5.15
Media Library /wp-admin/upload.php1,394 ▼34.28 ▲0.12100.38 ▲3.9741.39 ▲1.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 7 tables
    • wp_cl_abandon_cart
    • wp_cl_campaign_history
    • wp_actionscheduler_claims
    • wp_actionscheduler_actions
    • wp_actionscheduler_logs
    • wp_cl_email_templates
    • wp_actionscheduler_groups
  • This plugin does not fully uninstall, leaving 11 options in the database
    • schema-ActionScheduler_LoggerSchema
    • widget_recent-comments
    • cl_db_version
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • action_scheduler_hybrid_store_demarkation
    • cl_general_settings
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/cart-lift/admin/partials/cart-lift-analytics.php
    • > /wp-content/plugins/cart-lift/public/partials/cart-lift-public-display.php
    • > /wp-content/plugins/cart-lift/admin/partials/settings-component/sendgrid-tab.php
    • > /wp-content/plugins/cart-lift/admin/partials/settings-component/mailchimp-tab.php
    • > /wp-content/plugins/cart-lift/admin/partials/settings-component/ses-tab.php
  • 89× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/cart-lift/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php:18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cart-lift/admin/partials/settings-component/general-tab.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_LogEntry' not found in wp-content/plugins/cart-lift/vendor/woocommerce/action-scheduler/classes/ActionScheduler_NullLogEntry.php:6
    • > 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/cart-lift/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/cart-lift/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Exception' not found in wp-content/plugins/cart-lift/vendor/woocommerce/action-scheduler/classes/ActionScheduler_InvalidActionException.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cart-lift/admin/partials/settings-component/email-tab.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/cart-lift/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/cart-lift/vendor/woocommerce/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/cart-lift/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php:21

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: cart recovery, abandoned carts, cart abandonment, woocommerce

cart-lift/cart-lift.php Passed 13 tests

The principal PHP file in "Cart Lift - Abandoned Cart Recovery for WooCommerce and EDD" v. 3.1.10 is loaded by WordPress automatically on each request
78 characters long description:
Win back your abandoned cart customers with automated email recovery campaign.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected30,400 lines of code in 189 files:
LanguageFilesBlank linesComment linesLines of code
PHP1623,5738,52718,303
CSS7709236,379
PO File91,8632,2054,547
JavaScript8104115941
JSON200160
Markdown122070

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.19
▷ Minimum class complexity1.00
▷ Maximum class complexity117.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces6
Interfaces3
Traits0
Classes112
▷ Abstract classes1513.39%
▷ Concrete classes9786.61%
▷ Final classes00.00%
Methods936
▷ Static methods11912.71%
▷ Public methods69674.36%
▷ Protected methods15216.24%
▷ Private methods889.40%
Functions81
▷ Named functions7187.65%
▷ Anonymous functions1012.35%
Constants44
▷ Global constants1125.00%
▷ Class constants3375.00%
▷ Public constants33100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/cart-lift-icon.png1.47KB1.06KB▼ 27.95%
admin/images/logo.png15.81KB1.58KB▼ 89.98%
admin/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
admin/images/logo-placeholder.png0.60KB0.34KB▼ 42.60%
admin/images/Cart_Lift_Email_Blur.png5.45KB5.09KB▼ 6.59%