94% mailster-multi-smtp

Code Review | Mailster Multi SMTP

WordPress plugin Mailster Multi SMTP scored 94% from 54 tests.

About plugin

  • Plugin page: mailster-multi-smtp
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9
  • WordPress version: 5.8.1
  • First release: Jan 13, 2017
  • Latest release: Jan 28, 2022
  • Number of updates: 26
  • Update frequency: every 70.8 days
  • Top authors: everpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 8,947 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼180.21ms] Passed 4 tests

An overview of server-side resources used by Mailster Multi SMTP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0126.48 ▲3.22
Dashboard /wp-admin3.06 ▲0.0031.57 ▼5.66
Posts /wp-admin/edit.php3.12 ▲0.0130.46 ▼1.12
Add New Post /wp-admin/post-new.php5.43 ▼0.0169.95 ▼714.41
Media Library /wp-admin/upload.php3.01 ▲0.0122.22 ▲0.34

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Mailster Multi SMTP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,691 ▲8915.98 ▲0.406.30 ▼0.5480.31 ▲0.80
Dashboard /wp-admin2,955 ▲596.01 ▼0.14114.82 ▼16.08165.69 ▼6.09
Posts /wp-admin/edit.php2,767 ▲273.24 ▲0.0163.49 ▲1.16139.09 ▼2.43
Add New Post /wp-admin/post-new.php3,750 ▲5218.62 ▲0.16427.49 ▼38.09163.17 ▲2.18
Media Library /wp-admin/upload.php1,777 ▲255.52 ▼0.01153.99 ▼1.34186.87 ▼13.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailster-multi-smtp/classes/multismtp.class.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: newsletter, mailster, smtp, email, deliverymethod...

mailster-multi-smtp/mailster-multi-smtp.php 92% from 13 tests

The main file in "Mailster Multi SMTP" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected426 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2144160366
CSS21034
JavaScript211026

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin