84% auto-update

Code Review | Auto Update

WordPress plugin Auto Update scored84%from 54 tests.

About plugin

  • Plugin page: auto-update
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 8, 2016
  • Latest release: Jan 10, 2016
  • Number of updates: 18
  • Update frequency: every 0.1 days
  • Top authors: valeriutihai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,758 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Auto Update
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.48 ▲0.13
Dashboard /wp-admin3.33 ▼0.0246.07 ▼20.68
Posts /wp-admin/edit.php3.38 ▲0.0248.15 ▼2.86
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.68 ▼9.13
Media Library /wp-admin/upload.php3.25 ▲0.0233.60 ▼2.65

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Update
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.051.64 ▲0.0140.91 ▲2.37
Dashboard /wp-admin2,206 ▲185.86 ▲0.0098.83 ▼4.2837.68 ▼9.91
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0735.93 ▼8.5931.15 ▼5.89
Add New Post /wp-admin/post-new.php1,521 ▲123.29 ▲0.13668.06 ▲61.7849.84 ▼0.01
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.02108.28 ▲2.7051.16 ▲5.98

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • 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)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/auto-update/auto-update.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 33 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The main file in "Auto Update" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
This plugin enable Automatic Background Updates for WordPress core, Themes and Plugins.

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
There were no executable files found in this plugin118 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File48892
PHP2175826

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected