83% recapture-for-paid-memberships-pro

Code Review | WordPress abandoned cart recovery and email marketing for Paid Memberships Pro by Recapture

WordPress plugin WordPress abandoned cart recovery and email marketing for Paid Memberships Pro by Recapture scored 83% from 54 tests.

About plugin

  • Plugin page: recapture-for-pai...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 26, 2021
  • Latest release: Sep 2, 2023
  • Number of updates: 15
  • Update frequency: every 51.9 days
  • Top authors: recaptureio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,288 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.05ms] Passed 4 tests

Analyzing server-side resources used by WordPress abandoned cart recovery and email marketing for Paid Memberships Pro by Recapture
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.20 ▲3.52
Dashboard /wp-admin3.52 ▲0.2143.69 ▼10.46
Posts /wp-admin/edit.php3.57 ▲0.2147.29 ▼2.96
Add New Post /wp-admin/post-new.php6.03 ▲0.1592.11 ▼6.31
Media Library /wp-admin/upload.php3.38 ▲0.1548.61 ▲13.46

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

WordPress abandoned cart recovery and email marketing for Paid Memberships Pro by Recapture: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7414.80 ▲0.561.63 ▼0.4338.67 ▼11.77
Dashboard /wp-admin2,212 ▲215.84 ▼0.07100.73 ▼3.8139.02 ▼7.53
Posts /wp-admin/edit.php2,098 ▲92.06 ▲0.0340.33 ▲2.0136.50 ▲0.62
Add New Post /wp-admin/post-new.php1,542 ▲2823.10 ▲5.48629.85 ▼48.0562.49 ▲12.46
Media Library /wp-admin/upload.php1,391 ▲64.29 ▲0.0496.09 ▼7.5541.98 ▼1.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/recapture-for-paid-memberships-pro/templates/reviews.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'RecaptureBasePlatform' not found in wp-content/plugins/recapture-for-paid-memberships-pro/platforms/class-paid-memberships-pro.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recapture-for-paid-memberships-pro/recapture.php:661

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Experience the famous 5-minute install with Recapture), #2 (Configure your site settings once you're connected), #3 (Activate your campaigns in Recapture to start increasing sales!)
Please take inspiration from this readme.txt

recapture-for-paid-memberships-pro/recapture.php 85% from 13 tests

The main PHP script in "WordPress abandoned cart recovery and email marketing for Paid Memberships Pro by Recapture" version 1.0.6 is automatically included on every request by WordPress
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-paid-memberships-pro.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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,671 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP52291181,115
JavaScript56239317
CSS2112180
PO File1151759

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity19.50
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods86
▷ Static methods4350.00%
▷ Public methods8396.51%
▷ Protected methods11.16%
▷ Private methods22.33%
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

PNG files should be compressed to save space and minimize bandwidth usage
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%