89% disable-all-wp-updates

Code Review | Disable All WP Updates

WordPress plugin Disable All WP Updates scored89%from 54 tests.

About plugin

  • Plugin page: disable-all-wp-up...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Mar 17, 2016
  • Latest release: Jul 19, 2021
  • Number of updates: 10
  • Update frequency: every 195.0 days
  • Top authors: peterwilsoncc (80%)griffinjt (30%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /15,542 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Disable All WP Updates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0743.11 ▼0.78
Dashboard /wp-admin3.37 ▲0.0655.39 ▲1.70
Posts /wp-admin/edit.php3.40 ▲0.0448.75 ▲0.95
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.88 ▼12.55
Media Library /wp-admin/upload.php3.29 ▲0.0636.69 ▼5.25

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/disable-all-wp-updates/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable All WP Updates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,738 ▼2313.62 ▼0.614.28 ▲2.4743.96 ▼6.07
Dashboard /wp-admin2,155 ▼485.73 ▼0.16106.15 ▼20.1941.26 ▼2.94
Posts /wp-admin/edit.php2,050 ▼471.99 ▲0.0037.78 ▲2.0834.21 ▼2.28
Add New Post /wp-admin/post-new.php1,501 ▼4623.14 ▲0.09646.25 ▼22.3161.83 ▲11.11
Media Library /wp-admin/upload.php1,349 ▼514.25 ▲0.02107.04 ▼4.9344.90 ▼1.37

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
You can take inspiration from this readme.txt

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

"Disable All WP Updates" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Disables all WordPress updates and update checks.

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 plugin168 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP148167168

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected