84% wp-autoupdates

Code Review | WordPress Auto-updates

WordPress plugin WordPress Auto-updates scored84%from 54 tests.

About plugin

  • Plugin page: wp-autoupdates
  • Plugin version: 0.8.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.4
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Oct 30, 2020
  • Number of updates: 50
  • Update frequency: every 5.1 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

60+ active /38,173 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.53ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Auto-updates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.39 ▼0.64
Dashboard /wp-admin3.31 ▲0.0045.57 ▼4.40
Posts /wp-admin/edit.php3.36 ▲0.0045.98 ▲1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.24 ▼20.47
Media Library /wp-admin/upload.php3.23 ▲0.0036.57 ▼0.61

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Auto-updates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.41 ▲0.131.73 ▲0.0544.10 ▲4.55
Dashboard /wp-admin2,195 ▲185.57 ▼0.0694.63 ▲7.5141.06 ▼3.20
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0333.27 ▼3.4636.43 ▲1.12
Add New Post /wp-admin/post-new.php1,526 ▼923.00 ▲4.70673.79 ▲30.9859.07 ▼9.08
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0394.06 ▼7.1240.86 ▼7.15

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-autoupdates/wp-autoupdates.php
    • > /wp-content/plugins/wp-autoupdates/functions.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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were no plugin tags found

wp-autoupdates/wp-autoupdates.php Passed 13 tests

"WordPress Auto-updates" version 0.8.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
A feature plugin to integrate Plugins & Themes automatic updates in WordPress Core.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected15,376 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON20014,104
PHP3233323922
JavaScript11921179
Markdown1880161
CSS12310

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin