90% automatic-updates-enabled

Code Review | Automatic Updates Enabled

WordPress plugin Automatic Updates Enabled scored 90% from 54 tests.

About plugin

  • Plugin page: automatic-updates...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.5
  • WordPress version: 6.3.1
  • First release: Jul 31, 2020
  • Latest release: Jul 31, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: piotrmocko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by Automatic Updates Enabled
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.37 ▼5.19
Dashboard /wp-admin3.31 ▲0.0064.80 ▲8.35
Posts /wp-admin/edit.php3.36 ▲0.0051.45 ▼0.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.85 ▲2.84
Media Library /wp-admin/upload.php3.23 ▲0.0039.59 ▼1.34

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Automatic Updates Enabled
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼1114.48 ▲0.072.02 ▲0.0745.25 ▲4.19
Dashboard /wp-admin2,206 ▼04.86 ▼0.03101.88 ▼12.5337.31 ▼3.62
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0238.59 ▼1.2935.52 ▼1.12
Add New Post /wp-admin/post-new.php1,537 ▼023.20 ▼0.22695.75 ▼22.7957.76 ▼2.54
Media Library /wp-admin/upload.php1,382 ▼64.20 ▼0.01100.23 ▲0.0743.29 ▲0.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: auto-updates, automatic updates, plugins auto-update

automatic-updates-enabled/automatic-updates-enabled.php Passed 13 tests

The primary PHP file in "Automatic Updates Enabled" version 1.0 is used by WordPress to initiate all plugin functionality
88 characters long description:
Enables WordPress automatic updates by default for newly installed and activated 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
No dangerous file extensions were detected52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1225452

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods350.00%
▷ Protected methods350.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin