84% true-mailchimp-sync-for-woo-memberships

Code Review | MailChimp Sync for WooCommerce Memberships

WordPress plugin MailChimp Sync for WooCommerce Memberships scored84%from 54 tests.

About plugin

  • Plugin page: true-mailchimp-sy...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2019
  • Latest release: Jun 25, 2019
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: rudrastyh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.18MB] [CPU: ▲0.49ms] Passed 4 tests

Server-side resources used by MailChimp Sync for WooCommerce Memberships
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1840.46 ▲0.27
Dashboard /wp-admin3.48 ▲0.1751.53 ▲5.50
Posts /wp-admin/edit.php3.60 ▲0.2447.16 ▲2.00
Add New Post /wp-admin/post-new.php6.08 ▲0.1983.59 ▼3.81
Media Library /wp-admin/upload.php3.41 ▲0.1736.48 ▲3.51
MailChimp Sync /wp-admin/options-general.php?page=mailchimpbymisha3.3732.11

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for MailChimp Sync for WooCommerce Memberships
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.28 ▼1.074.46 ▲2.5244.53 ▼2.96
Dashboard /wp-admin2,227 ▲394.89 ▲0.0396.38 ▼22.4638.84 ▼3.69
Posts /wp-admin/edit.php2,103 ▲142.04 ▲0.0234.48 ▼2.2836.01 ▲1.74
Add New Post /wp-admin/post-new.php1,548 ▲1523.37 ▲0.23586.33 ▼113.7356.38 ▼8.69
Media Library /wp-admin/upload.php1,406 ▲154.21 ▼0.0197.40 ▲0.0844.31 ▼0.89
MailChimp Sync /wp-admin/options-general.php?page=mailchimpbymisha7991.6826.5425.78

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
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Misha_Mailchimp_API' not found in wp-content/plugins/true-mailchimp-sync-for-woo-memberships/class-misha-mailchimp-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/true-mailchimp-sync-for-woo-memberships/class-misha-mailchimp-api.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce membership sync, rudrastyh, mailchimp, mailchimp sync, woocommerce memberships

true-mailchimp-sync-for-woo-memberships/true-mailchimp-sync-for-woo-memberships.php Passed 13 tests

The primary PHP file in "MailChimp Sync for WooCommerce Memberships" version 1.0 is used by WordPress to initiate all plugin functionality
98 characters long description:
Allows to sync users with every status of your WooCommerce Memberships plans with MailChimp lists.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin902 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3366195826
JavaScript1322576

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity75.50
▷ Minimum class complexity59.00
▷ Maximum class complexity92.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin