Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼1.73ms] Passed 4 tests
An overview of server-side resources used by SMTP for SendGrid - YaySMTP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 46.20 ▲8.18 |
Dashboard /wp-admin | 3.59 ▲0.28 | 49.54 ▼4.83 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 55.38 ▲0.43 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 89.24 ▼3.39 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 39.19 ▲0.89 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_yay_smtp_sendgrid_email_logs |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
yay_smtp_sendgrid_version |
Browser metrics Passed 4 tests
A check of browser resources used by SMTP for SendGrid - YaySMTP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.47 ▲0.18 | 1.84 ▼0.33 | 42.63 ▼10.37 |
Dashboard /wp-admin | 2,224 ▲36 | 5.86 ▲0.84 | 99.57 ▼6.67 | 41.17 ▼0.77 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.03 ▲0.03 | 41.12 ▲3.24 | 36.04 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 17.58 ▼5.74 | 642.71 ▼71.79 | 55.03 ▲4.95 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.23 ▼0.02 | 96.78 ▼12.60 | 44.99 ▼5.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_yay_smtp_sendgrid_email_logs
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- yay_smtp_sendgrid_version
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: sendgrid smtp, sendgrid, wp mail, wp smtp, wordpress smtp...
smtp-sendgrid/yay-smtp.php 85% from 13 tests
Analyzing the main PHP file in "SMTP for SendGrid - YaySMTP" version 1.3
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("smtp-sendgrid.php" instead of "yay-smtp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected4,673 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 272 | 33 | 1,902 |
JavaScript | 1 | 103 | 80 | 1,525 |
CSS | 1 | 94 | 31 | 1,246 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 39 | 49.37% |
▷ Public methods | 66 | 83.54% |
▷ Protected methods | 1 | 1.27% |
▷ Private methods | 12 | 15.19% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected