78% gosmtp

Code Review | GoSMTP - SMTP for WordPress

WordPress plugin GoSMTP - SMTP for WordPress scored 78% from 54 tests.

About plugin

  • Plugin page: gosmtp
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2023
  • Latest release: Sep 8, 2023
  • Number of updates: 10
  • Update frequency: every 20.4 days
  • Top authors: softaculous (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90,000+ active / 273,194 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.71ms] Passed 4 tests

An overview of server-side resources used by GoSMTP - SMTP for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.19 ▼3.87
Dashboard /wp-admin3.37 ▲0.0747.17 ▼7.18
Posts /wp-admin/edit.php3.48 ▲0.1348.88 ▼0.62
Add New Post /wp-admin/post-new.php5.95 ▲0.0785.49 ▼15.16
Media Library /wp-admin/upload.php3.29 ▲0.0738.24 ▲3.86
Settings /wp-admin/admin.php?page=gosmtp3.6637.26

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
gosmtp_version
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by GoSMTP - SMTP for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲12113.55 ▼1.031.97 ▲0.4339.79 ▼3.52
Dashboard /wp-admin2,237 ▲495.90 ▲0.99104.98 ▲0.0439.79 ▼3.41
Posts /wp-admin/edit.php2,120 ▲341.99 ▼0.0337.08 ▲3.8235.15 ▲1.40
Add New Post /wp-admin/post-new.php1,559 ▲4523.21 ▲5.56668.34 ▼34.8053.12 ▼1.76
Media Library /wp-admin/upload.php1,419 ▲344.15 ▼0.0992.80 ▼8.3141.25 ▼3.86
Support /wp-admin/admin.php?page=gosmtp#support2,0132.0839.8775.25
Settings /wp-admin/admin.php?page=gosmtp2,0031.9833.5159.26
Test Mail /wp-admin/admin.php?page=gosmtp#test-mail2,0132.0537.8439.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • gosmtp_version
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gosmtp/main/ajax.php
    • > /wp-content/plugins/gosmtp/main/settings.php
    • > /wp-content/plugins/gosmtp/main/functions.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'GOSMTP\\Mailer\\Loader' not found in wp-content/plugins/gosmtp/main/mailer/sendinblue.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GOSMTP\\Mailer\\Loader' not found in wp-content/plugins/gosmtp/main/mailer/smtpcom.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GOSMTP\\Mailer\\Loader' not found in wp-content/plugins/gosmtp/main/mailer/sendgrid.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GOSMTP\\Mailer\\Loader' not found in wp-content/plugins/gosmtp/main/mailer/mail.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GOSMTP\\Mailer\\Loader' not found in wp-content/plugins/gosmtp/main/mailer/postmark.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GOSMTP\\Mailer\\Loader' not found in wp-content/plugins/gosmtp/main/mailer/sparkpost.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GOSMTP\\Mailer\\Loader' not found in wp-content/plugins/gosmtp/main/mailer/smtp.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GOSMTP\\Mailer\\Loader' not found in wp-content/plugins/gosmtp/main/mailer/mailgun.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GOSMTP\\Mailer\\Loader' not found in wp-content/plugins/gosmtp/main/mailer/sendlayer.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
You can look at the official readme.txt

gosmtp/gosmtp.php 92% from 13 tests

"GoSMTP - SMTP for WordPress" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,575 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP158491892,526
CSS1263171,432
JavaScript118867604
SVG130013

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity24.73
▷ Minimum class complexity4.00
▷ Maximum class complexity78.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods71
▷ Static methods00.00%
▷ Public methods5780.28%
▷ Protected methods1318.31%
▷ Private methods11.41%
Functions32
▷ Named functions2990.62%
▷ Anonymous functions39.38%
Constants19
▷ Global constants1578.95%
▷ Class constants421.05%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/loginizer_product.png6.59KB4.31KB▼ 34.61%
images/pagelayer_product.png3.28KB3.06KB▼ 6.73%
images/gosmtp-text.png13.39KB6.43KB▼ 51.94%
images/twitter.png1.29KB1.46KB0.00%
images/facebook.png1.27KB1.56KB0.00%