74% disable-auto-updates

Code Review | Disable Automatic Updates

WordPress plugin Disable Automatic Updates scored74%from 54 tests.

About plugin

  • Plugin page: disable-auto-updates
  • Plugin version: 1.3
  • PHP compatiblity: 4.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2021
  • Latest release: Nov 23, 2022
  • Number of updates: 15
  • Update frequency: every 32.3 days
  • Top authors: s4gor (66.67%)exeebit (40%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,585 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.04ms] Passed 4 tests

Server-side resources used by Disable Automatic Updates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.43 ▼0.72
Dashboard /wp-admin3.33 ▼0.0149.09 ▼14.68
Posts /wp-admin/edit.php3.38 ▲0.0352.29 ▼0.62
Add New Post /wp-admin/post-new.php5.93 ▲0.05101.13 ▲0.49
Media Library /wp-admin/upload.php3.26 ▲0.0332.69 ▼8.14
Disable Auto Updates /wp-admin/tools.php?page=disable-auto-updates3.2733.50

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Automatic Updates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.56 ▼0.744.96 ▲3.0943.38 ▼2.48
Dashboard /wp-admin2,220 ▲145.81 ▲0.9499.67 ▼7.0239.68 ▼5.01
Posts /wp-admin/edit.php2,108 ▲82.03 ▲0.0339.95 ▲2.4935.85 ▲0.66
Add New Post /wp-admin/post-new.php1,533 ▲722.96 ▲5.52621.75 ▼91.4260.68 ▲2.27
Media Library /wp-admin/upload.php1,405 ▲54.29 ▲0.10101.52 ▼5.7743.67 ▼0.45
Disable Auto Updates /wp-admin/tools.php?page=disable-auto-updates8462.0122.6161.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/disable-auto-updates/uninstall.php+13
    unlink(wp-content/uploads/disable-auto-updates): Is a directory
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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 | 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/disable-auto-updates/view/view.php
    • > /wp-content/plugins/disable-auto-updates/disable-auto-updates.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: disable auto update, disable plugin update, disable update, disable theme updates, disable wordpress update...

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

The main PHP script in "Disable Automatic Updates" version 1.3 is automatically included on every request by WordPress
66 characters long description:
A simple plugin to disable plugin, theme or core automatic 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
Good job! No executable or dangerous file extensions detected447 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP47622245
JavaScript212081
CSS20161
LESS111060

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin