84% email-by-smtp

Code Review | eMail by SMTP

WordPress plugin eMail by SMTP scored84%from 54 tests.

About plugin

  • Plugin page: email-by-smtp
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: May 20, 2021
  • Latest release: May 20, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ownwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /353 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.49ms] Passed 4 tests

Server-side resources used by eMail by SMTP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.96 ▲0.94
Dashboard /wp-admin3.35 ▲0.0548.82 ▼3.37
Posts /wp-admin/edit.php3.40 ▲0.0451.23 ▼1.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.81 ▼25.75
Media Library /wp-admin/upload.php3.27 ▲0.0437.07 ▼3.75
eMail by SMTP /wp-admin/options-general.php?page=email-by-smtp/emailbysmtp.php3.2434.83

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

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

Browser metrics Passed 4 tests

A check of browser resources used by eMail by SMTP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▲0.191.66 ▲0.0143.27 ▲2.26
Dashboard /wp-admin2,193 ▲165.54 ▼0.1084.41 ▼9.5242.05 ▼4.09
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0136.14 ▼5.9937.24 ▲2.81
Add New Post /wp-admin/post-new.php1,531 ▲222.90 ▼0.16675.04 ▲13.7252.87 ▼3.29
Media Library /wp-admin/upload.php1,401 ▲14.20 ▼0.01100.15 ▼20.2649.76 ▼2.33
eMail by SMTP /wp-admin/options-general.php?page=email-by-smtp/emailbysmtp.php9522.0123.2128.81

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/email-by-smtp/emailbysmtp.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: email by smtp, email, email sending, email configuration, smtp

email-by-smtp/emailbysmtp.php 92% from 13 tests

This is the main PHP file of "eMail by SMTP" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("email-by-smtp.php" instead of "emailbysmtp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected243 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14425243

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin