83% safe-auto-update-restore-manager

Code Review | Autoupdate Plugins & Themes

WordPress plugin Autoupdate Plugins & Themes scored 83% from 54 tests.

About plugin

  • Plugin page: safe-auto-update-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 5.8.1
  • First release: Feb 1, 2021
  • Latest release: Feb 8, 2021
  • Number of updates: 6
  • Update frequency: every 84.8 days
  • Top authors: codemenschen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 196 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼144.11ms] 75% from 4 tests

An overview of server-side resources used by Autoupdate Plugins & Themes
Please fix the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 575.62ms on /wp-admin/options-general.php?page=auto-update-restore)
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.2541.28 ▲19.30
Dashboard /wp-admin3.08 ▲0.0347.31 ▲1.03
Posts /wp-admin/edit.php3.13 ▲0.0343.53 ▲2.42
Add New Post /wp-admin/post-new.php5.45 ▲0.0187.93 ▼579.72
Media Library /wp-admin/upload.php3.02 ▲0.0234.33 ▼0.16
Auto Update Manager /wp-admin/options-general.php?page=auto-update-restore3.02575.62

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: 6 new files
Database: 3 new tables, 2 new options
New tables
wp_autoupdaterestore_data
wp_autoupdaterestore_backup
wp_autoupdaterestore_updates
New WordPress options
autoupdaterestore_plugin_frm_eml
autoupdaterestore_plugin_eml

Browser metrics Passed 4 tests

Checking browser requirements for Autoupdate Plugins & Themes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,858 ▲26216.37 ▲0.8512.62 ▲4.2346.40 ▲1.27
Dashboard /wp-admin2,988 ▲575.99 ▲0.03147.57 ▲3.73114.17 ▲5.41
Posts /wp-admin/edit.php2,754 ▲182.71 ▲0.0366.75 ▼2.8188.57 ▼8.73
Add New Post /wp-admin/post-new.php1,627 ▼5621.86 ▲3.01281.22 ▼100.29109.17 ▼2.51
Media Library /wp-admin/upload.php1,819 ▲125.05 ▲0.05157.40 ▼12.07118.51 ▼2.06
Auto Update Manager /wp-admin/options-general.php?page=auto-update-restore1,3242.3558.29118.00

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 1 option in the database
    • autoupdaterestore_plugin_frm_eml

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=auto-update-restore
    • > Network (severe)
    wp-content/themes/twentytwentyone/css/custom_script.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=auto-update-restore
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: $ is not a function" "TypeError: $ is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/safe-auto-update-restore-manager/js/script.js?ver=1.1:16:19)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
    • > GET request to /wp-admin/options-general.php?page=auto-update-restore
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: $ is not a function
    • > GET request to /wp-admin/options-general.php?page=auto-update-restore
    • > Network (severe)
    https://jackrugile.com/images/misc/noise-diagonal.png - Failed to load resource: the server responded with a status of 404 ()

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
Attributes that require attention: You can look at the official readme.txt

safe-auto-update-restore-manager/auto-update-restore.php 92% from 13 tests

The primary PHP file in "Autoupdate Plugins & Themes" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("safe-auto-update-restore-manager.php" instead of "auto-update-restore.php")

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
Good job! No executable or dangerous file extensions detected1,033 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP319772821
CSS1215147
JavaScript19065

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin