Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.02MB] [CPU: ▼2.86ms] Passed 4 tests
An overview of server-side resources used by Connect SendGrid for Emails
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.50 ▲1.03 | 47.08 ▲1.84 |
Dashboard /wp-admin | 4.34 ▲0.99 | 53.99 ▼11.01 |
Posts /wp-admin/edit.php | 4.39 ▲1.03 | 58.58 ▲10.11 |
Add New Post /wp-admin/post-new.php | 6.92 ▲1.03 | 91.25 ▼10.92 |
Media Library /wp-admin/upload.php | 4.26 ▲1.03 | 43.69 ▲8.65 |
SendGrid /wp-admin/options-general.php?page=sendgrid-settings | 4.34 | 43.23 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Connect SendGrid for Emails
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲49 | 14.36 ▲0.00 | 1.55 ▼0.48 | 42.95 ▼0.52 |
Dashboard /wp-admin | 2,229 ▲49 | 5.81 ▲0.14 | 93.46 ▲2.72 | 39.34 ▼2.10 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.04 | 39.23 ▲2.60 | 35.28 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.05 ▼0.06 | 624.22 ▼8.38 | 51.79 ▼4.62 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.16 ▼0.12 | 98.43 ▼3.00 | 42.06 ▼2.02 |
SendGrid /wp-admin/options-general.php?page=sendgrid-settings | 1,584 | 2.19 | 44.78 | 42.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/connect-sendgrid-for-emails/view/sendgrid_settings_nav.php
- > /wp-content/plugins/connect-sendgrid-for-emails/view/sendgrid_contextual_help.php
- 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function SendGridTrueBV\\plugin_dir_path() in wp-content/plugins/connect-sendgrid-for-emails/vendor/punycode/Punycode.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/connect-sendgrid-for-emails/lib/class-sendgrid-statistics.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/connect-sendgrid-for-emails/lib/class-sendgrid-nlvx.php:3
- > PHP Notice
Undefined variable: active_tab in wp-content/plugins/connect-sendgrid-for-emails/view/sendgrid_settings_nlvx.php on line 1
- > PHP Notice
Undefined variable: active_tab in wp-content/plugins/connect-sendgrid-for-emails/view/sendgrid_settings_test_email.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Sendgrid_Tools' not found in wp-content/plugins/connect-sendgrid-for-emails/view/sendgrid_stats.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/connect-sendgrid-for-emails/vendor/autoload.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/connect-sendgrid-for-emails/lib/sendgrid/sendgrid-wp-mail.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/connect-sendgrid-for-emails/view/partials/sendgrid_stats_widget.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/connect-sendgrid-for-emails/view/partials/sendgrid_stats_compliance.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
connect-sendgrid-for-emails/connect-sendgrid-for-emails.php Passed 13 tests
The main file in "Connect SendGrid for Emails" v. 1.11.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
Connect SendGrid to your WordPress site to send emails using SendGrid's cloud-based email platform.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected12,489 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 1,389 | 2,257 | 6,976 |
JavaScript | 8 | 901 | 706 | 4,536 |
CSS | 3 | 95 | 45 | 977 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 180)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 180.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 48 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 485 | |
▷ Static methods | 147 | 30.31% |
▷ Public methods | 427 | 88.04% |
▷ Protected methods | 9 | 1.86% |
▷ Private methods | 49 | 10.10% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 129 | |
▷ Global constants | 87 | 67.44% |
▷ Class constants | 42 | 32.56% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
view/css/datepicker/smoothness/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
view/css/datepicker/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
view/css/datepicker/smoothness/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
view/css/datepicker/smoothness/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
view/css/datepicker/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |