84% disable-auto-update-email-notifications

Code Review | Disable auto-update Email Notifications

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

About plugin

  • Plugin page: disable-auto-upda...
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Aug 15, 2020
  • Latest release: Nov 17, 2023
  • Number of updates: 10
  • Update frequency: every 118.9 days
  • Top authors: elvis89 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

30,000+ active /118,861 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Disable auto-update Email Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.90 ▼1.56
Dashboard /wp-admin3.31 ▼0.0443.26 ▼17.29
Posts /wp-admin/edit.php3.36 ▲0.0044.29 ▼0.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.09 ▲0.29
Media Library /wp-admin/upload.php3.23 ▲0.0035.20 ▲0.63

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Disable auto-update Email Notifications
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.70 ▲0.311.98 ▲0.3040.39 ▼3.30
Dashboard /wp-admin2,198 ▲185.61 ▼0.0692.60 ▼6.9041.91 ▼1.65
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0138.54 ▲3.5135.05 ▼6.79
Add New Post /wp-admin/post-new.php1,526 ▼023.51 ▲0.42597.99 ▼92.8444.74 ▼6.99
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0397.27 ▼16.2243.64 ▼3.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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-auto-update-email-notifications/disable-auto-update-email-notifications.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

disable-auto-update-email-notifications/disable-auto-update-email-notifications.php Passed 13 tests

The principal PHP file in "Disable auto-update Email Notifications" v. 1.4.1 is loaded by WordPress automatically on each request
131 characters long description:
This plugin performs a simple task of disabling email notifications that are sent by WordPress when a plugin or theme auto-updates.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin