74% wp-mail-bank

Code Review | Mail Bank - #1 Mail SMTP Plugin for WordPress

WordPress plugin Mail Bank - #1 Mail SMTP Plugin for WordPress scored74%from 54 tests.

About plugin

  • Plugin page: wp-mail-bank
  • Plugin version: 4.0.14
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2014
  • Latest release: Oct 6, 2021
  • Number of updates: 473
  • Update frequency: every 5.6 days
  • Top authors: contact-banker (100%)

Code review

54 tests

User reviews

434 reviews

Install metrics

30,000+ active /3,829,587 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.38MB] [CPU: ▲6.73ms] Passed 4 tests

Server-side resources used by Mail Bank - #1 Mail SMTP Plugin for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4044.24 ▲1.88
Dashboard /wp-admin3.72 ▲0.4267.93 ▲17.27
Posts /wp-admin/edit.php3.79 ▲0.4367.27 ▲16.13
Add New Post /wp-admin/post-new.php6.16 ▲0.28107.74 ▼2.97
Media Library /wp-admin/upload.php3.73 ▲0.5048.25 ▲11.89
Send Test Email /wp-admin/admin.php?page=mb_test_email3.7142.88
Setup Wizard /wp-admin/admin.php?page=mb_email_configuration3.7152.37
Email Reports ( Pro ) /wp-admin/admin.php?page=mb_email_logs3.7139.04
Notifications ( Pro ) /wp-admin/admin.php?page=mb_notifications3.7148.26
System Information /wp-admin/admin.php?page=mb_system_information3.7142.59
Connectivity Test /wp-admin/admin.php?page=mb_connectivity_test3.7143.09
/wp-admin/admin.php?page=wp_mail_bank_wizard3.7140.61
General Settings /wp-admin/admin.php?page=mb_settings3.7144.21
Roles & Capabilities /wp-admin/admin.php?page=mb_roles_and_capabilities3.7141.64
Upgrade Now /wp-admin/admin.php?page=mb_upgrade_now3.7143.80

Server storage [IO: ▲2.23MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 146 new files
Database: 3 new tables, 9 new options
New tables
wp_mail_bank
wp_mail_bank_meta
wp_mail_bank_logs
New WordPress options
mail_bank_update_database
can_compress_scripts
widget_recent-posts
db_upgraded
mail-bank-version-number
mb_admin_notice
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Mail Bank - #1 Mail SMTP Plugin for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,038 ▲27714.26 ▼0.031.65 ▼0.0244.65 ▼1.08
Dashboard /wp-admin2,429 ▲2525.64 ▼0.0389.07 ▼6.0084.80 ▲48.00
Posts /wp-admin/edit.php2,119 ▲192.07 ▲0.0836.27 ▲0.0333.52 ▼2.39
Add New Post /wp-admin/post-new.php1,696 ▲17022.22 ▼0.87749.06 ▲66.0951.99 ▼10.49
Media Library /wp-admin/upload.php1,413 ▲194.28 ▲0.12102.10 ▼0.0161.37 ▲19.80
Send Test Email /wp-admin/admin.php?page=mb_test_email1,0962.7639.0032.41
Setup Wizard /wp-admin/admin.php?page=mb_email_configuration1,0942.7543.9135.67
Email Reports ( Pro ) /wp-admin/admin.php?page=mb_email_logs1,0882.7033.4032.29
Notifications ( Pro ) /wp-admin/admin.php?page=mb_notifications1,0912.7433.0730.74
System Information /wp-admin/admin.php?page=mb_system_information1,0912.7330.1832.67
Connectivity Test /wp-admin/admin.php?page=mb_connectivity_test1,0912.7136.3430.89
/wp-admin/admin.php?page=wp_mail_bank_wizard1,0922.7229.9727.64
General Settings /wp-admin/admin.php?page=mb_settings1,0912.7334.3630.27
Roles & Capabilities /wp-admin/admin.php?page=mb_roles_and_capabilities1,0942.7332.8130.91
Upgrade Now /wp-admin/admin.php?page=mb_upgrade_now1,0912.7332.6530.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_mail_bank_logs
    • wp_mail_bank_meta
    • wp_mail_bank
  • The uninstall procedure has failed, leaving 9 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • mb_admin_notice
    • mail_bank_update_database
    • widget_theysaidso_widget
    • mail-bank-version-number

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/wp-mail-bank/lib/dashboard-widget.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-mail-bank/includes/dashboard.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-mail-bank/includes/sidebar.php:15

User-side errors Passed 1 test

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

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
These attributes need your attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can take inspiration from this readme.txt

wp-mail-bank/wp-mail-bank.php Passed 13 tests

The principal PHP file in "Mail Bank - #1 Mail SMTP Plugin for WordPress" v. 4.0.14 is loaded by WordPress automatically on each request
136 characters long description:
Mail Bank is a WordPress smtp plugin that solves email deliverability issue. Configures Gmail Smtp Settings, OAuth, and any SMTP server.

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
Everything looks great! No dangerous files found in this plugin36,746 lines of code in 106 files:
LanguageFilesBlank linesComment linesLines of code
PHP831,0016,45220,219
JavaScript82,2027,3348,546
CSS13611107,908
SVG23073

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.34
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes58
▷ Abstract classes35.17%
▷ Concrete classes5594.83%
▷ Final classes00.00%
Methods454
▷ Static methods6915.20%
▷ Public methods40388.77%
▷ Protected methods449.69%
▷ Private methods71.54%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants66
▷ Global constants1522.73%
▷ Class constants5177.27%
▷ Public constants51100.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
33 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/ui-bg_glass_100_fdf5ce_1x400.png0.34KB0.16KB▼ 54.02%
assets/global/img/portlet-expand-icon-white.png0.23KB0.25KB0.00%
assets/admin/images/ui-bg_flat_10_000000_40x100.png0.20KB0.08KB▼ 57.56%
assets/global/plugins/datatables/media/images/sort_desc_disabled.png0.14KB0.25KB0.00%
assets/admin/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%