89% wp-auto-updater

Code Review | WP Auto Updater

WordPress plugin WP Auto Updater scored89%from 54 tests.

About plugin

  • Plugin page: wp-auto-updater
  • Plugin version: 1.7.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.0
  • WordPress version: 6.3.1
  • First release: Sep 28, 2017
  • Latest release: Nov 8, 2023
  • Number of updates: 32
  • Update frequency: every 69.8 days
  • Top authors: thingsym (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

7,000+ active /86,160 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▼2.04ms] Passed 4 tests

An overview of server-side resources used by WP Auto Updater
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4341.48 ▼2.01
Dashboard /wp-admin3.74 ▲0.4447.76 ▼4.49
Posts /wp-admin/edit.php3.79 ▲0.4454.86 ▲8.56
Add New Post /wp-admin/post-new.php6.32 ▲0.4486.49 ▼10.22
Media Library /wp-admin/upload.php3.67 ▲0.4443.37 ▲11.10
Auto Updater /wp-admin/index.php?page=wp-auto-updater3.6637.33
Update History /wp-admin/index.php?page=wp-auto-updater-history3.5736.86

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables
wp_auto_updater_history
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
wp_auto_updater_history_table_version
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Auto Updater
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5214.22 ▼0.151.81 ▲0.1642.45 ▼1.69
Dashboard /wp-admin2,206 ▲325.60 ▼0.0693.32 ▼8.4743.08 ▼0.45
Posts /wp-admin/edit.php2,111 ▲111.94 ▼0.0734.97 ▼0.9233.48 ▼0.52
Add New Post /wp-admin/post-new.php1,537 ▲1123.24 ▲0.34646.22 ▲16.6250.58 ▼2.66
Media Library /wp-admin/upload.php1,408 ▲54.14 ▼0.06103.58 ▼2.0444.04 ▼0.73
Auto Updater /wp-admin/index.php?page=wp-auto-updater1,4512.0525.9330.58
Update History /wp-admin/index.php?page=wp-auto-updater-history9502.0424.8726.51

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 does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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 smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Auto Update settings), #2 (Auto Update History), #3 (WordPress Update Process Chart)
The official readme.txt might help

wp-auto-updater/wp-auto-updater.php 92% from 13 tests

The main file in "WP Auto Updater" v. 1.7.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,860 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP43391,2201,546
PO File1108147265
JavaScript13027
XML10022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity65.67
▷ Minimum class complexity44.00
▷ Maximum class complexity107.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods88
▷ Static methods22.27%
▷ Public methods88100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png13.70KB14.24KB0.00%
screenshot-1.png152.91KB61.20KB▼ 59.98%
screenshot-3.png84.68KB27.27KB▼ 67.80%