88% mailersend-official-smtp-integration

Code Review | MailerSend - Official SMTP Integration

WordPress plugin MailerSend - Official SMTP Integration scored88%from 54 tests.

About plugin

  • Plugin page: mailersend-offici...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2021
  • Latest release: Jul 17, 2023
  • Number of updates: 12
  • Update frequency: every 52.9 days
  • Top authors: mailersend (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /6,224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.73ms] Passed 4 tests

An overview of server-side resources used by MailerSend - Official SMTP Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.75 ▼0.78
Dashboard /wp-admin3.39 ▲0.0948.97 ▼4.42
Posts /wp-admin/edit.php3.50 ▲0.1550.73 ▼4.52
Add New Post /wp-admin/post-new.php5.97 ▲0.0897.47 ▲3.17
Media Library /wp-admin/upload.php3.31 ▲0.0837.07 ▲2.80

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for MailerSend - Official SMTP Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.34 ▲0.151.82 ▲0.2940.71 ▼0.59
Dashboard /wp-admin2,218 ▲385.59 ▼0.0792.04 ▲4.8375.16 ▲30.73
Posts /wp-admin/edit.php2,141 ▲411.99 ▼0.0138.30 ▼2.4534.88 ▼5.63
Add New Post /wp-admin/post-new.php1,569 ▲4317.95 ▼5.26675.61 ▲66.4062.11 ▲13.83
Media Library /wp-admin/upload.php1,438 ▲384.21 ▲0.0294.91 ▼15.8576.74 ▲31.87

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (MailerSend) image not found
You can look at the official readme.txt

mailersend-official-smtp-integration/mailersend-wordpress.php 62% from 13 tests

The entry point to "MailerSend - Official SMTP Integration" version 1.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "7.2.5")
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
  • Domain Path: Please prefix the domain path with a forward slash character ("/-")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("-")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mailersend-official-smtp-integration.php" instead of "mailersend-wordpress.php")

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 detected1,268 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12339464986
CSS1581179
Markdown138079
JavaScript14012
SVG10012

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.42
Average class complexity11.56
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods55
▷ Static methods2443.64%
▷ Public methods4480.00%
▷ Protected methods00.00%
▷ Private methods1120.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected