Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼145.86ms] Passed 4 tests
Analyzing server-side resources used by WP SendGrid SMTP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 32.40 ▲10.12 |
Dashboard /wp-admin | 3.16 ▲0.11 | 38.92 ▼9.68 |
Posts /wp-admin/edit.php | 3.27 ▲0.17 | 38.74 ▼7.52 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 91.00 ▼568.10 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 36.15 ▲1.88 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP SendGrid SMTP: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,738 ▲142 | 15.84 ▲0.15 | 10.18 ▼2.12 | 43.73 ▲3.22 |
Dashboard /wp-admin | 3,005 ▲74 | 5.90 ▼0.11 | 149.07 ▲0.05 | 106.28 ▼0.16 |
Posts /wp-admin/edit.php | 2,776 ▲37 | 2.85 ▲0.12 | 72.69 ▼15.90 | 93.95 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,627 ▼56 | 18.47 ▼0.23 | 380.07 ▼22.99 | 113.45 ▲0.24 |
Media Library /wp-admin/upload.php | 1,845 ▲38 | 5.02 ▼0.02 | 153.64 ▼16.55 | 111.82 ▼10.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-sendgrid-smtp/wp-sendgrid-smtp.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 17 tag instead of maximum 10
wp-sendgrid-smtp/wp-sendgrid-smtp.php Passed 13 tests
This is the main PHP file of "WP SendGrid SMTP" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
106 characters long description:
WP SendGrid SMTP allows you to send all outgoing emails via SendGrid SMTP server from your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected545 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 98 | 90 | 545 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.75 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 84.60KB | 37.29KB | ▼ 55.93% |
screenshot-2.png | 60.30KB | 26.87KB | ▼ 55.45% |
m_bolt_img.png | 22.17KB | 8.42KB | ▼ 62.01% |