63% wp-disable-automatic-updates

Code Review | WP Disable Automatic Updates

WordPress plugin WP Disable Automatic Updates scored63%from 54 tests.

About plugin

  • Plugin page: wp-disable-automa...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: May 13, 2015
  • Latest release: May 30, 2022
  • Number of updates: 11
  • Update frequency: every 234.0 days
  • Top authors: Bloodspencer (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /15,552 total downloads

Benchmarks

Plugin footprint 65% 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.94MB] [CPU: ▼39.08ms] Passed 4 tests

Analyzing server-side resources used by WP Disable Automatic Updates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0242.79 ▲1.85
Dashboard /wp-admin3.06 ▼0.3325.39 ▼39.69
Posts /wp-admin/edit.php3.06 ▼0.3423.78 ▼28.37
Add New Post /wp-admin/post-new.php3.06 ▼2.8724.41 ▼79.81
Media Library /wp-admin/upload.php3.06 ▼0.2127.06 ▼8.46
Automatic Updates /wp-admin/options-general.php?page=dd_wpdau3.0623.02

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Disable Automatic Updates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.34 ▼0.011.84 ▲0.0847.02 ▲6.30
Dashboard /wp-admin2,201 ▲215.63 ▼0.0282.55 ▼5.3438.28 ▼6.48
Posts /wp-admin/edit.php2,109 ▲92.02 ▲0.0334.52 ▼5.0935.26 ▼3.93
Add New Post /wp-admin/post-new.php1,531 ▲523.58 ▲0.81682.90 ▼92.3551.38 ▼5.41
Media Library /wp-admin/upload.php1,409 ▲94.17 ▼0.0099.81 ▼10.5642.37 ▼3.56
Automatic Updates /wp-admin/options-general.php?page=dd_wpdau9041.7427.9935.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=dd_wpdau
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-disable-automatic-updates/wp-disable-automatic-updates.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-disable-automatic-updates/admin/options.php:7

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

readme.txt Passed 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
6 plugin tags: disable automatic updates, automatic updates, disable theme updates, disable updates, disable core updates...

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

The principal PHP file in "WP Disable Automatic Updates" v. 1.1 is loaded by WordPress automatically on each request
114 characters long description:
This plugin allows you to disable all types of automatic Wordpress Updates very simply with some special features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin235 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23538190
CSS13545

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin