94% mailster-mailgun

Code Review | Mailster Mailgun Integration

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

About plugin

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

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 11,142 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼302.56ms] Passed 4 tests

A check of server-side resources used by Mailster Mailgun Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1456.45 ▼0.01
Dashboard /wp-admin3.49 ▲0.0933.91 ▼5.83
Posts /wp-admin/edit.php3.73 ▲0.09108.56 ▲67.73
Add New Post /wp-admin/post-new.php6.96 ▼0.0196.17 ▼1,203.14
Media Library /wp-admin/upload.php3.38 ▲0.0828.33 ▼1.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Mailster Mailgun Integration: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲3415.50 ▼0.475.60 ▼0.272.34 ▼0.40
Dashboard /wp-admin2,920 ▲596.11 ▼0.01117.28 ▼19.50158.13 ▼18.96
Posts /wp-admin/edit.php2,713 ▲433.24 ▼0.0070.97 ▲4.69148.18 ▼37.66
Add New Post /wp-admin/post-new.php1,676 ▲4117.30 ▼1.55432.23 ▲5.88186.78 ▲37.23
Media Library /wp-admin/upload.php1,723 ▲285.45 ▼0.04150.25 ▲8.45192.20 ▲2.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/mailster-mailgun/views/settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailster-mailgun/classes/mailgun.class.php:13
    • > PHP Notice
      Undefined variable: verified in wp-content/plugins/mailster-mailgun/views/settings.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: newsletter, mailster, mailsteresp, email, deliverymethod...

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

"Mailster Mailgun Integration" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
Uses Mailgun 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 a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected549 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3168126549

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity93.00
▷ Minimum class complexity93.00
▷ Maximum class complexity93.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1995.00%
▷ Protected methods00.00%
▷ Private methods15.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin