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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.19 ▼3.87 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.17 ▼7.18 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.88 ▼0.62 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.49 ▼15.16 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 38.24 ▲3.86 |
Settings /wp-admin/admin.php?page=gosmtp | 3.66 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲121 | 13.55 ▼1.03 | 1.97 ▲0.43 | 39.79 ▼3.52 |
Dashboard /wp-admin | 2,237 ▲49 | 5.90 ▲0.99 | 104.98 ▲0.04 | 39.79 ▼3.41 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 1.99 ▼0.03 | 37.08 ▲3.82 | 35.15 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 23.21 ▲5.56 | 668.34 ▼34.80 | 53.12 ▼1.76 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.15 ▼0.09 | 92.80 ▼8.31 | 41.25 ▼3.86 |
Support /wp-admin/admin.php?page=gosmtp#support | 2,013 | 2.08 | 39.87 | 75.25 |
Settings /wp-admin/admin.php?page=gosmtp | 2,003 | 1.98 | 33.51 | 59.26 |
Test Mail /wp-admin/admin.php?page=gosmtp#test-mail | 2,013 | 2.05 | 37.84 | 39.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 849 | 189 | 2,526 |
CSS | 1 | 263 | 17 | 1,432 |
JavaScript | 1 | 188 | 67 | 604 |
SVG | 13 | 0 | 0 | 13 |
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 code | 0.42 |
Average class complexity | 24.73 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 80.28% |
▷ Protected methods | 13 | 18.31% |
▷ Private methods | 1 | 1.41% |
Functions | 32 | |
▷ Named functions | 29 | 90.62% |
▷ Anonymous functions | 3 | 9.38% |
Constants | 19 | |
▷ Global constants | 15 | 78.95% |
▷ Class constants | 4 | 21.05% |
▷ Public constants | 4 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/loginizer_product.png | 6.59KB | 4.31KB | ▼ 34.61% |
images/pagelayer_product.png | 3.28KB | 3.06KB | ▼ 6.73% |
images/gosmtp-text.png | 13.39KB | 6.43KB | ▼ 51.94% |
images/twitter.png | 1.29KB | 1.46KB | 0.00% |
images/facebook.png | 1.27KB | 1.56KB | 0.00% |