78% mailchimp

Code Review | MailChimp List Subscribe Form

WordPress plugin MailChimp List Subscribe Form scored 78% from 54 tests.

About plugin

Code review

54 tests

User reviews

74 reviews

Install metrics

70,000+ active / 1,946,213 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 gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▲3.21ms] Passed 4 tests

This is a short check of server-side resources used by MailChimp List Subscribe Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3245.06 ▲4.30
Dashboard /wp-admin3.60 ▲0.2953.42 ▲1.26
Posts /wp-admin/edit.php3.71 ▲0.3655.18 ▲0.73
Add New Post /wp-admin/post-new.php6.18 ▲0.29113.70 ▲16.56
Media Library /wp-admin/upload.php3.52 ▲0.2942.48 ▲6.53
MailChimp Setup /wp-admin/options-general.php?page=mailchimpSF_options3.6037.65

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 145 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

MailChimp List Subscribe Form: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲2713.19 ▼1.225.43 ▲3.7242.93 ▲1.22
Dashboard /wp-admin2,214 ▲114.81 ▼0.04107.88 ▼11.3641.76 ▼0.97
Posts /wp-admin/edit.php2,097 ▲52.17 ▲0.1840.30 ▲0.4135.78 ▲1.37
Add New Post /wp-admin/post-new.php1,545 ▲3118.72 ▲1.20613.07 ▼36.9760.01 ▲12.52
Media Library /wp-admin/upload.php1,396 ▲84.16 ▼0.1198.66 ▲1.3943.69 ▲2.06
MailChimp Setup /wp-admin/options-general.php?page=mailchimpSF_options8402.0228.0265.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mailchimp/views/datepicker.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mailchimp/views/setup_page.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailchimp/mailchimp_widget.php:473
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mailchimp/mailchimp_compat.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mailchimp/views/css/frontend.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailchimp/mailchimp.php:1071

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Entering your MailChimp login info), #2 (Selecting your MailChimp list), #3 (Configuring your Signup Form display format (optional)), #4 (Configuring extra fields on your Signup Form (optional)), #5 (An example Signup Form Widget)
You can take inspiration from this readme.txt

mailchimp/mailchimp.php Passed 13 tests

"MailChimp List Subscribe Form" version 1.5.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
The MailChimp plugin allows you to quickly and easily add a signup form for your MailChimp list.

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
Good job! No executable or dangerous file extensions detected10,948 lines of code in 100 files:
LanguageFilesBlank linesComment linesLines of code
PO File241,8972,2634,268
JavaScript661024704,096
PHP72993142,017
CSS37872567

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.50
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/flick/images/ui-bg_flat_55_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
css/flick/images/ui-icons_ffffff_256x240.png4.27KB4.11KB▼ 3.78%
css/flick/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
css/flick/images/ui-bg_highlight-soft_25_0073ea_1x100.png0.12KB0.18KB0.00%
css/flick/images/ui-bg_flat_0_eeeeee_40x100.png0.18KB0.08KB▼ 51.67%