94% mailster-mailjet

Code Review | Mailster Mailjet

WordPress plugin Mailster Mailjet scored 94% from 54 tests.

About plugin

  • Plugin page: mailster-mailjet
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9
  • WordPress version: 5.9.2
  • First release: Aug 2, 2021
  • Latest release: Jan 28, 2022
  • Number of updates: 9
  • Update frequency: every 20.2 days
  • Top authors: everpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 434 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼330.76ms] Passed 4 tests

Analyzing server-side resources used by Mailster Mailjet
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.14 ▼109.73
Dashboard /wp-admin3.42 ▲0.0137.56 ▼10.86
Posts /wp-admin/edit.php3.65 ▲0.0142.90 ▲1.80
Add New Post /wp-admin/post-new.php6.91 ▼0.0896.10 ▼1,203.42
Media Library /wp-admin/upload.php3.30 ▲0.0126.11 ▲0.97

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mailster Mailjet
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲3415.63 ▼0.415.81 ▼2.062.40 ▼0.24
Dashboard /wp-admin2,917 ▲606.15 ▲0.07126.17 ▼13.08166.38 ▼73.09
Posts /wp-admin/edit.php2,713 ▲223.24 ▲0.0060.63 ▼2.96139.41 ▼4.17
Add New Post /wp-admin/post-new.php1,683 ▼3418.08 ▼3.65395.73 ▼60.55156.31 ▲1.54
Media Library /wp-admin/upload.php1,723 ▲315.47 ▲0.01148.31 ▲5.49194.77 ▲4.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailster-mailjet/classes/mailjet.class.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mailster_option() in wp-content/plugins/mailster-mailjet/views/settings.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: deliverymethod, mailsteresp, mailjet, mailster, email...

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

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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected430 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3161130430

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected