84% background-updates-for-major-releases

Code Review | Background Updates for Major Releases

WordPress plugin Background Updates for Major Releases scored84%from 54 tests.

About plugin

  • Plugin page: background-update...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.7
  • WordPress version: 6.3.1
  • First release: Oct 25, 2013
  • Latest release: Oct 26, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: aaroncampbell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,446 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.01MB] [CPU: ▼5.84ms] Passed 4 tests

An overview of server-side resources used by Background Updates for Major Releases
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.14 ▼6.11
Dashboard /wp-admin3.31 ▼0.0450.22 ▼17.50
Posts /wp-admin/edit.php3.36 ▲0.0053.94 ▲3.32
Add New Post /wp-admin/post-new.php5.89 ▲0.00108.90 ▲6.22
Media Library /wp-admin/upload.php3.23 ▲0.0036.41 ▼3.07

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Background Updates for Major Releases: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.092.00 ▲0.1841.88 ▼3.20
Dashboard /wp-admin2,192 ▲125.64 ▼0.07109.79 ▲13.2044.86 ▲5.21
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0541.17 ▲3.8735.97 ▲2.40
Add New Post /wp-admin/post-new.php1,526 ▼223.72 ▲0.78593.99 ▼90.1651.58 ▼4.99
Media Library /wp-admin/upload.php1,403 ▲34.27 ▲0.0794.30 ▼14.3741.88 ▼3.68

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/background-updates-for-major-releases/background-updates-for-major-releases.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 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
2 plugin tags: automatic updates, updates

background-updates-for-major-releases/background-updates-for-major-releases.php Passed 13 tests

The primary PHP file in "Background Updates for Major Releases" version 1.0.0 is used by WordPress to initiate all plugin functionality
45 characters long description:
Enables background updates for major releases

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
Success! There were no dangerous files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1192

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin