84% wp-smtp-mailer

Code Review | WP SMTP Mailer

WordPress plugin WP SMTP Mailer scored84%from 54 tests.

About plugin

  • Plugin page: wp-smtp-mailer
  • Plugin version: 1.5.8
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2018
  • Latest release: Sep 16, 2021
  • Number of updates: 24
  • Update frequency: every 45.4 days
  • Top authors: boopathi0001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.27ms] Passed 4 tests

An overview of server-side resources used by WP SMTP Mailer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.62 ▼1.79
Dashboard /wp-admin3.33 ▼0.0144.31 ▼15.13
Posts /wp-admin/edit.php3.38 ▲0.0347.55 ▲1.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.04 ▼1.51
Media Library /wp-admin/upload.php3.25 ▲0.0236.22 ▲2.13
SMTP Settings /wp-admin/options-general.php?page=smtp-settings3.2233.35

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP SMTP Mailer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.27 ▼0.081.60 ▼0.0541.15 ▲0.23
Dashboard /wp-admin2,193 ▲135.56 ▼0.1280.26 ▼9.7537.75 ▼0.61
Posts /wp-admin/edit.php2,104 ▲251.97 ▼0.0639.07 ▲3.7634.16 ▼0.84
Add New Post /wp-admin/post-new.php1,534 ▼123.19 ▲4.99583.33 ▼75.5558.89 ▼9.28
Media Library /wp-admin/upload.php1,407 ▲104.23 ▲0.0795.49 ▼9.9444.08 ▼5.58
SMTP Settings /wp-admin/options-general.php?page=smtp-settings9052.0323.5627.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smtp-mailer/wp-smtp-mailer.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: smtp email settings, wp smtp, configure smtp, smtp email setup, gmail smtp...

wp-smtp-mailer/wp-smtp-mailer.php Passed 13 tests

"WP SMTP Mailer" version 1.5.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
WP SMTP Mailer is a plugin to configure SMTP in a simple way.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin107 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1713107

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected