84% disable-update-notifications

Code Review | Disable WordPress Update Notifications and auto-update Email Notifications

WordPress plugin Disable WordPress Update Notifications and auto-update Email Notifications scored84%from 54 tests.

About plugin

  • Plugin page: disable-update-no...
  • Plugin version: 2.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2016
  • Latest release: Sep 16, 2023
  • Number of updates: 48
  • Update frequency: every 56.5 days
  • Top authors: freewebmentor (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

8,000+ active /38,220 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.54ms] Passed 4 tests

A check of server-side resources used by Disable WordPress Update Notifications and auto-update Email Notifications
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.55 ▼0.92
Dashboard /wp-admin3.33 ▼0.0245.05 ▼13.55
Posts /wp-admin/edit.php3.38 ▲0.0243.63 ▼8.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.21 ▼23.11
Media Library /wp-admin/upload.php3.25 ▲0.0235.17 ▲0.48
Disable Notifications /wp-admin/options-general.php?page=fm-dwns3.2130.42

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Disable WordPress Update Notifications and auto-update Email Notifications
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5814.85 ▲0.472.08 ▲0.1543.54 ▼1.59
Dashboard /wp-admin2,207 ▲225.83 ▼0.0299.07 ▼0.4238.47 ▼5.56
Posts /wp-admin/edit.php2,096 ▲41.99 ▼0.0236.17 ▼4.9833.50 ▼2.07
Add New Post /wp-admin/post-new.php1,536 ▼023.23 ▲0.12610.03 ▲26.0657.60 ▼5.78
Media Library /wp-admin/upload.php1,395 ▲74.27 ▲0.0895.66 ▼5.3444.92 ▲0.23
Disable Notifications /wp-admin/options-general.php?page=fm-dwns9672.1822.0667.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just 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 add_filter() in wp-content/plugins/disable-update-notifications/disable-auto-email-notification.php:9

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)
There were no browser issues found

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
5 plugin tags: update notifications, plugin update, hide warnings, core update, disable

disable-update-notifications/index.php 85% from 13 tests

This is the main PHP file of "Disable WordPress Update Notifications and auto-update Email Notifications" version 2.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disable-update-notifications.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin413 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS12112246
PHP22132167

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin