84% auto-updates

Code Review | Auto Updates

WordPress plugin Auto Updates scored84%from 54 tests.

About plugin

  • Plugin page: auto-updates
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.0
  • WordPress version: 6.3.1
  • First release: Aug 10, 2016
  • Latest release: Aug 21, 2022
  • Number of updates: 39
  • Update frequency: every 56.5 days
  • Top authors: Minor (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /17,751 total downloads


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.01MB] [CPU: ▼4.83ms] Passed 4 tests

A check of server-side resources used by Auto Updates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.98 ▼5.25
Dashboard /wp-admin3.31 ▲0.0146.92 ▼4.15
Posts /wp-admin/edit.php3.36 ▲0.0146.76 ▲1.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.01 ▼10.60
Media Library /wp-admin/upload.php3.23 ▲0.0035.70 ▲0.69

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Updates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.431.66 ▼0.3340.31 ▼7.29
Dashboard /wp-admin2,209 ▲185.85 ▲0.89101.48 ▼1.1040.82 ▲1.30
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0334.17 ▼5.3733.80 ▲2.03
Add New Post /wp-admin/post-new.php1,519 ▲523.21 ▲5.69665.91 ▲32.0756.04 ▲4.86
Media Library /wp-admin/upload.php1,382 ▼94.22 ▼0.0397.63 ▼3.5740.78 ▼4.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/auto-updates/auto-updates.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Screenshot #1 (No screenshots needed) image required
You can take inspiration from this readme.txt

auto-updates/auto-updates.php Passed 13 tests

The principal PHP file in "Auto Updates" v. 1.2 is loaded by WordPress automatically on each request
96 characters long description:
Let WordPress to automatically update his core, plugins and themes - silently in the background.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin