94% mymail-sendgrid-integration

Code Review | MyMail SendGrid Integration

WordPress plugin MyMail SendGrid Integration scored 94% from 54 tests.

About plugin

  • Plugin page: mymail-sendgrid-i...
  • Plugin version: 0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.1
  • WordPress version: 5.8.1
  • First release: Jan 25, 2013
  • Latest release: Jan 12, 2021
  • Number of updates: 103
  • Update frequency: every 28.2 days
  • Top authors: revaxarts (98.06%)everpress (2.91%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 13,066 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0125.36 ▲1.46
Dashboard /wp-admin3.07 ▲0.0030.28 ▼5.17
Posts /wp-admin/edit.php3.12 ▲0.0129.97 ▲1.52
Add New Post /wp-admin/post-new.php5.43 ▼0.0167.48 ▼719.92
Media Library /wp-admin/upload.php3.01 ▲0.0122.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,691 ▲9015.96 ▲0.485.10 ▼5.2874.75 ▼2.71
Dashboard /wp-admin2,955 ▲596.11 ▼0.06117.70 ▼13.65167.78 ▼0.38
Posts /wp-admin/edit.php2,767 ▲243.24 ▲0.0160.87 ▼3.51138.07 ▼0.76
Add New Post /wp-admin/post-new.php3,750 ▼5720.14 ▲1.34454.14 ▼0.82153.73 ▼8.04
Media Library /wp-admin/upload.php1,777 ▲285.53 ▲0.02147.20 ▲1.96183.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1197169513

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 code0.40
Average class complexity82.00
▷ Minimum class complexity82.00
▷ Maximum class complexity82.00
Average method complexity5.59
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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