10% bigmailchimp

Code Review | Big MailChimp

WordPress plugin Big MailChimp scored 10% from 54 tests.

About plugin

  • Plugin page: bigmailchimp
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 3, 2012
  • Latest release: Jun 5, 2014
  • Number of updates: 24
  • Update frequency: every 30.5 days
  • Top authors: bigemployee (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

30+ active / 9,971 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/bigmailchimp/bigMailChimp.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; BigMailChimp has a deprecated constructor

Server metrics [RAM: ▼1.88MB] [CPU: ▼53.89ms] Passed 4 tests

Server-side resources used by Big MailChimp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.60 ▼36.91
Dashboard /wp-admin2.12 ▼1.186.59 ▼42.02
Posts /wp-admin/edit.php2.12 ▼1.235.14 ▼43.18
Add New Post /wp-admin/post-new.php2.12 ▼3.765.27 ▼93.45
Media Library /wp-admin/upload.php2.12 ▼1.115.60 ▼30.22
MailChimp Lists /wp-admin/admin.php?page=big-mailchimp2.125.46
Settings /wp-admin/admin.php?page=big-mailchimp-settings2.125.49

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 79 new files
Database: 1 new table, 9 new options
New tables
wp_big_mailchimp_lists
New WordPress options
BigMailChimp_DB_version
widget_mcformwidget
db_upgraded
can_compress_scripts
recovery_mode_email_last_sent
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Big MailChimp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18613.57 ▼0.808.20 ▲5.7939.84 ▼8.00
Dashboard /wp-admin2,237 ▲465.90 ▼0.00110.44 ▲5.9839.91 ▼6.20
Posts /wp-admin/edit.php2,117 ▲462.05 ▲0.0136.63 ▲0.6332.63 ▼3.31
Add New Post /wp-admin/post-new.php6,539 ▲4,98920.16 ▲1.71983.17 ▲345.7741.09 ▼12.31
Media Library /wp-admin/upload.php1,413 ▲284.20 ▼0.0594.59 ▼5.7542.83 ▼1.81
MailChimp Lists /wp-admin/admin.php?page=big-mailchimp1,0252.0224.6526.69
Settings /wp-admin/admin.php?page=big-mailchimp-settings8021.537.0923.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/bigmailchimp/bigMailChimp.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; BigMailChimp has a deprecated constructor
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_big_mailchimp_lists
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_mcformwidget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • BigMailChimp_DB_version
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=big-mailchimp-settings
    • > Deprecated in wp-content/plugins/bigmailchimp/bigMailChimp.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; BigMailChimp has a deprecated constructor
    • > GET request to /wp-admin/admin.php?page=big-mailchimp-settings
    • > Error in wp-content/plugins/bigmailchimp/views/bigMCSettings.php+12
    Uncaught Error: Call to undefined function Functions_GetMessages() in wp-content/plugins/bigmailchimp/views/bigMCSettings.php:12
    Stack trace:
    #0 wp-content/plugins/bigmailchimp/controllers/adminController.php(36): include_once()
    #1 wp-content/plugins/bigmailchimp/bigMailChimp.php(57): include_once('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): BigMailChimp->init_BigMailChimp_Settings()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 {main}
    thrown

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bigmailchimp/includes/mc.php
  • 41× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bigmailchimp/views/bigMC.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bigmailchimp/views/bigMCDelete.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Forms_ElementsAbstract' not found in wp-content/plugins/bigmailchimp/library/Forms/Plain/BirthdayElement.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Forms_ElementsAbstract' not found in wp-content/plugins/bigmailchimp/library/Forms/Plain/UrlElement.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Forms_ElementsAbstract' not found in wp-content/plugins/bigmailchimp/library/Forms/Plain/PhoneElement.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bigmailchimp/bigMailChimp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Forms_ElementsAbstract' not found in wp-content/plugins/bigmailchimp/library/Forms/Plain/TextElement.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Forms_ElementsAbstract' not found in wp-content/plugins/bigmailchimp/library/Forms/MC/NumberElement.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Forms_FormAbstract' not found in wp-content/plugins/bigmailchimp/views/Forms/MCGenerated.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Forms_ElementsAbstract' not found in wp-content/plugins/bigmailchimp/library/Forms/Plain/EmailElement.php:8

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Screenshots: These screenshots do not have images: #1 (Front-end view displaying MailChimp form in content and the same form with required fields enabled in the widget area), #2 (Shortcode Generator), #3 (Widget Settings)
The official readme.txt is a good inspiration

bigmailchimp/bigMailChimp.php 92% from 13 tests

The main PHP script in "Big MailChimp" version 2.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bigmailchimp.php" instead of "bigMailChimp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,995 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
PHP675672,4602,862
JavaScript45368
CSS40065

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity3.41
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes145
▷ Abstract classes21.38%
▷ Concrete classes14398.62%
▷ Final classes00.00%
Methods273
▷ Static methods20.73%
▷ Public methods27299.63%
▷ Protected methods10.37%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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
3 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png12.27KB4.73KB▼ 61.46%
screenshot-1.png120.83KB37.42KB▼ 69.03%
screenshot-3.png30.01KB9.88KB▼ 67.09%