Benchmarks
Plugin footprint 83% from 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.08MB] [CPU: ▼15.27ms] Passed 4 tests
An overview of server-side resources used by Easily integrate SendGrid with your WordPress site
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.35 ▲7.61 |
Dashboard /wp-admin | 3.39 ▲0.05 | 53.71 ▼2.68 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 58.13 ▲6.26 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 104.63 ▼70.80 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 41.41 ▲6.13 |
Contacts for SendGrid /wp-admin/options-general.php?page=contacts-for-sendgrid | 3.29 | 44.93 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Easily integrate SendGrid with your WordPress site
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.17 ▼1.51 | 1.84 ▼0.02 | 46.10 ▲5.10 |
Dashboard /wp-admin | 2,207 ▲18 | 6.06 ▲0.17 | 115.87 ▲12.14 | 47.61 ▲2.69 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.05 | 42.55 ▲1.64 | 38.28 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.06 ▼0.25 | 677.44 ▼15.90 | 63.16 ▲10.61 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.09 | 114.04 ▲7.12 | 53.83 ▲4.46 |
Contacts for SendGrid /wp-admin/options-general.php?page=contacts-for-sendgrid | 828 | 2.02 | 31.77 | 40.07 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/contact-manager-for-sendgrid/views/header.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/contact-manager-for-sendgrid/views/admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function ContactManagerForSendGrid\\add_filter() in wp-content/plugins/contact-manager-for-sendgrid/includes/wpforms/SendGridWpformsCMFS.php:119
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/contact-manager-for-sendgrid/tests/SendGridTest.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function ContactManagerForSendGrid\\add_filter() in wp-content/plugins/contact-manager-for-sendgrid/includes/wpforms/SendGridWpformsCMFS.php:119
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (General settings), #2 (WPForms settings)
contact-manager-for-sendgrid/contact-manager-for-sendgrid.php Passed 13 tests
The principal PHP file in "Easily integrate SendGrid with your WordPress site" v. 1.2 is loaded by WordPress automatically on each request
54 characters long description:
A plugin for adding contacts to SendGrid contact lists
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
Everything looks great! No dangerous files found in this plugin424 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 70 | 51 | 424 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 3 | 11.11% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 1 | 3.70% |
▷ Private methods | 4 | 14.81% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin