84% disable-wordpress-updates

Code Review | Disable All WordPress Updates

WordPress plugin Disable All WordPress Updates scored84%from 54 tests.

About plugin

  • Plugin page: disable-wordpress...
  • Plugin version: 1.7.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3.99
  • WordPress version: 6.3.1
  • First release: Feb 26, 2010
  • Latest release: Jul 25, 2023
  • Number of updates: 107
  • Update frequency: every 45.8 days
  • Top authors: Alphawolf (79.44%)Crazy Girl (21.5%)

Code review

54 tests

User reviews

61 reviews

Install metrics

20,000+ active /688,166 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.25ms] Passed 4 tests

Analyzing server-side resources used by Disable All WordPress Updates
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.80 ▼1.13
Dashboard /wp-admin3.36 ▲0.0549.96 ▼0.39
Posts /wp-admin/edit.php3.39 ▲0.0352.55 ▲2.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.94 ▼16.29
Media Library /wp-admin/upload.php3.28 ▲0.0537.29 ▲0.82

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Disable All WordPress Updates
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,762 ▲114.51 ▲0.161.53 ▼0.1838.26 ▼1.60
Dashboard /wp-admin2,179 ▲25.62 ▼0.0587.32 ▼3.1341.00 ▼1.32
Posts /wp-admin/edit.php2,091 ▼91.99 ▼0.0135.68 ▲0.0931.85 ▼4.12
Add New Post /wp-admin/post-new.php1,513 ▼1523.83 ▲0.94684.87 ▲73.5955.49 ▼1.76
Media Library /wp-admin/upload.php1,387 ▼74.19 ▼0.1294.00 ▼10.1142.13 ▼6.11

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-wordpress-updates/disable-updates.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: core, auto-update, update-check, serve-happy, theme...

disable-wordpress-updates/disable-updates.php 92% from 13 tests

This is the main PHP file of "Disable All WordPress Updates" version 1.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("disable-wordpress-updates.php" instead of "disable-updates.php")

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
Success! There were no dangerous files found in this plugin202 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP165151136
PO File2121466

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin