83% recapture-for-woocommerce

Code Review | WordPress abandoned cart recovery and email marketing for WooCommerce by Recapture

WordPress plugin WordPress abandoned cart recovery and email marketing for WooCommerce by Recapture scored83%from 54 tests.

About plugin

  • Plugin page: recapture-for-woo...
  • Plugin version: 1.0.35
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 18, 2019
  • Latest release: Sep 2, 2023
  • Number of updates: 71
  • Update frequency: every 22.9 days
  • Top authors: recaptureio (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active /13,739 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.23MB] [CPU: ▼8.92ms] Passed 4 tests

This is a short check of server-side resources used by WordPress abandoned cart recovery and email marketing for WooCommerce by Recapture
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.2743.54 ▼8.04
Dashboard /wp-admin3.62 ▲0.2348.92 ▼17.14
Posts /wp-admin/edit.php3.67 ▲0.2750.94 ▼0.63
Add New Post /wp-admin/post-new.php6.14 ▲0.2198.32 ▼9.87
Media Library /wp-admin/upload.php3.48 ▲0.2138.27 ▲2.42

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress abandoned cart recovery and email marketing for WooCommerce by Recapture
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.73 ▲0.351.82 ▼0.0243.35 ▲0.84
Dashboard /wp-admin2,201 ▲215.63 ▼0.0292.49 ▼5.0040.79 ▲3.84
Posts /wp-admin/edit.php2,110 ▲102.03 ▲0.0440.27 ▲2.4835.59 ▼0.91
Add New Post /wp-admin/post-new.php1,535 ▲823.31 ▲0.30687.93 ▼67.1860.36 ▲2.13
Media Library /wp-admin/upload.php1,409 ▲94.18 ▼0.03107.75 ▼14.9545.48 ▼2.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% 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 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 items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'RecaptureBasePlatform' not found in wp-content/plugins/recapture-for-woocommerce/platforms/class-edd.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'RecaptureBasePlatform' not found in wp-content/plugins/recapture-for-woocommerce/platforms/class-woocommerce.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recapture-for-woocommerce/recapture.php:706
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/recapture-for-woocommerce/templates/reviews.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Experience the famous 5-minute install with Recapture), #2 (Configure your store settings once you're connected), #3 (Activate your campaigns in Recapture to start increasing sales!)
The official readme.txt is a good inspiration

recapture-for-woocommerce/recapture.php 85% from 13 tests

The main file in "WordPress abandoned cart recovery and email marketing for WooCommerce by Recapture" v. 1.0.35 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recapture-for-woocommerce.php" instead of "recapture.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,898 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP63251711,501
CSS2112180
JavaScript2265158
PO File1151759

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity26.00
▷ Minimum class complexity2.00
▷ Maximum class complexity51.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods115
▷ Static methods6153.04%
▷ Public methods11196.52%
▷ Protected methods21.74%
▷ Private methods21.74%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/recapture.png1.31KB0.32KB▼ 75.47%