78% automatic-updater

Code Review | Advanced Automatic Updates

WordPress plugin Advanced Automatic Updates scored 78% from 54 tests.

About plugin

  • Plugin page: automatic-updater
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.0
  • WordPress version: 6.3.1
  • First release: Sep 24, 2012
  • Latest release: Jun 4, 2021
  • Number of updates: 205
  • Update frequency: every 15.5 days
  • Top authors: pento (100%)

Code review

54 tests

User reviews

61 reviews

Install metrics

40,000+ active / 247,610 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.64ms] Passed 4 tests

An overview of server-side resources used by Advanced Automatic Updates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.94 ▲0.92
Dashboard /wp-admin3.46 ▲0.1659.08 ▲7.02
Posts /wp-admin/edit.php3.57 ▲0.2246.73 ▼4.41
Add New Post /wp-admin/post-new.php6.04 ▲0.1682.07 ▼15.60
Media Library /wp-admin/upload.php3.38 ▲0.1534.90 ▲0.54
Advanced Automatic Updates /wp-admin/options-general.php?page=automatic-updater3.3331.46

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Advanced Automatic Updates: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.72 ▼0.684.24 ▲2.5939.77 ▼4.89
Dashboard /wp-admin2,210 ▲255.77 ▼0.14118.66 ▲3.1558.92 ▲13.02
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0439.17 ▲0.4835.85 ▼0.45
Add New Post /wp-admin/post-new.php1,536 ▲323.05 ▼0.13641.58 ▼47.9961.27 ▲4.70
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0198.62 ▼5.8445.32 ▲0.27
Advanced Automatic Updates /wp-admin/options-general.php?page=automatic-updater9282.0325.1127.07

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • automatic-updater

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=automatic-updater
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=automatic-updater
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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 following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/automatic-updater/automatic-updater.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: The official readme.txt is a good inspiration

automatic-updater/automatic-updater.php Passed 13 tests

The main file in "Advanced Automatic Updates" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Adds extra options to WordPress' built-in Automatic Updates feature.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,290 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File74357561,627

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity72.50
▷ Minimum class complexity52.00
▷ Maximum class complexity93.00
Average method complexity7.22
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods313.04%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin