84% available-updates

Code Review | Available Updates

WordPress plugin Available Updates scored84%from 54 tests.

About plugin

  • Plugin page: available-updates
  • Plugin version: 1.3.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2018
  • Latest release: Nov 9, 2023
  • Number of updates: 58
  • Update frequency: every 31.0 days
  • Top authors: pbmacintyre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,291 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.21ms] Passed 4 tests

This is a short check of server-side resources used by Available Updates
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.95 ▼1.81
Dashboard /wp-admin3.32 ▲0.0146.91 ▼0.06
Posts /wp-admin/edit.php3.37 ▲0.0146.48 ▼2.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.32 ▼15.91
Media Library /wp-admin/upload.php3.24 ▲0.0133.96 ▼0.44
Available Updates /wp-admin/plugins.php?plugin_status=upgrade3.5638.83

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Available Updates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,950 ▼83710.67 ▼3.641.71 ▼0.2342.45 ▼0.32
Dashboard /wp-admin2,193 ▲195.55 ▼0.11112.63 ▲23.1045.45 ▲1.38
Posts /wp-admin/edit.php2,101 ▲11.95 ▲0.0134.68 ▼5.8631.89 ▼7.48
Add New Post /wp-admin/post-new.php1,534 ▲822.88 ▲0.12684.77 ▲92.0738.70 ▼7.26
Media Library /wp-admin/upload.php1,401 ▲14.28 ▲0.04107.62 ▲4.9845.98 ▲3.65
Available Updates /wp-admin/plugins.php?plugin_status=upgrade1,3451.9338.0632.16

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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 | 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/available-updates/available-updates.php:48

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: plugin updates

available-updates/available-updates.php Passed 13 tests

The main PHP script in "Available Updates" version 1.3.9 is automatically included on every request by WordPress
115 characters long description:
Plugin to add a simple menu item under the Plugins menu to take the admin user directly to the update plugins page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132931

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin