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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 37.66 ▼1.01 |
Dashboard /wp-admin | 3.61 ▲0.26 | 51.96 ▼10.49 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 47.53 ▲0.49 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 90.20 ▼45.69 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲63 | 14.26 ▲0.02 | 1.68 ▲0.08 | 37.75 ▼10.25 |
Dashboard /wp-admin | 2,215 ▲34 | 5.52 ▼0.20 | 93.48 ▼21.61 | 41.30 ▼1.25 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 2.02 ▲0.06 | 35.50 ▼2.53 | 32.78 ▼4.32 |
Add New Post /wp-admin/post-new.php | 1,543 ▼1 | 23.16 ▼1.99 | 677.21 ▲45.29 | 53.93 ▼18.31 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.26 ▲0.13 | 97.90 ▲0.12 | 42.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
- > PHP Fatal error
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
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 309 | 3,363 | 17,005 | 24,803 |
Markdown | 32 | 2,682 | 0 | 7,617 |
JSON | 29 | 0 | 0 | 2,159 |
CSS | 1 | 39 | 4 | 226 |
JavaScript | 1 | 3 | 1 | 81 |
XML | 2 | 1 | 10 | 42 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
SVG | 1 | 0 | 0 | 1 |
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 code | 0.41 |
Average class complexity | 11.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 40 | |
Interfaces | 57 | |
Traits | 6 | |
Classes | 210 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 210 | 100.00% |
▷ Final classes | 69 | 32.86% |
Methods | 1,960 | |
▷ Static methods | 297 | 15.15% |
▷ Public methods | 1,686 | 86.02% |
▷ Protected methods | 21 | 1.07% |
▷ Private methods | 253 | 12.91% |
Functions | 267 | |
▷ Named functions | 81 | 30.34% |
▷ Anonymous functions | 186 | 69.66% |
Constants | 143 | |
▷ Global constants | 6 | 4.20% |
▷ Class constants | 137 | 95.80% |
▷ Public constants | 111 | 81.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
SMTP2GO_logo.png | 9.74KB | 5.83KB | ▼ 40.17% |