Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼0.80ms] Passed 4 tests
A check of server-side resources used by Hamail - Send Email via SendGrid
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 43.89 ▲2.13 |
Dashboard /wp-admin | 3.45 ▲0.14 | 55.02 ▼0.54 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 54.59 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 91.38 ▼4.14 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 42.85 ▲4.35 |
Hamail Setting /wp-admin/options-general.php?page=hamail-setting | 3.27 | 37.57 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 289 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Hamail - Send Email via SendGrid
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 13.18 ▼1.57 | 2.00 ▲0.19 | 45.20 ▲0.44 |
Dashboard /wp-admin | 2,231 ▲37 | 5.86 ▲0.95 | 113.42 ▼2.44 | 43.74 ▼2.69 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 2.01 ▼0.00 | 38.59 ▼3.93 | 35.62 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.22 ▲5.55 | 619.28 ▼36.17 | 54.71 ▲4.47 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.29 ▲0.08 | 109.03 ▼0.43 | 48.81 ▲1.86 |
Hamail Setting /wp-admin/options-general.php?page=hamail-setting | 869 | 2.07 | 27.54 | 33.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hamail/vendor/sendgrid/php-http-client/examples/example.php
- 134× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > Composer autoloader not found. Execute 'composer install' in the project folder first.
- > PHP Fatal error
Uncaught Error: Class 'SendGrid' not found in wp-content/plugins/hamail/vendor/sendgrid/sendgrid/examples/geo/geo.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hamail/vendor/sendgrid/php-http-client/test/unit/ResponseTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'SendGrid' not found in wp-content/plugins/hamail/vendor/sendgrid/sendgrid/examples/apikeys/apikeys.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hamail/vendor/sendgrid/php-http-client/test/unit/FilesExistTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'SendGrid' not found in wp-content/plugins/hamail/vendor/sendgrid/sendgrid/examples/clients/clients.php:8
- > Composer autoloader not found. Execute 'composer install' in the project folder first.
- > Composer autoloader not found. Execute 'composer install' in the project folder first.
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hamail/hooks/assets.php:9
- > PHP Fatal error
Uncaught Error: Class 'SendGrid' not found in wp-content/plugins/hamail/vendor/sendgrid/sendgrid/examples/templates/templates.php:8
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=hamail-setting
- > Javascript (severe) in unknown
/wp-content/plugins/hamail/assets/js/hamail-setting.js?ver=0ca32811ccf914da1534d78932ff6a29 1:113 Uncaught TypeError: Cannot read properties of undefined (reading 'split')
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: marketing, email, sendgrid
hamail/hamail.php Passed 13 tests
The main PHP script in "Hamail - Send Email via SendGrid" version 2.3.5 is automatically included on every request by WordPress
51 characters long description:
A WordPress plugin for sending e-mail via SendGrid.
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin16,800 lines of code in 256 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 194 | 2,781 | 7,864 | 13,775 |
Markdown | 16 | 349 | 0 | 943 |
JSON | 8 | 0 | 0 | 645 |
JavaScript | 15 | 80 | 115 | 596 |
Sass | 6 | 60 | 0 | 343 |
PO File | 1 | 94 | 96 | 293 |
XML | 2 | 46 | 80 | 83 |
YAML | 5 | 9 | 0 | 83 |
Dockerfile | 2 | 9 | 0 | 20 |
Bourne Shell | 1 | 2 | 0 | 7 |
make | 1 | 3 | 0 | 7 |
CSS | 5 | 5 | 11 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 6 | |
Traits | 4 | |
Classes | 132 | |
▷ Abstract classes | 12 | 9.09% |
▷ Concrete classes | 120 | 90.91% |
▷ Final classes | 4 | 3.33% |
Methods | 851 | |
▷ Static methods | 49 | 5.76% |
▷ Public methods | 760 | 89.31% |
▷ Protected methods | 65 | 7.64% |
▷ Private methods | 26 | 3.06% |
Functions | 148 | |
▷ Named functions | 59 | 39.86% |
▷ Anonymous functions | 89 | 60.14% |
Constants | 43 | |
▷ Global constants | 3 | 6.98% |
▷ Class constants | 40 | 93.02% |
▷ Public constants | 40 | 100.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
6 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/sendgrid/php-http-client/static/img/github-sign-up.png | 84.82KB | 29.94KB | ▼ 64.70% |
vendor/sendgrid/sendgrid/static/img/github-fork.png | 14.83KB | 6.73KB | ▼ 54.66% |
vendor/sendgrid/php-http-client/twilio_sendgrid_logo.png | 14.25KB | 5.54KB | ▼ 61.17% |
vendor/sendgrid/sendgrid/twilio_sendgrid_logo.png | 14.25KB | 5.54KB | ▼ 61.17% |
vendor/sendgrid/php-http-client/static/img/github-fork.png | 13.53KB | 6.38KB | ▼ 52.82% |