84% disable-updates

Code Review | Disable Updates for WordPress Core, Plugins and Themes

WordPress plugin Disable Updates for WordPress Core, Plugins and Themes scored84%from 54 tests.

About plugin

  • Plugin page: disable-updates
  • Plugin version: 1.3.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Aug 21, 2011
  • Latest release: Oct 30, 2023
  • Number of updates: 36
  • Update frequency: every 124.0 days
  • Top authors: vanderwijk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10,000+ active /54,796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.15ms] Passed 4 tests

Server-side resources used by Disable Updates for WordPress Core, Plugins and Themes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.07 ▲0.72
Dashboard /wp-admin3.32 ▲0.0147.97 ▼1.07
Posts /wp-admin/edit.php3.35 ▼0.0143.23 ▼5.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.75 ▼18.45
Media Library /wp-admin/upload.php3.24 ▲0.0131.83 ▼3.22

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Disable Updates for WordPress Core, Plugins and Themes: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,756 ▼514.21 ▼0.051.83 ▲0.1948.49 ▲2.99
Dashboard /wp-admin2,148 ▼295.49 ▼0.1687.38 ▼0.5835.38 ▼4.74
Posts /wp-admin/edit.php2,060 ▼402.12 ▲0.0934.41 ▼6.0334.11 ▼1.81
Add New Post /wp-admin/post-new.php1,496 ▼3523.18 ▲0.05626.28 ▲40.9645.00 ▼9.08
Media Library /wp-admin/upload.php1,356 ▼414.21 ▲0.0395.98 ▼0.0439.86 ▼2.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-updates/disable-updates.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (WordPress dashboard before activating the plugin.), #2 (After activating the plugin all update notices are disabled.)
You can look at the official readme.txt

disable-updates/disable-updates.php Passed 13 tests

The main PHP file in "Disable Updates for WordPress Core, Plugins and Themes" ver. 1.3.7 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
A simple plugin that prevents updating the WordPress core, plugins and themes.

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 plugin107 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1142054
PO File17739
SVG10014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 1.12MB with 0.72MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png553.52KB153.03KB▼ 72.35%
assets/icon-256x256.png9.18KB4.08KB▼ 55.54%
assets/icon-128x128.png4.85KB2.17KB▼ 55.28%
screenshot-1.png584.39KB164.42KB▼ 71.86%