68% mailchimp-wp

Code Review | Forms for Mailchimp by Optin Cat - Grow Your MailChimp List

WordPress plugin Forms for Mailchimp by Optin Cat - Grow Your MailChimp List scored68%from 54 tests.

About plugin

  • Plugin page: mailchimp-wp
  • Plugin version: 2.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 16, 2014
  • Latest release: Sep 27, 2023
  • Number of updates: 204
  • Update frequency: every 16.3 days
  • Top authors: davidhme (76.47%)fatcatapps (16.67%)flippy101 (5.39%)RyanNovotny (2.94%)

Code review

54 tests

User reviews

76 reviews

Install metrics

4,000+ active /258,728 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.97MB] [CPU: ▼1.53ms] Passed 4 tests

Analyzing server-side resources used by Forms for Mailchimp by Optin Cat - Grow Your MailChimp List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.46 ▲1.0055.18 ▲13.84
Dashboard /wp-admin4.30 ▲0.9552.46 ▼9.10
Posts /wp-admin/edit.php4.33 ▲0.9851.25 ▼3.49
Add New Post /wp-admin/post-new.php6.87 ▲0.98103.68 ▼5.87
Media Library /wp-admin/upload.php4.20 ▲0.9845.89 ▲12.35
All Optin Forms /wp-admin/edit.php?post_type=easy-opt-ins4.2546.27
Upgrade to Premium /wp-admin/edit.php?post_type=easy-opt-ins&page=eoi_premium_upgrade4.0128.80
Settings /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_settings_page4.1137.80
Add New /wp-admin/post-new.php?post_type=easy-opt-ins7.3076.13
Subscribers /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_subscribers_page4.1150.36

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 239 new files
Database: 2 new tables, 10 new options
New tables
wp_fca_eoi_activity
wp_fca_eoi_subscribers
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
fca_eoi_settings
widget_theysaidso_widget
fca_eoi_subscribers_table_ver
fca_eoi_allow_customform
db_upgraded
widget_easy-opt-in-widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Forms for Mailchimp by Optin Cat - Grow Your MailChimp List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,097 ▲32614.65 ▲0.372.86 ▲0.7442.96 ▼0.11
Dashboard /wp-admin2,498 ▲3106.29 ▲1.39120.29 ▲11.9787.28 ▲45.85
Posts /wp-admin/edit.php2,246 ▲1572.05 ▲0.0640.55 ▲0.1432.78 ▼2.79
Add New Post /wp-admin/post-new.php6,402 ▲4,87428.20 ▲10.11887.06 ▲255.5040.22 ▼19.35
Media Library /wp-admin/upload.php1,445 ▲664.18 ▼0.10105.85 ▼2.2564.60 ▲22.86
All Optin Forms /wp-admin/edit.php?post_type=easy-opt-ins1,2582.1938.1338.19
Upgrade to Premium /wp-admin/edit.php?post_type=easy-opt-ins&page=eoi_premium_upgrade1,0895.12262.95143.87
Settings /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_settings_page1,2433.2976.3142.25
Add New /wp-admin/post-new.php?post_type=easy-opt-ins6,9387.31303.44213.65
Subscribers /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_subscribers_page9751.6926.0325.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie tables detected upon uninstall: 2 tables
    • wp_fca_eoi_subscribers
    • wp_fca_eoi_activity
  • Zombie WordPress options were found after uninstall: 9 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • fca_eoi_subscribers_table_ver
    • can_compress_scripts
    • widget_easy-opt-in-widget
    • widget_recent-comments
    • fca_eoi_settings
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 63× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant FCA_EOI_PLUGIN_DIR - assumed 'FCA_EOI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailchimp-wp/layouts/common/layout_16/layout.php on line 4
    • > PHP Warning
      Use of undefined constant FCA_EOI_PLUGIN_DIR - assumed 'FCA_EOI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailchimp-wp/layouts/common/layout_0/layout.php on line 4
    • > PHP Warning
      Use of undefined constant FCA_EOI_PLUGIN_DIR - assumed 'FCA_EOI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailchimp-wp/layouts/common/layout_1/layout.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mailchimp-wp/powerups/2_custom_css/powerup.php:11
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/mailchimp-wp/layouts/common/layout_1/layout.php on line 4
    • > PHP Warning
      Use of undefined constant FCA_EOI_PLUGIN_DIR - assumed 'FCA_EOI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailchimp-wp/layouts/common/layout_15/layout.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php' (include_path='.:/usr/share/php') in wp-content/plugins/mailchimp-wp/layouts/common/layout_1/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/mailchimp-wp/layouts/common/layout_15/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/mailchimp-wp/layouts/common/layout_5/layout.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'FCA_EOI_PLUGIN_DIRincludes/classes/k/k.php' (include_path='.:/usr/share/php') in wp-content/plugins/mailchimp-wp/includes/eoi-functions.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=easy-opt-ins
    • > Deprecation (warning) in unknown
    /wp-content/plugins/mailchimp-wp/assets/vendor/wysi/wysihtml.min.js?ver=2.5.6 9 Listener added for a synchronous 'DOMNodeRemoved' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Examples of the MailChimp form designs), #2 (The MailChimp Opt-in Form Builder), #3 (MailChimp Post Box), #4 (MailChimp Popup), #5 (Another MailChimp Post Box), #6 (MailChimp Form Analytics), #7 (The entire settings screen)
You can take inspiration from this readme.txt

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

"Forms for Mailchimp by Optin Cat - Grow Your MailChimp List" version 2.5.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
128 characters long description:
The Mailchimp Optin Cat WordPress Plugin Makes It Super Simple To Create Beautiful Mailchimp Sign-up Widgets & Forms In Minutes.

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
Success! There were no dangerous files found in this plugin9,543 lines of code in 147 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,4281,0435,650
JavaScript344201971,950
CSS27145221,102
Sass201060534
HTML22170306
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity36.50
▷ Minimum class complexity1.00
▷ Maximum class complexity208.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods153
▷ Static methods149.15%
▷ Public methods12179.08%
▷ Protected methods00.00%
▷ Private methods3220.92%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
68 compressed PNG files occupy 1.28MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png6.29KB6.57KB0.00%
assets/admin/onboarding-text.png4.78KB2.94KB▼ 38.44%
layouts/screenshots/lightbox_17.png17.07KB18.75KB0.00%
icon.png0.89KB0.76KB▼ 14.25%
layouts/screenshots/postbox_21.png20.38KB22.42KB0.00%