84% background-update-notification-email-address

Code Review | Background Update Notification Email Address

WordPress plugin Background Update Notification Email Address scored84%from 54 tests.

About plugin

  • Plugin page: background-update...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8
  • WordPress version: 6.3.1
  • First release: Feb 20, 2014
  • Latest release: Dec 11, 2015
  • Number of updates: 19
  • Update frequency: every 64.4 days
  • Top authors: iwebsolutions (73.68%)mustardBees (31.58%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,623 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼7.21ms] Passed 4 tests

An overview of server-side resources used by Background Update Notification Email Address
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.80 ▼0.52
Dashboard /wp-admin3.32 ▲0.0147.76 ▼7.03
Posts /wp-admin/edit.php3.37 ▲0.0145.47 ▼7.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.86 ▼14.13
Media Library /wp-admin/upload.php3.24 ▲0.0138.35 ▲0.98
Update Notifications /wp-admin/options-general.php?page=update-notification-email-address3.2434.67

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
update_notification_email_address_options
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Background Update Notification Email Address
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.24 ▼0.481.95 ▼0.0845.31 ▼1.59
Dashboard /wp-admin2,199 ▲225.55 ▼0.1188.03 ▼3.3738.91 ▼4.14
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0034.85 ▼0.6632.64 ▼5.31
Add New Post /wp-admin/post-new.php1,538 ▲1218.11 ▼5.13661.89 ▼26.7965.86 ▲3.62
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.12100.73 ▼14.8646.79 ▼2.52
Update Notifications /wp-admin/options-general.php?page=update-notification-email-address7932.0327.6430.11

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/background-update-notification-email-address/admin/views/admin.php:18

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 on the user side

Optimizations

Plugin configuration 93% from 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
6 plugin tags: manage, admin, automatic updates, plugin, background updates...

background-update-notification-email-address/update-notification-email-address.php 85% from 13 tests

The main PHP file in "Background Update Notification Email Address" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("background-update-notification-email-address.php" instead of "update-notification-email-address.php")
  • 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin218 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP673218173
PO File1121545

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.36
Average class complexity9.00
▷ Minimum class complexity4.00
▷ Maximum class complexity14.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin