84% disable-plugin-autoupdate-emails

Code Review | Disable Plugin Autoupdate Emails

WordPress plugin Disable Plugin Autoupdate Emails scored84%from 54 tests.

About plugin

  • Plugin page: disable-plugin-au...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2020
  • Latest release: Oct 20, 2023
  • Number of updates: 7
  • Update frequency: every 165.9 days
  • Top authors: simshaun (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

6,000+ active /24,134 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.00MB] [CPU: ▼3.61ms] Passed 4 tests

This is a short check of server-side resources used by Disable Plugin Autoupdate Emails
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.49 ▼7.93
Dashboard /wp-admin3.31 ▲0.0144.26 ▼4.81
Posts /wp-admin/edit.php3.36 ▲0.0046.92 ▼1.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.38 ▼0.43
Media Library /wp-admin/upload.php3.23 ▲0.0035.44 ▲1.12

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Plugin Autoupdate Emails
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.34 ▼0.051.54 ▼0.1740.22 ▼2.12
Dashboard /wp-admin2,195 ▲185.55 ▼0.1082.79 ▼15.3036.14 ▼8.00
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0538.09 ▼3.4635.27 ▼1.33
Add New Post /wp-admin/post-new.php1,528 ▼623.04 ▲4.96632.61 ▲3.2951.76 ▼17.32
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0292.99 ▼34.8640.84 ▼7.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-plugin-autoupdate-emails/disable-plugin-autoupdate-emails.php:29

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: disable autoupdate email, updates, autoupdates

disable-plugin-autoupdate-emails/disable-plugin-autoupdate-emails.php Passed 13 tests

The main PHP script in "Disable Plugin Autoupdate Emails" version 1.1.2 is automatically included on every request by WordPress
101 characters long description:
Getting too many "plugin updated" or "theme updated" emails since WordPress 5.5? This turns them off.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161118

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.43
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin