84% pmpro-mailchimp

Code Review | Paid Memberships Pro - Mailchimp Add On

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

About plugin

  • Plugin page: pmpro-mailchimp
  • Plugin version: 2.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Jul 28, 2013
  • Latest release: Nov 15, 2023
  • Number of updates: 51
  • Update frequency: every 73.8 days
  • Top authors: strangerstudios (82.35%)dlparker1005 (19.61%)

Code review

54 tests

User reviews

12 reviews

Install metrics

5,000+ active /103,481 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.28MB] [CPU: ▲0.90ms] Passed 4 tests

This is a short check of server-side resources used by Paid Memberships Pro - Mailchimp Add On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2845.42 ▲4.46
Dashboard /wp-admin3.59 ▲0.2945.66 ▼0.47
Posts /wp-admin/edit.php3.70 ▲0.3549.31 ▲5.24
Add New Post /wp-admin/post-new.php6.17 ▲0.2890.19 ▼1.08
Media Library /wp-admin/upload.php3.51 ▲0.2835.08 ▲0.67
PMPro Mailchimp /wp-admin/options-general.php?page=pmpromc_options3.4830.86

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

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

Browser metrics Passed 4 tests

Paid Memberships Pro - Mailchimp 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,798 ▲3614.72 ▲0.321.73 ▼0.0539.27 ▼4.97
Dashboard /wp-admin2,201 ▲215.49 ▼0.0592.79 ▼2.3843.55 ▼2.51
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0739.79 ▲2.3135.79 ▼3.67
Add New Post /wp-admin/post-new.php1,534 ▲823.23 ▼0.66615.84 ▼59.7952.60 ▼10.41
Media Library /wp-admin/upload.php1,409 ▲124.38 ▲0.1996.82 ▼6.2744.52 ▲0.22
PMPro Mailchimp /wp-admin/options-general.php?page=pmpromc_options9562.1225.4030.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • pmpromc_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 fix the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-mailchimp/includes/api-wrapper.php:174
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-mailchimp/includes/api-wrapper.php:174
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-mailchimp/includes/functions.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/pmpro-mailchimp/includes/export-csv.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-mailchimp/includes/settings.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-mailchimp/includes/profile.php:109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (General Settings for plugin, including the non-member audiences opt-in rules, and unsubscribe rules.), #2 (Specific settings for Membership Levels and Audiences.)
Please take inspiration from this readme.txt

pmpro-mailchimp/pmpro-mailchimp.php Passed 13 tests

The entry point to "Paid Memberships Pro - Mailchimp Add On" version 2.3.4 is a PHP file that has certain tags in its header comment area
63 characters long description:
Sync your WordPress users and members with Mailchimp audiences.

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,907 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP83975451,745
PO File16167135
Bourne Shell10815
CSS11012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1575.00%
▷ Protected methods00.00%
▷ Private methods525.00%
Functions57
▷ Named functions57100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.08MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png23.67KB22.21KB▼ 6.15%
screenshot-1.png57.64KB56.06KB▼ 2.74%