90% multi-smtp

Code Review | Multi SMTP

WordPress plugin Multi SMTP scored90%from 54 tests.

About plugin

  • Plugin page: multi-smtp
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Nov 27, 2016
  • Latest release: Dec 9, 2016
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: subins2000 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,297 total downloads

Benchmarks

Plugin footprint 83% 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.06MB] [CPU: ▼10.66ms] Passed 4 tests

This is a short check of server-side resources used by Multi SMTP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.87 ▼7.11
Dashboard /wp-admin3.37 ▲0.0645.60 ▼3.44
Posts /wp-admin/edit.php3.42 ▲0.0645.34 ▼5.93
Add New Post /wp-admin/post-new.php5.95 ▲0.0679.91 ▼26.15
Media Library /wp-admin/upload.php3.29 ▲0.0636.63 ▲0.72
Multi SMTP /wp-admin/options-general.php?page=multiSMTP-admin3.2632.59

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Multi SMTP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.68 ▼0.761.74 ▼0.1141.10 ▼2.61
Dashboard /wp-admin2,213 ▲254.87 ▼0.95103.90 ▼1.4539.31 ▼2.09
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0139.29 ▼1.2432.27 ▼4.52
Add New Post /wp-admin/post-new.php1,537 ▲2323.27 ▲5.73638.48 ▲11.7260.83 ▲13.43
Media Library /wp-admin/upload.php1,395 ▲74.20 ▼0.0698.75 ▼11.2642.96 ▼1.43
Multi SMTP /wp-admin/options-general.php?page=multiSMTP-admin8872.0322.0329.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === multi-smtp === )
The official readme.txt might help

multi-smtp/multi-smtp.php Passed 13 tests

The principal PHP file in "Multi SMTP" v. 0.1 is loaded by WordPress automatically on each request
120 characters long description:
This plugin will configure wp_mail to use SMTP for sending your email. You can add multiple SMTP servers to cycle emails

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
Everything looks great! No dangerous files found in this plugin244 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14646235
Markdown1409

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin