94% mailster-live

Code Review | Mailster Live!

WordPress plugin Mailster Live! scored 94% from 54 tests.

About plugin

  • Plugin page: mailster-live
  • Plugin version: 2.0
  • 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: 32
  • Update frequency: every 57.5 days
  • Top authors: everpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 11,841 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼298.85ms] Passed 4 tests

A check of server-side resources used by Mailster Live!
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0758.73 ▲5.21
Dashboard /wp-admin3.47 ▲0.0733.56 ▼2.51
Posts /wp-admin/edit.php3.70 ▲0.0640.13 ▲0.74
Add New Post /wp-admin/post-new.php6.94 ▼0.0397.34 ▼1,185.57
Media Library /wp-admin/upload.php3.35 ▲0.0623.90 ▼8.05

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Mailster Live!
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,775 ▲5315.96 ▲0.406.41 ▲0.642.49 ▲0.25
Dashboard /wp-admin2,907 ▲476.13 ▼0.02115.64 ▼8.68164.03 ▲2.51
Posts /wp-admin/edit.php2,706 ▲153.24 ▼0.0070.55 ▼25.66142.97 ▼3.46
Add New Post /wp-admin/post-new.php1,669 ▲315.63 ▼4.75426.21 ▼17.91159.76 ▼0.76
Media Library /wp-admin/upload.php1,710 ▲125.51 ▲0.04148.93 ▲0.37194.20 ▲1.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/mailster-live/views/metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mailster_option() in wp-content/plugins/mailster-live/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mailster-live/classes/live.class.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: analytics, tracking, email, mailster, newsletter

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

The principal PHP file in "Mailster Live!" v. 2.0 is loaded by WordPress automatically on each request
52 characters long description:
see who opens your newsletter campaigns in real time

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,887 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4130211,118
CSS2140455
PHP410648314

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
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
10 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/blue_2x.png1.49KB1.42KB▼ 5.10%
assets/img/red.png0.64KB0.43KB▼ 32.36%
assets/img/yellow.png0.64KB0.43KB▼ 32.57%
assets/img/green.png0.65KB0.44KB▼ 32.33%
assets/img/sad-smiley.png15.67KB8.06KB▼ 48.55%