74% smtp-mail

Code Review | SMTP Mail

WordPress plugin SMTP Mail scored74%from 54 tests.

About plugin

  • Plugin page: smtp-mail
  • Plugin version: 1.3.15
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 17, 2017
  • Latest release: Nov 28, 2023
  • Number of updates: 1,361
  • Update frequency: every 1.7 days
  • Top authors: photoboxone (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /59,377 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼5.15ms] Passed 4 tests

An overview of server-side resources used by SMTP Mail
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1240.08 ▼0.61
Dashboard /wp-admin3.56 ▲0.2146.71 ▼14.79
Posts /wp-admin/edit.php3.61 ▲0.2551.42 ▲3.82
Add New Post /wp-admin/post-new.php6.08 ▲0.1986.40 ▼8.66
Media Library /wp-admin/upload.php3.42 ▲0.1936.64 ▲3.47
SMTP Mail /wp-admin/options-general.php?page=smtpmail-setting3.5237.47

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: 1 new table, 8 new options
New tables
wp_smtpmail_data
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
smtpmail_version
widget_theysaidso_widget
smtpmail_install
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SMTP Mail
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7814.67 ▼0.051.96 ▲0.3436.38 ▼8.84
Dashboard /wp-admin2,208 ▲315.59 ▼0.0494.54 ▼0.7641.81 ▲0.29
Posts /wp-admin/edit.php2,110 ▲131.99 ▲0.0341.01 ▲3.9235.06 ▲0.52
Add New Post /wp-admin/post-new.php1,535 ▲921.14 ▼1.96568.48 ▼110.5464.60 ▲12.24
Media Library /wp-admin/upload.php1,410 ▲104.21 ▼0.0295.28 ▼1.3844.08 ▲1.45
SMTP Mail /wp-admin/options-general.php?page=smtpmail-setting1,7012.2025.2763.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_smtpmail_data
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • can_compress_scripts
    • smtpmail_install
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • smtpmail_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/smtp-mail/includes/contact-form-7-extensions.php:92

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
5 plugin tags: smtp setting, phpmailer, send test, mail, smtp

smtp-mail/index.php 85% from 13 tests

The entry point to "SMTP Mail" version 1.3.15 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.5" instead of "6.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("smtp-mail.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,116 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP94085721,698
CSS274211
HTML200125
JavaScript4221182

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity29.00
▷ Minimum class complexity23.00
▷ Maximum class complexity35.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions61
▷ Named functions61100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin