84% disable-automatic-updates

Code Review | Disable Automatic Updates - Enable/Disable core, plugins, themes, translation updates

WordPress plugin Disable Automatic Updates - Enable/Disable core, plugins, themes, translation updates scored84%from 54 tests.

About plugin

  • Plugin page: disable-automatic...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.1.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2013
  • Latest release: Mar 23, 2019
  • Number of updates: 12
  • Update frequency: every 165.2 days
  • Top authors: onetarek (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /5,257 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.05MB] [CPU: ▼5.15ms] Passed 4 tests

Analyzing server-side resources used by Disable Automatic Updates - Enable/Disable core, plugins, themes, translation updates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.70 ▼5.68
Dashboard /wp-admin3.35 ▲0.0550.39 ▼1.82
Posts /wp-admin/edit.php3.40 ▲0.0546.29 ▼5.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.95 ▼7.77
Media Library /wp-admin/upload.php3.27 ▲0.0545.77 ▲3.90
Disable Automatic Updates /wp-admin/options-general.php?page=disable_automatic_updates3.2434.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Automatic Updates - Enable/Disable core, plugins, themes, translation updates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.20 ▼1.551.71 ▼0.2346.39 ▲5.17
Dashboard /wp-admin2,225 ▲255.83 ▲0.02110.79 ▼5.4840.86 ▼6.34
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0637.55 ▲1.1936.57 ▼1.92
Add New Post /wp-admin/post-new.php1,548 ▲1723.43 ▲0.03618.72 ▼86.2077.40 ▲22.44
Media Library /wp-admin/upload.php1,404 ▲74.26 ▲0.16117.62 ▼8.1650.13 ▼0.39
Disable Automatic Updates /wp-admin/options-general.php?page=disable_automatic_updates1,0092.0730.8829.23

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

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-automatic-updates/disable-automatic-updates.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
8 plugin tags: theme update, enable, core update, plugin update, disable...

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

"Disable Automatic Updates - Enable/Disable core, plugins, themes, translation updates" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 274 characters long)

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
Success! There were no dangerous files found in this plugin236 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14317236

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected