73% abandoned-checkout-recovery-order-notifications-for-woocommerce

Code Review | Abandoned Checkout Recovery & Order Notifications for WooCommerce

WordPress plugin Abandoned Checkout Recovery & Order Notifications for WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: abandoned-checkou...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2023
  • Latest release: Apr 4, 2023
  • Number of updates: 6
  • Update frequency: every 15.0 days
  • Top authors: saandhyg (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /3,214 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.52ms] Passed 4 tests

Analyzing server-side resources used by Abandoned Checkout Recovery & Order Notifications for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.73 ▼2.38
Dashboard /wp-admin3.37 ▲0.0752.21 ▼0.48
Posts /wp-admin/edit.php3.49 ▲0.1353.43 ▲3.44
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.53 ▼14.66
Media Library /wp-admin/upload.php3.30 ▲0.0640.76 ▲5.24

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 41 new files
Database: 2 new tables, 23 new options
New tables
wp_intrkt_abandon_cart_abandonment
wp_intrkt_order_status
New WordPress options
intrkt_reply_email
theysaidso_admin_options
intrkt_from_email
intrkt_discount_type
intrkt_coupon_expiry
intrkt_zapier_cart_abandoned_webhook
intrkt_log_data
intrkt_abandon_status
intrkt_gdpr_message
intrkt_cut_off_time
...

Browser metrics Passed 4 tests

Checking browser requirements for Abandoned Checkout Recovery & Order Notifications for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.33 ▼0.881.73 ▼0.2245.41 ▲0.36
Dashboard /wp-admin2,214 ▲265.87 ▲1.01106.99 ▼9.3040.31 ▼4.77
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0138.60 ▼0.8435.99 ▼0.73
Add New Post /wp-admin/post-new.php1,546 ▲1323.06 ▼0.10676.93 ▲41.7155.86 ▼12.16
Media Library /wp-admin/upload.php1,390 ▲24.19 ▼0.0297.59 ▼2.9941.94 ▲0.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_intrkt_order_status
    • wp_intrkt_abandon_cart_abandonment
  • This plugin does not fully uninstall, leaving 23 options in the database
    • intrkt_gdpr_status
    • intrkt_reply_email
    • widget_theysaidso_widget
    • intrkt_abandon_status
    • intrkt_from_email
    • intrkt_zapier_tracking_status
    • intrkt_gdpr_message
    • intrkt_log_data
    • widget_recent-posts
    • intrkt_excludes_orders
    • ...

Smoke tests 75% 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 50% 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 fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/abandoned-checkout-recovery-order-notifications-for-woocommerce/whatsapp-order-notifications-and-api.php on line 19
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/abandoned-checkout-recovery-order-notifications-for-woocommerce/whatsapp-order-notifications-and-api.php on line 19
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/abandoned-checkout-recovery-order-notifications-for-woocommerce/whatsapp-order-notifications-and-api.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/abandoned-checkout-recovery-order-notifications-for-woocommerce/whatsapp-order-notifications-and-api.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

abandoned-checkout-recovery-order-notifications-for-woocommerce/whatsapp-order-notifications-and-api.php 77% from 13 tests

The main file in "Abandoned Checkout Recovery & Order Notifications for WooCommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 260 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("abandoned-checkout-recovery-order-notifications-for-woocommerce.php" instead of "whatsapp-order-notifications-and-api.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,652 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP153029882,826
CSS41815502
JavaScript71628324

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity24.92
▷ Minimum class complexity3.00
▷ Maximum class complexity84.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes215.38%
Methods137
▷ Static methods139.49%
▷ Public methods13699.27%
▷ Protected methods00.00%
▷ Private methods10.73%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants50
▷ Global constants50100.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
No PNG images were found in this plugin