Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼181.15ms] Passed 4 tests
Analyzing server-side resources used by MyMail SendGrid Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 25.36 ▲1.46 |
Dashboard /wp-admin | 3.07 ▲0.00 | 30.28 ▼5.17 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 29.97 ▲1.52 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 67.48 ▼719.92 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 22.66 ▼0.98 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by MyMail SendGrid Integration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲90 | 15.96 ▲0.48 | 5.10 ▼5.28 | 74.75 ▼2.71 |
Dashboard /wp-admin | 2,955 ▲59 | 6.11 ▼0.06 | 117.70 ▼13.65 | 167.78 ▼0.38 |
Posts /wp-admin/edit.php | 2,767 ▲24 | 3.24 ▲0.01 | 60.87 ▼3.51 | 138.07 ▼0.76 |
Add New Post /wp-admin/post-new.php | 3,750 ▼57 | 20.14 ▲1.34 | 454.14 ▼0.82 | 153.73 ▼8.04 |
Media Library /wp-admin/upload.php | 1,777 ▲28 | 5.53 ▲0.02 | 147.20 ▲1.96 | 183.13 ▼10.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mymail-sendgrid-integration/mymail-sendgrid-integration.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: mymailesp, mymail, sendgrid, newsletter, deliverymethod...
mymail-sendgrid-integration/mymail-sendgrid-integration.php Passed 13 tests
The main PHP script in "MyMail SendGrid Integration" version 0.5.1 is automatically included on every request by WordPress
131 characters long description:
Uses SendGrid to deliver emails for the MyMail Newsletter Plugin for WordPress. This requires at least version 2.0.25 of the plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected513 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 197 | 169 | 513 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 82.00 |
▷ Minimum class complexity | 82.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 5.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin