68% smtp2go

Code Review | SMTP2GO for WordPress - Email Made Easy

WordPress plugin SMTP2GO for WordPress - Email Made Easy scored68%from 54 tests.

About plugin

  • Plugin page: smtp2go
  • Plugin version: 1.7.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Feb 16, 2020
  • Latest release: Nov 26, 2023
  • Number of updates: 142
  • Update frequency: every 10.0 days
  • Top authors: smtp2go (100%)

Code review

54 tests

User reviews

56 reviews

Install metrics

10,000+ active /97,464 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.25MB] [CPU: ▼14.18ms] Passed 4 tests

Server-side resources used by SMTP2GO for WordPress - Email Made Easy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2337.66 ▼1.01
Dashboard /wp-admin3.61 ▲0.2651.96 ▼10.49
Posts /wp-admin/edit.php3.66 ▲0.3047.53 ▲0.49
Add New Post /wp-admin/post-new.php6.15 ▲0.2690.20 ▼45.69
Media Library /wp-admin/upload.php3.47 ▲0.2434.68 ▲1.89

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 422 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SMTP2GO for WordPress - Email Made Easy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6314.26 ▲0.021.68 ▲0.0837.75 ▼10.25
Dashboard /wp-admin2,215 ▲345.52 ▼0.2093.48 ▼21.6141.30 ▼1.25
Posts /wp-admin/edit.php2,117 ▲202.02 ▲0.0635.50 ▼2.5332.78 ▼4.32
Add New Post /wp-admin/post-new.php1,543 ▼123.16 ▼1.99677.21 ▲45.2953.93 ▼18.31
Media Library /wp-admin/upload.php1,414 ▲144.26 ▲0.1397.90 ▲0.1242.65 ▲1.84

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/smtp2go/admin/partials/smtp2go-wordpress-plugin-stats-display.php
    • > /wp-content/plugins/smtp2go/admin/partials/smtp2go-wordpress-plugin-validation-display.php
  • 138× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/smtp2go/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'SMTP2GO\\Senders\\SendsHttpRequests' not found in wp-content/plugins/smtp2go/smtp2go/senders/MockSender.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/smtp2go/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'SMTP2GOWPPlugin\\GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/smtp2go/build/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/smtp2go/vendor/guzzlehttp/psr7/src/InflateStream.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'SMTP2GOWPPlugin\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/smtp2go/build/vendor/guzzlehttp/promises/src/Promise.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SMTP2GOWPPlugin\\SMTP2GO\\Collections\\Collection' not found in wp-content/plugins/smtp2go/build/vendor/smtp2go-oss/smtp2go-php/src/SMTP2GO/Collections/Mail/CustomHeaderCollection.php:7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/smtp2go/smtp2go/SMTP2GOMailer.php on line 15
    • > PHP Fatal error
      Uncaught Error: Interface 'SMTP2GOWPPlugin\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/smtp2go/build/vendor/guzzlehttp/promises/src/FulfilledPromise.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'SMTP2GOWPPlugin\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/smtp2go/build/vendor/guzzlehttp/promises/src/RejectedPromise.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
8 plugin tags: inbox, email, smtp2go, marketing, wp_mail...

smtp2go/smtp2go-wordpress-plugin.php 85% from 13 tests

This is the main PHP file of "SMTP2GO for WordPress - Email Made Easy" version 1.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("smtp2go.php" instead of "smtp2go-wordpress-plugin.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please fix the following items
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/smtp2go/vendor/smtp2go-oss/smtp2go-php/ca-bundle.crt
      • wp-content/plugins/smtp2go/build/vendor/smtp2go-oss/smtp2go-php/ca-bundle.crt
34,945 lines of code in 377 files:
LanguageFilesBlank linesComment linesLines of code
PHP3093,36317,00524,803
Markdown322,68207,617
JSON29002,159
CSS1394226
JavaScript13181
XML211042
make1409
YAML1007
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.88
▷ Minimum class complexity1.00
▷ Maximum class complexity99.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces40
Interfaces57
Traits6
Classes210
▷ Abstract classes00.00%
▷ Concrete classes210100.00%
▷ Final classes6932.86%
Methods1,960
▷ Static methods29715.15%
▷ Public methods1,68686.02%
▷ Protected methods211.07%
▷ Private methods25312.91%
Functions267
▷ Named functions8130.34%
▷ Anonymous functions18669.66%
Constants143
▷ Global constants64.20%
▷ Class constants13795.80%
▷ Public constants11181.02%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
SMTP2GO_logo.png9.74KB5.83KB▼ 40.17%