65% mailchimp-subscribe-sm

Code Review | MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder

WordPress plugin MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder scored65%from 54 tests.

About plugin

  • Plugin page: mailchimp-subscri...
  • Plugin version: 4.0.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.4
  • WordPress version: 6.3.1
  • First release: Sep 3, 2014
  • Latest release: Nov 27, 2023
  • Number of updates: 604
  • Update frequency: every 5.6 days
  • Top authors: umarbajwa (100%)

Code review

54 tests

User reviews

65 reviews

Install metrics

4,000+ active /407,672 total downloads

Benchmarks

Plugin footprint 81% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.78MB] [CPU: ▲5.58ms] Passed 4 tests

Server-side resources used by MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.8044.18 ▼0.51
Dashboard /wp-admin4.11 ▲0.8155.45 ▲9.00
Posts /wp-admin/edit.php4.17 ▲0.8161.54 ▲11.14
Add New Post /wp-admin/post-new.php6.65 ▲0.7697.55 ▲3.13
Media Library /wp-admin/upload.php3.97 ▲0.7443.25 ▲10.69
Form Submissions /wp-admin/edit.php?post_type=pluginops_forms&page=page-builder-smfb-form-submissions3.9538.53
Blank Page /wp-admin/edit.php?post_type=pluginops_forms&page=optin-builder-new-optin-page4.0334.62
Dashboard /wp-admin/edit.php?post_type=pluginops_forms&page=page-builder-dashboard-smfb3.9644.14
Campaigns /wp-admin/edit.php?post_type=pluginops_forms4.0261.46
Add New /wp-admin/post-new.php?post_type=pluginops_forms4.1646.88
Go Pro /wp-admin/edit.php?post_type=pluginops_forms&page=page-builder-extensions-smfb3.9840.45

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 440 new files
Database: no new tables, 10 new options
New WordPress options
cpt_reset_msf_pluginops
widget_ssm_form_widget
msfpluginops_prem_plugin_ver
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
msfpluginops_activation_date

Browser metrics 25% from 4 tests

Checking browser requirements for MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder
A great user experience is important, so you should focus on the following
  • Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 115,230 on /wp-admin/post-new.php?post_type=pluginops_forms)
  • Script duration: Try to keep JavaScript execution under 1,500.00ms (currently 2,978.45ms on /wp-admin/edit.php?post_type=pluginops_forms&page=optin-builder-new-optin-page)
  • Memory: Browser memory usage must be limited to 75.00MB (currently 80.55MB on /wp-admin/edit.php?post_type=pluginops_forms&page=page-builder-dashboard-smfb)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17414.72 ▲0.491.82 ▲0.1137.88 ▼7.16
Dashboard /wp-admin2,313 ▲1415.66 ▼0.0296.82 ▼25.1051.45 ▲9.34
Posts /wp-admin/edit.php2,232 ▲1322.15 ▲0.2043.57 ▲3.6541.50 ▲4.04
Add New Post /wp-admin/post-new.php1,613 ▲8523.20 ▼0.05605.13 ▼64.0950.11 ▲5.18
Media Library /wp-admin/upload.php1,515 ▲1184.21 ▲0.0196.71 ▲2.0845.75 ▲5.57
Form Submissions /wp-admin/edit.php?post_type=pluginops_forms&page=page-builder-smfb-form-submissions9571.8532.8538.07
Blank Page /wp-admin/edit.php?post_type=pluginops_forms&page=optin-builder-new-optin-page114,38232.222,978.45189.46
Dashboard /wp-admin/edit.php?post_type=pluginops_forms&page=page-builder-dashboard-smfb6,79580.552,016.18149.16
Campaigns /wp-admin/edit.php?post_type=pluginops_forms1,2142.0747.5451.46
Add New /wp-admin/post-new.php?post_type=pluginops_forms115,23031.352,905.62112.98
Go Pro /wp-admin/edit.php?post_type=pluginops_forms&page=page-builder-extensions-smfb1,3192.0627.7145.59

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • theysaidso_admin_options
    • msfpluginops_prem_plugin_ver
    • msfpluginops_activation_date
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_ssm_form_widget
    • can_compress_scripts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=pluginops_forms&page=optin-builder-new-optin-page
    • > Notice in wp-content/plugins/mailchimp-subscribe-sm/admin/views/UI/side-panel.php+234
    Undefined variable: post
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=pluginops_forms&page=optin-builder-new-optin-page
    • > Notice in wp-content/plugins/mailchimp-subscribe-sm/admin/views/UI/admin-ui.php+22
    Trying to get property 'post_name' of non-object
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=pluginops_forms&page=optin-builder-new-optin-page
    • > Notice in wp-content/plugins/mailchimp-subscribe-sm/admin/views/UI/side-panel.php+234
    Trying to get property 'ID' of non-object

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mailchimp-subscribe-sm/admin/views/UI/widgets/widget-close-link.php
  • 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/mailchimp-subscribe-sm/admin/views/admin-ui-pageType.php:2
    • > PHP Notice
      Undefined variable: selectedOptinType in wp-content/plugins/mailchimp-subscribe-sm/public/templates/scripts/optinDisplayScript.php on line 2
    • > PHP Notice
      Undefined variable: popupPosition in wp-content/plugins/mailchimp-subscribe-sm/public/templates/scripts/optinDisplayScript.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/mailchimp-subscribe-sm/mun/views/welcome.php:4
    • > PHP Notice
      Undefined variable: this_popup_unique_Id in wp-content/plugins/mailchimp-subscribe-sm/public/templates/scripts/optinDisplayScript.php on line 51
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/mailchimp-subscribe-sm/integrations/aweber_api/aweber_collection.php:2
    • > PHP Notice
      Undefined variable: this_popup_unique_Id in wp-content/plugins/mailchimp-subscribe-sm/public/templates/scripts/optinDisplayScript.php on line 55
    • > PHP Notice
      Undefined variable: this_popup_unique_Id in wp-content/plugins/mailchimp-subscribe-sm/public/templates/scripts/optinDisplayScript.php on line 28
    • > PHP Notice
      Undefined variable: this_popup_unique_Id in wp-content/plugins/mailchimp-subscribe-sm/public/templates/scripts/optinDisplayScript.php on line 48
    • > PHP Notice
      Undefined variable: this_popup_unique_Id in wp-content/plugins/mailchimp-subscribe-sm/public/templates/scripts/optinDisplayScript.php on line 20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=pluginops_forms
    • > Network (severe)
    wp-content/plugins/mailchimp-subscribe-sm/public/templates/animate.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=pluginops_forms
    • > Network (severe)
    wp-content/plugins/mailchimp-subscribe-sm/images/menu/menu-style-1.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=pluginops_forms
    • > Network (severe)
    wp-content/plugins/mailchimp-subscribe-sm/images/menu/menu-style-2.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=pluginops_forms
    • > Network (severe)
    wp-content/plugins/mailchimp-subscribe-sm/images/menu/menu-style-4.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=pluginops_forms
    • > Network (severe)
    wp-content/plugins/mailchimp-subscribe-sm/images/menu/menu-style-3.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=pluginops_forms
    • > Console-api (warning) in wp-content/plugins/mailchimp-subscribe-sm/js/aceSRC/ace.js+26:58043
    Automatically scrolling cursor into view after selection change" "this will be disabled in the next version" "set editor.$blockScrolling = Infinity to disable this message
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=pluginops_forms
    • > Network (severe)
    wp-content/plugins/mailchimp-subscribe-sm/images/templates/widgetBlocks/29.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=pluginops_forms
    • > Network (severe)
    wp-content/plugins/mailchimp-subscribe-sm/images/templates/widgetBlocks/30.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: You can look at the official readme.txt

mailchimp-subscribe-sm/subcribe-me.php 92% from 13 tests

"MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder" version 4.0.9.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mailchimp-subscribe-sm.php" instead of "subcribe-me.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected74,558 lines of code in 295 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript628,2873,23141,425
PHP1286,4856,15428,802
CSS126073233,919
Sass11486295
JSON810081
SVG10036

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity20.39
▷ Minimum class complexity1.00
▷ Maximum class complexity340.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes59
▷ Abstract classes00.00%
▷ Concrete classes59100.00%
▷ Final classes00.00%
Methods628
▷ Static methods91.43%
▷ Public methods59093.95%
▷ Protected methods314.94%
▷ Private methods71.11%
Functions29
▷ Named functions2793.10%
▷ Anonymous functions26.90%
Constants39
▷ Global constants39100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
127 compressed PNG files occupy 0.70MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icons/optin-types-icon-flyIn.png0.88KB0.82KB▼ 6.35%
images/templates/thumbs/template-59.png3.75KB3.72KB▼ 0.68%
images/templates/thumbs/template-24.png1.10KB1.22KB0.00%
images/templates/thumbs/template-23.png17.32KB17.04KB▼ 1.64%
images/icons/5.png2.73KB2.73KB0.00%