90% enable-automatic-update-for-all-plugins

Code Review | Enable Automatic Update for All Plugins

WordPress plugin Enable Automatic Update for All Plugins scored90%from 54 tests.

About plugin

  • Plugin page: enable-automatic-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2020
  • Latest release: Nov 2, 2022
  • Number of updates: 6
  • Update frequency: every 117.5 days
  • Top authors: boopathi0001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /391 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.91ms] Passed 4 tests

A check of server-side resources used by Enable Automatic Update for All Plugins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.52 ▼2.15
Dashboard /wp-admin3.31 ▲0.0144.12 ▼5.37
Posts /wp-admin/edit.php3.36 ▲0.0047.19 ▲0.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.79 ▼21.07
Media Library /wp-admin/upload.php3.23 ▲0.0037.28 ▲2.57

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Enable Automatic Update for All Plugins
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.64 ▼0.661.74 ▼0.4343.79 ▼0.64
Dashboard /wp-admin2,209 ▲216.07 ▲1.22104.71 ▼15.4539.76 ▼6.19
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0535.42 ▼1.6934.10 ▲0.36
Add New Post /wp-admin/post-new.php1,537 ▲2323.43 ▲5.77687.18 ▼3.2359.89 ▲8.73
Media Library /wp-admin/upload.php1,391 ▼04.26 ▼0.01105.97 ▲4.6943.98 ▼1.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were found

enable-automatic-update-for-all-plugins/wp-enable-auto-update-plugin.php 92% from 13 tests

The primary PHP file in "Enable Automatic Update for All Plugins" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("enable-automatic-update-for-all-plugins.php" instead of "wp-enable-auto-update-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1193

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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 files were detected