90% disable-automatic-background-updates

Code Review | Disable Automatic Background Updates

WordPress plugin Disable Automatic Background Updates scored 90% from 54 tests.

About plugin

  • Plugin page: disable-automatic...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2015
  • Latest release: Feb 24, 2019
  • Number of updates: 9
  • Update frequency: every 143.8 days
  • Top authors: dimadin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,882 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.19ms] Passed 4 tests

Server-side resources used by Disable Automatic Background Updates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.65 ▼0.20
Dashboard /wp-admin3.32 ▲0.0151.15 ▲2.19
Posts /wp-admin/edit.php3.37 ▲0.0149.00 ▲0.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.53 ▼14.79
Media Library /wp-admin/upload.php3.24 ▲0.0135.68 ▲3.69

Server storage [IO: ▲0.00MB] [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
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Automatic Background Updates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.29 ▼1.264.51 ▲2.2244.06 ▼2.74
Dashboard /wp-admin2,203 ▲125.91 ▲0.01107.01 ▲4.4339.38 ▼2.69
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0140.30 ▲1.8236.31 ▲2.41
Add New Post /wp-admin/post-new.php1,542 ▲918.68 ▼4.80641.93 ▲19.8751.30 ▼1.04
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0296.82 ▼3.8741.14 ▼5.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

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
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: updates, automatic update, update, automatic updates

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

The primary PHP file in "Disable Automatic Background Updates" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1122910

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin