83% fix-update-in-process

Code Review | Fix Another update is currently in progress

WordPress plugin Fix Another update is currently in progress scored83%from 54 tests.

About plugin

  • Plugin page: fix-update-in-pro...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4
  • WordPress version: 6.3.1
  • First release: Jun 2, 2020
  • Latest release: Jul 23, 2020
  • Number of updates: 5
  • Update frequency: every 10.2 days
  • Top authors: Mahesh901122 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.01ms] Passed 4 tests

Server-side resources used by Fix Another update is currently in progress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.08 ▲6.04
Dashboard /wp-admin3.34 ▲0.0351.55 ▼5.51
Posts /wp-admin/edit.php3.39 ▲0.0350.41 ▲1.72
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.17 ▼12.88
Media Library /wp-admin/upload.php3.26 ▲0.0336.32 ▼3.36
Fix Update in Process /wp-admin/tools.php?page=fix-update-in-process3.2332.84

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fix Another update is currently in progress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.13 ▼0.262.22 ▲0.1539.22 ▼5.75
Dashboard /wp-admin2,199 ▲255.61 ▼0.0384.73 ▼3.9345.74 ▲0.46
Posts /wp-admin/edit.php2,104 ▲72.01 ▼0.0334.86 ▼2.7634.84 ▼1.55
Add New Post /wp-admin/post-new.php1,548 ▲1723.07 ▼0.19701.24 ▲16.4564.94 ▲3.50
Media Library /wp-admin/upload.php1,401 ▲14.29 ▲0.07107.46 ▼9.6247.38 ▼0.05
Fix Update in Process /wp-admin/tools.php?page=fix-update-in-process8282.0728.6830.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/fix-update-in-process/fix-update-in-progress.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fix-update-in-process/classes/class-fix-update-in-process.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: Please take inspiration from this readme.txt

fix-update-in-process/fix-update-in-progress.php 85% from 13 tests

The principal PHP file in "Fix Another update is currently in progress" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fix-update-in-process.php" instead of "fix-update-in-progress.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)

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
Good job! No executable or dangerous file extensions detected243 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22885131
JavaScript1354487
CSS15025

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.23
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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