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
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.31ms] Passed 4 tests
Analyzing server-side resources used by SendGrid for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.74 ▲0.95 |
Dashboard /wp-admin | 3.41 ▲0.10 | 47.81 ▲0.59 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.75 ▲7.05 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.57 ▼13.23 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.83 ▼1.55 |
Logs /wp-admin/admin.php?page=wp-mailplus-logs | 3.71 | 37.18 |
Settings /wp-admin/admin.php?page=wp-mailplus-settings | 3.31 | 28.82 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 88 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_mailplus_logs |
New WordPress options |
---|
_wp_mailplus_from_info |
theysaidso_admin_options |
db_upgraded |
_wp_mailplus_enabled_service |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
_wp_mailplus_service_info |
Browser metrics Passed 4 tests
Checking browser requirements for SendGrid for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.21 ▼1.09 | 1.70 ▼0.03 | 44.07 ▲4.30 |
Dashboard /wp-admin | 2,229 ▲40 | 5.79 ▲0.89 | 96.47 ▼14.99 | 40.29 ▲0.43 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.01 ▲0.01 | 38.70 ▲1.53 | 35.91 ▲3.30 |
Add New Post /wp-admin/post-new.php | 1,539 ▲2 | 23.22 ▲0.09 | 659.12 ▼15.86 | 66.34 ▼0.23 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.22 ▲0.02 | 97.16 ▼17.56 | 44.57 ▼1.67 |
Logs /wp-admin/admin.php?page=wp-mailplus-logs | 1,056 | 1.93 | 26.55 | 43.43 |
Settings /wp-admin/admin.php?page=wp-mailplus-settings | 1,043 | 1.89 | 26.68 | 23.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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)
Even though everything seems fine, this is not 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/sendgrid/scripts/generate_upload_policy.php
- 71× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/sendgrid/examples/apikeys/apikeys.php on line 3
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/sendgrid/examples/stats/stats.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/sendgrid/test/unit/helpers/mail/MailTest.php:4
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/php-http-client/test/unit/../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/php-http-client/test/unit/bootstrap.php on line 3
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/sendgrid/examples/helpers/mail<PATH_TO>/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/sendgrid/examples/helpers/mail/example.php on line 5
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/sendgrid/examples/trackingsettings/trackingsettings.php on line 3
- > PHP Warning
require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/sendgrid/examples/asm/asm.php on line 3
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/sendgrid/examples/alerts/alerts.php on line 3
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/sendgrid/examples/scopes/scopes.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'SendGrid\\Client' not found in wp-content/plugins/wp-sendgrid-mailer/vendor/sendgrid/php-http-client/examples/example.php:10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (SendGrid Plugin Settings), #2 (WP SendGrid Plugin Log)
wp-sendgrid-mailer/wp-sendgrid-mailer.php 92% from 13 tests
"SendGrid for WordPress" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin22,896 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,751 | 35 | 10,207 |
PHP | 53 | 1,366 | 1,807 | 7,260 |
Markdown | 10 | 1,815 | 0 | 4,323 |
JavaScript | 3 | 238 | 208 | 800 |
JSON | 4 | 1 | 0 | 168 |
YAML | 2 | 0 | 0 | 66 |
Bourne Shell | 2 | 13 | 3 | 63 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 8.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 514 | |
▷ Static methods | 12 | 2.33% |
▷ Public methods | 488 | 94.94% |
▷ Protected methods | 19 | 3.70% |
▷ Private methods | 7 | 1.36% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 15.55KB | 7.08KB | ▼ 54.45% |
screenshot-1.png | 16.23KB | 6.69KB | ▼ 58.78% |