84% update-control

Code Review | Update Control

WordPress plugin Update Control scored84%from 54 tests.

About plugin

  • Plugin page: update-control
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.5
  • WordPress version: 6.3.1
  • First release: Sep 24, 2013
  • Latest release: Apr 12, 2016
  • Number of updates: 35
  • Update frequency: every 26.6 days
  • Top authors: chipbennett (94.29%)georgestephanis (8.57%)

Code review

54 tests

User reviews

19 reviews

Install metrics

6,000+ active /44,055 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.46ms] Passed 4 tests

This is a short check of server-side resources used by Update Control
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0634.16 ▼11.30
Dashboard /wp-admin3.38 ▲0.0346.89 ▼22.99
Posts /wp-admin/edit.php3.50 ▲0.1448.17 ▼1.52
Add New Post /wp-admin/post-new.php5.96 ▲0.07107.71 ▲5.48
Media Library /wp-admin/upload.php3.31 ▲0.0738.27 ▲1.98

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Update Control
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.64 ▲0.412.10 ▲0.3343.66 ▲0.58
Dashboard /wp-admin2,186 ▲95.53 ▼0.1898.46 ▼1.8349.00 ▲5.72
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0336.84 ▼2.1437.72 ▲1.65
Add New Post /wp-admin/post-new.php1,531 ▼023.31 ▼0.03670.31 ▼7.2359.18 ▼6.76
Media Library /wp-admin/upload.php1,397 ▼64.20 ▼0.0298.52 ▼3.5643.03 ▼2.77

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
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 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/update-control/update-control.php:388

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: updates, automatic updates

update-control/update-control.php Passed 13 tests

Analyzing the main PHP file in "Update Control" version 1.5
80 characters long description:
Adds a manual toggle to the WordPress Admin Interface for managing auto-updates.

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
Everything looks great! No dangerous files found in this plugin316 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15715316

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods20100.00%
▷ Public methods20100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin