84% simple-membership-mailchimp-integration

Code Review | Simple Membership MailChimp Integration

WordPress plugin Simple Membership MailChimp Integration scored84%from 54 tests.

About plugin

  • Plugin page: simple-membership...
  • Plugin version: v1.9.4...
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 14, 2014
  • Latest release: Jul 27, 2023
  • Number of updates: 31
  • Update frequency: every 106.5 days
  • Top authors: wp.insider (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /26,265 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.30ms] Passed 4 tests

This is a short check of server-side resources used by Simple Membership MailChimp Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.59 ▼5.38
Dashboard /wp-admin3.38 ▲0.0845.18 ▼6.39
Posts /wp-admin/edit.php3.43 ▲0.0848.17 ▲1.28
Add New Post /wp-admin/post-new.php5.96 ▲0.0890.25 ▼10.69
Media Library /wp-admin/upload.php3.31 ▲0.0836.66 ▲3.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Membership MailChimp Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.34 ▼0.941.93 ▼0.1340.75 ▼3.02
Dashboard /wp-admin2,206 ▲214.85 ▼0.04102.71 ▼6.4137.99 ▼8.21
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0140.85 ▲1.6639.37 ▲5.70
Add New Post /wp-admin/post-new.php1,519 ▼1423.18 ▼0.09690.97 ▼5.1951.48 ▼15.60
Media Library /wp-admin/upload.php1,382 ▼94.23 ▲0.05100.48 ▼3.7347.04 ▲4.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× 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/simple-membership-mailchimp-integration/swpm-mailchimp-action.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-membership-mailchimp-integration/swpm-mailchimp-admin-menu.php:2

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: member, subscribe, access, optin, mailchimp...

simple-membership-mailchimp-integration/swpm-mailchimp-signup.php 85% from 13 tests

This is the main PHP file of "Simple Membership MailChimp Integration" version v1.9.4..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "v1.9.4...")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-membership-mailchimp-integration.php" instead of "swpm-mailchimp-signup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected552 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4118150552

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin