68% mail-smtp

Code Review | Mail SMTP

WordPress plugin Mail SMTP scored68%from 54 tests.

About plugin

  • Plugin page: mail-smtp
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 22, 2022
  • Latest release: Jul 21, 2023
  • Number of updates: 10
  • Update frequency: every 48.6 days
  • Top authors: siriusproio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /631 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼36.88ms] Passed 4 tests

This is a short check of server-side resources used by Mail SMTP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.15 ▼4.22
Dashboard /wp-admin3.02 ▼0.3222.27 ▼42.74
Posts /wp-admin/edit.php3.02 ▼0.3325.48 ▼22.46
Add New Post /wp-admin/post-new.php3.02 ▼2.8626.27 ▼68.45
Media Library /wp-admin/upload.php3.02 ▼0.2025.56 ▼13.87
Mail SMTP /wp-admin/options-general.php?page=smtp_slug3.0323.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Mail SMTP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.74 ▼0.042.09 ▲0.3944.58 ▲1.72
Dashboard /wp-admin2,222 ▲165.85 ▲0.9798.12 ▼13.4737.34 ▼1.85
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0437.03 ▼1.5032.15 ▼3.63
Add New Post /wp-admin/post-new.php1,551 ▼023.23 ▲0.07636.75 ▼52.3347.26 ▼17.30
Media Library /wp-admin/upload.php1,404 ▲44.14 ▼0.07122.93 ▲12.5753.77 ▲10.85
Mail SMTP /wp-admin/options-general.php?page=smtp_slug8872.0625.9530.94

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
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=smtp_slug
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mail-smtp/mail-smtp.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: php, server, mailer, delivery, smtp...

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

The principal PHP file in "Mail SMTP" v. 1.0 is loaded by WordPress automatically on each request
78 characters long description:
Simply configure your SMTP server and send email directly from WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected251 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16210251

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin