84% mailpoet-paid-memberships-pro-add-on

Code Review | Paid Memberships Pro - MailPoet Add On

WordPress plugin Paid Memberships Pro - MailPoet Add On scored84%from 54 tests.

About plugin

  • Plugin page: mailpoet-paid-mem...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2014
  • Latest release: Apr 16, 2023
  • Number of updates: 13
  • Update frequency: every 256.3 days
  • Top authors: strangerstudios (53.85%)sebd86 (38.46%)andrewza (23.08%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /5,776 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.02MB] [CPU: ▼5.76ms] Passed 4 tests

Server-side resources used by Paid Memberships Pro - MailPoet Add On
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.61 ▼2.97
Dashboard /wp-admin3.33 ▼0.0145.97 ▼11.79
Posts /wp-admin/edit.php3.38 ▲0.0346.99 ▼0.38
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.76 ▼3.60
Media Library /wp-admin/upload.php3.25 ▲0.0331.73 ▼4.68

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

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

Browser metrics Passed 4 tests

Paid Memberships Pro - MailPoet Add On: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.69 ▲0.271.76 ▲0.1742.17 ▼0.62
Dashboard /wp-admin2,198 ▲275.56 ▼0.1182.89 ▼6.6237.45 ▼5.76
Posts /wp-admin/edit.php2,103 ▼01.97 ▼0.0640.40 ▼3.5842.69 ▲6.87
Add New Post /wp-admin/post-new.php1,539 ▲1118.59 ▼4.54629.01 ▼34.7850.47 ▲0.52
Media Library /wp-admin/upload.php1,403 ▲64.17 ▲0.05100.67 ▼8.7142.48 ▼7.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailpoet-paid-memberships-pro-add-on/includes/opt-in-lists-functions.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailpoet-paid-memberships-pro-add-on/includes/settings.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailpoet-paid-memberships-pro-add-on/includes/members-lists-functions.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailpoet-paid-memberships-pro-add-on/includes/members-lists-functions.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: pmpro, private newsletter, paid newsletter, mailpoet, paid memberships pro...

mailpoet-paid-memberships-pro-add-on/pmpro-mailpoet.php 92% from 13 tests

The primary PHP file in "Paid Memberships Pro - MailPoet Add On" version 3.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mailpoet-paid-memberships-pro-add-on.php" instead of "pmpro-mailpoet.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin505 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6100270493
CSS11012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin