74% recover-wc-abandoned-cart

Code Review | Recover abandoned cart for WooCommerce

WordPress plugin Recover abandoned cart for WooCommerce scored74%from 54 tests.

About plugin

  • Plugin page: recover-wc-abando...
  • Plugin version: 1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2020
  • Latest release: Nov 9, 2022
  • Number of updates: 12
  • Update frequency: every 61.9 days
  • Top authors: sonalsinha21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,804 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.64ms] Passed 4 tests

An overview of server-side resources used by Recover abandoned cart for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.45 ▼6.14
Dashboard /wp-admin3.44 ▲0.0950.85 ▼9.27
Posts /wp-admin/edit.php3.56 ▲0.2046.96 ▼0.83
Add New Post /wp-admin/post-new.php6.02 ▲0.1482.87 ▼14.33
Media Library /wp-admin/upload.php3.34 ▲0.1239.10 ▲7.33
Abandoned carts /wp-admin/admin.php?page=racart-abandonedcart3.3440.86

Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables
wp_racart_cartemail
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Recover abandoned cart for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,009 ▲24815.04 ▲0.754.05 ▲2.3843.88 ▲1.83
Dashboard /wp-admin2,342 ▲1656.34 ▲0.74110.15 ▲16.7839.63 ▼3.50
Posts /wp-admin/edit.php2,271 ▲1743.35 ▲1.3948.88 ▲14.3331.27 ▼2.66
Add New Post /wp-admin/post-new.php1,543 ▲1722.91 ▼0.13647.97 ▼7.1836.73 ▼19.93
Media Library /wp-admin/upload.php1,407 ▲104.11 ▼0.08125.63 ▲23.7159.68 ▲17.12
Abandoned carts /wp-admin/admin.php?page=racart-abandonedcart1,2443.0440.4963.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_racart_cartemail
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/recover-wc-abandoned-cart/admin/abandoned-list.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/recover-wc-abandoned-cart/admin/exitintent.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/recover-wc-abandoned-cart/admin/cartemail.php:3

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 Passed 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: woocommerce, cart abandoned, recover woocommerce cart, cart recovery, abandon cart

recover-wc-abandoned-cart/recover-wc-abandoned-cart.php Passed 13 tests

This is the main PHP file of "Recover abandoned cart for WooCommerce" version 1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
113 characters long description:
Recover abandoned cart for WooCommerce easily. Increase sales by recovering your lost shopping cart by customers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,063 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6833769
JavaScript3123167
CSS291127

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/browse-themes.png104.42KB44.22KB▼ 57.65%