78% background-update-tester

Code Review | Background Update Tester

WordPress plugin Background Update Tester scored78%from 54 tests.

About plugin

  • Plugin page: background-update...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.1
  • WordPress version: 6.3.1
  • First release: Oct 26, 2013
  • Latest release: Nov 10, 2014
  • Number of updates: 15
  • Update frequency: every 114.7 days
  • Top authors: nacin (93.33%)Otto42 (13.33%)

Code review

54 tests

User reviews

17 reviews

Install metrics

2,000+ active /36,048 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.94ms] Passed 4 tests

This is a short check of server-side resources used by Background Update Tester
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.75 ▼4.87
Dashboard /wp-admin3.36 ▲0.0648.36 ▼1.67
Posts /wp-admin/edit.php3.41 ▲0.0551.64 ▲2.64
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.62 ▼20.81
Media Library /wp-admin/upload.php3.29 ▲0.0536.98 ▼0.41
Update Tester /wp-admin/index.php?page=background-updates-debugger3.2433.03

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Background Update Tester
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.19 ▼0.092.03 ▼0.1144.81 ▼0.69
Dashboard /wp-admin2,202 ▲345.61 ▲0.0986.35 ▼7.5940.93 ▼3.95
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0234.14 ▼5.9331.68 ▼6.22
Add New Post /wp-admin/post-new.php1,538 ▲1018.08 ▼5.40650.50 ▲11.8875.22 ▲21.61
Media Library /wp-admin/upload.php1,407 ▲134.16 ▲0.02103.49 ▲0.9143.31 ▲0.87
Update Tester /wp-admin/index.php?page=background-updates-debugger8251.9922.7230.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/index.php?page=background-updates-debugger
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/index.php?page=background-updates-debugger
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/background-update-tester/background-update-tester.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
6 plugin tags: debug, tester, background updates, developer, automatic updates...

background-update-tester/background-update-tester.php 92% from 13 tests

The entry point to "Background Update Tester" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 150 characters long)

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 detected296 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15818296

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin