84% mailer-dragon

Code Review | Mailer Dragon - Email Marketing Plugin for WordPress

WordPress plugin Mailer Dragon - Email Marketing Plugin for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: mailer-dragon
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 4, 2017
  • Latest release: Aug 14, 2023
  • Number of updates: 46
  • Update frequency: every 48.5 days
  • Top authors: impleCode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /13,549 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▼1.15ms] Passed 4 tests

An overview of server-side resources used by Mailer Dragon - Email Marketing Plugin for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5046.45 ▲4.39
Dashboard /wp-admin3.80 ▲0.4952.05 ▲3.58
Posts /wp-admin/edit.php3.85 ▲0.4950.66 ▲0.21
Add New Post /wp-admin/post-new.php6.31 ▲0.4387.51 ▼9.20
Media Library /wp-admin/upload.php3.65 ▲0.4238.65 ▲0.83
All Emails /wp-admin/edit.php?post_type=ic_mailer3.7539.61
Add New /wp-admin/post-new.php?post_type=ic_mailer3.8563.83

Server storage [IO: ▲0.17MB] [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: 40 new files
Database: no new tables, 9 new options
New WordPress options
ic_mailer_settings
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
ic_mailer_dragon_install
widget_ic_mailer_subscription
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Mailer Dragon - Email Marketing Plugin for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲6913.56 ▼0.822.08 ▼0.3245.45 ▼3.12
Dashboard /wp-admin2,256 ▲504.84 ▼0.97104.24 ▼0.3339.18 ▼2.51
Posts /wp-admin/edit.php2,135 ▲352.01 ▼0.0139.39 ▼1.8836.44 ▲0.13
Add New Post /wp-admin/post-new.php1,556 ▲1123.46 ▲0.42672.43 ▲49.1454.77 ▼9.61
Media Library /wp-admin/upload.php1,435 ▲324.24 ▲0.03102.67 ▲0.1244.76 ▼1.10
All Emails /wp-admin/edit.php?post_type=ic_mailer1,1152.0842.5127.57
Settings /wp-admin/mailer-settings.php260.440.1015.07
Add New /wp-admin/post-new.php?post_type=ic_mailer2,3607.92189.3669.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_ic_mailer_subscription
    • widget_recent-comments
    • ic_mailer_dragon_install
    • widget_recent-posts
    • widget_theysaidso_widget
    • ic_mailer_settings
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/mailer-settings.php
    • > Network (severe)
    wp-admin/mailer-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

mailer-dragon/mailer-dragon.php Passed 13 tests

The principal PHP file in "Mailer Dragon - Email Marketing Plugin for WordPress" v. 1.1.2 is loaded by WordPress automatically on each request
54 characters long description:
Create newsletters and contact your visitors directly.

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
There were no executable files found in this plugin2,178 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP253146032,079
CSS3111454
JavaScript25645

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.80
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods73
▷ Static methods00.00%
▷ Public methods73100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions90
▷ Named functions90100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ext/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
css/images/warning.png1.64KB1.48KB▼ 9.80%
css/images/doc.png4.91KB1.64KB▼ 66.49%
css/images/info.png2.21KB1.70KB▼ 22.85%
ext/chosen/chosen-sprite.png0.53KB0.88KB0.00%