83% recapture-for-edd

Code Review | WordPress abandoned cart recovery and email marketing for Easy Digital Downloads by Recapture

WordPress plugin WordPress abandoned cart recovery and email marketing for Easy Digital Downloads by Recapture scored 83% from 54 tests.

About plugin

  • Plugin page: recapture-for-edd
  • Plugin version: 1.0.34
  • 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: 63
  • Update frequency: every 25.9 days
  • Top authors: recaptureio (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

800+ active / 14,962 total downloads

Benchmarks

Plugin footprint 83% 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.21MB] [CPU: ▼8.95ms] Passed 4 tests

A check of server-side resources used by WordPress abandoned cart recovery and email marketing for Easy Digital Downloads by Recapture
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2339.77 ▼15.49
Dashboard /wp-admin3.55 ▲0.2546.15 ▼4.30
Posts /wp-admin/edit.php3.60 ▲0.2561.92 ▲16.34
Add New Post /wp-admin/post-new.php6.07 ▲0.1888.23 ▼9.84
Media Library /wp-admin/upload.php3.41 ▲0.1842.63 ▼6.17

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

WordPress abandoned cart recovery and email marketing for Easy Digital Downloads by Recapture: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.56 ▼0.741.72 ▼0.4143.69 ▼2.02
Dashboard /wp-admin2,215 ▲305.85 ▼0.00116.00 ▼10.9242.94 ▼4.94
Posts /wp-admin/edit.php2,101 ▲121.99 ▼0.0551.66 ▲12.6652.21 ▲15.78
Add New Post /wp-admin/post-new.php1,532 ▲1320.68 ▼2.34806.70 ▲130.2267.07 ▲11.73
Media Library /wp-admin/upload.php1,397 ▲94.18 ▼0.04156.73 ▲25.9968.30 ▲9.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'RecaptureBasePlatform' not found in wp-content/plugins/recapture-for-edd/platforms/class-edd.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'RecaptureBasePlatform' not found in wp-content/plugins/recapture-for-edd/platforms/class-woocommerce.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/recapture-for-edd/templates/reviews.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recapture-for-edd/recapture.php:645

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: 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!)
You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "WordPress abandoned cart recovery and email marketing for Easy Digital Downloads by Recapture" version 1.0.34
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("recapture-for-edd.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 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,704 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP63121621,307
CSS2112180
JavaScript2265158
PO File1151759

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity22.60
▷ Minimum class complexity2.00
▷ Maximum class complexity47.00
Average method complexity2.01
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods104
▷ Static methods5250.00%
▷ Public methods10096.15%
▷ Protected methods21.92%
▷ Private methods21.92%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
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%