94% mailster-mailersend

Code Review | Mailster MailerSend Integration

WordPress plugin Mailster MailerSend Integration scored 94% from 54 tests.

About plugin

  • Plugin page: mailster-mailersend
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9
  • WordPress version: 5.9.2
  • First release: Jun 25, 2021
  • Latest release: Jan 28, 2022
  • Number of updates: 13
  • Update frequency: every 16.7 days
  • Top authors: everpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 498 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼300.27ms] Passed 4 tests

Server-side resources used by Mailster MailerSend Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1356.11 ▲1.20
Dashboard /wp-admin3.48 ▲0.0834.37 ▼2.75
Posts /wp-admin/edit.php3.72 ▲0.0838.88 ▲0.93
Add New Post /wp-admin/post-new.php6.95 ▼0.0294.87 ▼1,195.36
Media Library /wp-admin/upload.php3.37 ▲0.0723.71 ▼3.91

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Mailster MailerSend Integration: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲4615.96 ▲0.196.52 ▼0.032.38 ▲0.37
Dashboard /wp-admin2,917 ▲636.17 ▼0.05119.91 ▼15.15159.29 ▼1.37
Posts /wp-admin/edit.php2,713 ▲193.24 ▲0.0166.05 ▲0.89140.10 ▼4.42
Add New Post /wp-admin/post-new.php1,676 ▲1017.38 ▼3.87408.16 ▼22.00158.98 ▲1.52
Media Library /wp-admin/upload.php1,723 ▲255.49 ▼0.04142.46 ▼4.34188.11 ▼2.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
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 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailster-mailersend/classes/mailersend.class.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mailster_option() in wp-content/plugins/mailster-mailersend/views/settings.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: mailster, email, deliverymethod, mailersend, mailsteresp...

mailster-mailersend/mailster-mailersend.php Passed 13 tests

The entry point to "Mailster MailerSend Integration" version 1.1 is a PHP file that has certain tags in its header comment area
83 characters long description:
Uses MailerSend to deliver emails for the Mailster Newsletter Plugin for WordPress.

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
There were no executable files found in this plugin439 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3146107439

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity72.00
▷ Minimum class complexity72.00
▷ Maximum class complexity72.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected