89% smtp-email-mod

Code Review | SMTP Email Mod by Webwerkstatt Stauß

WordPress plugin SMTP Email Mod by Webwerkstatt Stauß scored89%from 54 tests.

About plugin

  • Plugin page: smtp-email-mod
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2023
  • Latest release: Jan 7, 2023
  • Number of updates: 3
  • Update frequency: every 18.7 days
  • Top authors: benistauss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /437 total downloads

Benchmarks

Plugin footprint 83% 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.03MB] [CPU: ▼1.63ms] Passed 4 tests

A check of server-side resources used by SMTP Email Mod by Webwerkstatt Stauß
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.82 ▲0.01
Dashboard /wp-admin3.34 ▲0.0454.52 ▼3.94
Posts /wp-admin/edit.php3.40 ▲0.0447.06 ▼0.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.04 ▼2.22
Media Library /wp-admin/upload.php3.27 ▲0.0437.78 ▲0.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for SMTP Email Mod by Webwerkstatt Stauß
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.071.97 ▲0.0746.93 ▲2.62
Dashboard /wp-admin2,192 ▲155.69 ▲0.0993.11 ▼10.4544.97 ▼0.62
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0438.66 ▲4.4134.16 ▼4.06
Add New Post /wp-admin/post-new.php1,550 ▲523.14 ▼0.07618.81 ▼55.2252.93 ▲1.45
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.2399.92 ▼9.7145.03 ▼6.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: wp smtp, wp_mail, mailer, smtp, wp mail smtp...

smtp-email-mod/email-mod.php 85% from 13 tests

The main PHP script in "SMTP Email Mod by Webwerkstatt Stauß" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smtp-email-mod.php" instead of "email-mod.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin282 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP241104226
PO File1171756

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin