10% mail-on-update

Code Review | Mail On Update

WordPress plugin Mail On Update scored 10% from 54 tests.

About plugin

  • Plugin page: mail-on-update
  • Plugin version: 5.4.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 5.9.2
  • First release: Jun 18, 2008
  • Latest release: Jan 27, 2022
  • Number of updates: 117
  • Update frequency: every 43.0 days
  • Top authors: kubi23 (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active / 68,401 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/mail-on-update/mail-on-update.php+89
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.05MB] [CPU: ▼290.44ms] Passed 4 tests

This is a short check of server-side resources used by Mail On Update
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2157.51 ▲6.21
Dashboard /wp-admin3.48 ▲0.0734.56 ▲0.30
Posts /wp-admin/edit.php3.71 ▲0.0738.84 ▲1.60
Add New Post /wp-admin/post-new.php6.96 ▼0.0198.46 ▼1,161.24
Media Library /wp-admin/upload.php3.37 ▲0.0626.85 ▼2.41
Mail On Update /wp-admin/options-general.php?page=mail-on-update3.3423.75

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
mailonupdate

Browser metrics Passed 4 tests

A check of browser resources used by Mail On Update
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4516.15 ▲0.495.81 ▼0.222.63 ▼0.16
Dashboard /wp-admin2,897 ▲396.20 ▲0.02117.27 ▼19.86158.02 ▼3.03
Posts /wp-admin/edit.php2,693 ▲23.24 ▼0.0063.01 ▼2.00142.98 ▼3.34
Add New Post /wp-admin/post-new.php1,664 ▲2716.62 ▼2.81422.00 ▼2.95155.50 ▼8.98
Media Library /wp-admin/upload.php1,703 ▲85.51 ▼0.05143.94 ▼1.06186.12 ▼9.92
Mail On Update /wp-admin/options-general.php?page=mail-on-update1,2662.4955.31126.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+307
    call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstall' not found or invalid function name
  • Zombie WordPress options detected upon uninstall: 1 option
    • mailonupdate

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mail-on-update/mail-on-update.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === mail-on-update === )
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can look at the official readme.txt

mail-on-update/mail-on-update.php Passed 13 tests

The primary PHP file in "Mail On Update" version 5.4.14 is used by WordPress to initiate all plugin functionality
104 characters long description:
Sends an eMail notification to one or multiple eMail addresses if new versions of plugins are available.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected600 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16136391
PO File2174364209

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity5.07
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin