94% mailster-mandrill

Code Review | Mailster Mandrill Integration

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

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,110 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Mailster Mandrill Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0250.19 ▲0.58
Dashboard /wp-admin3.42 ▲0.0132.14 ▼0.70
Posts /wp-admin/edit.php3.65 ▲0.0135.47 ▲0.17
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.75 ▼1,178.51
Media Library /wp-admin/upload.php3.30 ▼0.0025.87 ▼5.41

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Mailster Mandrill Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲6615.98 ▲0.096.08 ▲0.091.94 ▼0.40
Dashboard /wp-admin2,917 ▲666.12 ▲0.00124.39 ▼11.26165.50 ▲4.09
Posts /wp-admin/edit.php2,719 ▲253.24 ▼0.0062.57 ▼0.54142.40 ▲0.18
Add New Post /wp-admin/post-new.php1,767 ▲1621.19 ▼0.37429.76 ▼34.31160.57 ▼0.70
Media Library /wp-admin/upload.php1,720 ▲195.54 ▼0.00145.14 ▲1.10181.13 ▼14.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailster-mandrill/mailster-mandrill.php:25

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 uses markdown syntax to describe your plugin to the world
4 plugin tags: newsletter, mailster, mailsteresp, mandrill

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

Analyzing the main PHP file in "Mailster Mandrill Integration" version 1.1
81 characters long description:
Uses Mandrill 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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected484 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1166170477
JavaScript2407

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity74.00
▷ Minimum class complexity74.00
▷ Maximum class complexity74.00
Average method complexity5.06
▷ Minimum method complexity1.00
▷ Maximum method complexity17.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%
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