78% mailster

Code Review | Mailster WordPress Newsletter Plugin Compatibility Tester

WordPress plugin Mailster WordPress Newsletter Plugin Compatibility Tester scored 78% from 53 tests.

About plugin

  • Plugin page: mailster
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.8.1
  • First release: Jan 13, 2017
  • Latest release: Jul 12, 2021
  • Number of updates: 41
  • Update frequency: every 41.3 days
  • Top authors: everpress (100%)

Code review

53 tests

User reviews

4 reviews

Install metrics

20,000+ active / 19,641 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼301.34ms] Passed 4 tests

Server-side resources used by Mailster WordPress Newsletter Plugin Compatibility Tester
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1230.36 ▲10.80
Dashboard /wp-admin2.74 ▼0.3116.65 ▼21.89
Posts /wp-admin/edit.php2.74 ▼0.3618.85 ▼23.74
Add New Post /wp-admin/post-new.php2.74 ▼2.6918.86 ▼1,145.75
Media Library /wp-admin/upload.php2.74 ▼0.2721.41 ▼13.96
Mailster Tester /wp-admin/tools.php?page=mailster-tester2.7419.16

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Mailster WordPress Newsletter Plugin Compatibility Tester
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲10116.06 ▲0.198.20 ▲1.0746.10 ▼1.15
Dashboard /wp-admin2,967 ▲1175.95 ▲0.07140.38 ▼8.80108.09 ▲6.88
Posts /wp-admin/edit.php2,711 ▲52.68 ▼0.0267.78 ▲1.6885.15 ▼8.47
Add New Post /wp-admin/post-new.php1,482 ▼37516.85 ▼2.27346.13 ▼12.92116.91 ▲9.84
Media Library /wp-admin/upload.php1,774 ▼15.02 ▼0.00138.15 ▼11.74116.99 ▲3.81
Mailster Tester /wp-admin/tools.php?page=mailster-tester9662.0955.3159.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=mailster-tester
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailster/classes/tester.class.php:10

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: newsletter, email marketing, email newsletter, newsletter signup, email signup

mailster/mailster.php 92% from 13 tests

The primary PHP file in "Mailster WordPress Newsletter Plugin Compatibility Tester" version 1.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected72 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2441072

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin