84% wp-automatic-updates

Code Review | WP Automatic Updates

WordPress plugin WP Automatic Updates scored84%from 54 tests.

About plugin

  • Plugin page: wp-automatic-updates
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8.9
  • WordPress version: 6.3.1
  • First release: Mar 30, 2015
  • Latest release: Aug 16, 2018
  • Number of updates: 19
  • Update frequency: every 65.2 days
  • Top authors: ak.singla (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /25,854 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.32ms] Passed 4 tests

An overview of server-side resources used by WP Automatic Updates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.43 ▼0.68
Dashboard /wp-admin3.41 ▲0.1047.48 ▼2.73
Posts /wp-admin/edit.php3.52 ▲0.1652.72 ▼4.39
Add New Post /wp-admin/post-new.php5.99 ▲0.1088.03 ▼5.47
Media Library /wp-admin/upload.php3.33 ▲0.1036.20 ▲4.95
WP Updates /wp-admin/options-general.php?page=wp-automatic-updates/wp-automatic-updates.php3.2830.00

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
omak_wpau_options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Automatic Updates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.381.85 ▼0.0146.20 ▼0.31
Dashboard /wp-admin2,210 ▲224.86 ▲0.03108.94 ▼5.1747.65 ▲4.72
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0338.79 ▲1.9234.40 ▲2.39
Add New Post /wp-admin/post-new.php1,536 ▲123.02 ▼0.23672.65 ▲39.3650.84 ▼2.66
Media Library /wp-admin/upload.php1,386 ▼54.23 ▲0.0896.97 ▼2.4241.16 ▼1.94
WP Updates /wp-admin/options-general.php?page=wp-automatic-updates/wp-automatic-updates.php1,0542.0323.6533.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% 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=wp-automatic-updates/wp-automatic-updates.php
    • > 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=wp-automatic-updates/wp-automatic-updates.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: plugin updates, core updates, translation updates, background updates, automatic updates...

wp-automatic-updates/wp-automatic-updates.php 92% from 13 tests

The main PHP script in "WP Automatic Updates" version 1.1.6 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 330 characters long)

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
Everything looks great! No dangerous files found in this plugin661 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP38332342
PO File26572286
CSS30033

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There are no PNG files in this plugin