Benchmarks
Plugin footprint 65% 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.03MB] [CPU: ▼4.02ms] Passed 4 tests
A check of server-side resources used by WP SMTP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.84 ▲1.09 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.19 ▼6.52 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.77 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.26 ▼9.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.42 ▲4.88 |
Mail Logs /wp-admin/admin.php?page=wpsmtp_logs | 3.23 | 30.27 |
WP SMTP /wp-admin/admin.php?page=wp-smtp/wp-smtp.php | 3.31 | 30.38 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wpsmtp_logs |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
wp_smtp_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP SMTP: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.35 ▲0.00 | 1.75 ▲0.16 | 39.03 ▲0.17 |
Dashboard /wp-admin | 2,225 ▲44 | 5.61 ▼0.12 | 82.19 ▼18.63 | 38.11 ▼3.31 |
Posts /wp-admin/edit.php | 2,127 ▲30 | 2.01 ▲0.06 | 34.54 ▼1.57 | 33.83 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 18.30 ▼4.49 | 600.46 ▲6.36 | 77.57 ▲30.57 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.21 ▼0.02 | 96.30 ▼2.96 | 45.54 ▲0.36 |
Mail Logs /wp-admin/admin.php?page=wpsmtp_logs | 1,156 | 3.32 | 57.82 | 33.06 |
WP SMTP /wp-admin/admin.php?page=wp-smtp/wp-smtp.php | 1,059 | 2.02 | 24.13 | 33.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_wpsmtp_logs
- Zombie WordPress options detected upon uninstall: 7 options
- wp_smtp_options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wpsmtp_logs
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=wpsmtp_logs
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wp-smtp/wp-smtp.php Passed 13 tests
This is the main PHP file of "WP SMTP" version 1.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
105 characters long description:
WP SMTP can help us to send emails via SMTP instead of the PHP mail() function and email logger built-in.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,563 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 251 | 215 | 1,114 |
JavaScript | 5 | 25 | 37 | 363 |
PO File | 1 | 23 | 22 | 61 |
CSS | 2 | 4 | 0 | 18 |
JSON | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 7 | 11.67% |
▷ Public methods | 58 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.33% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/gmail.png | 0.68KB | 0.83KB | 0.00% |
assets/images/details_open.png | 0.69KB | 0.80KB | 0.00% |
img/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
img/163.png | 0.19KB | 0.13KB | ▼ 32.82% |
img/sort_both.png | 0.20KB | 0.29KB | 0.00% |