84% hotfix

Code Review | Hotfix

WordPress plugin Hotfix scored84%from 54 tests.

About plugin

  • Plugin page: hotfix
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.1
  • WordPress version: 6.3.1
  • First release: Feb 8, 2011
  • Latest release: Feb 21, 2019
  • Number of updates: 63
  • Update frequency: every 46.6 days
  • Top authors: markjaquith (77.78%)nacin (19.05%)peterwilsoncc (4.76%)Otto42 (3.17%)

Code review

54 tests

User reviews

18 reviews

Install metrics

6,000+ active /426,041 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Hotfix
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.74 ▼6.92
Dashboard /wp-admin3.31 ▼0.0449.70 ▼14.48
Posts /wp-admin/edit.php3.36 ▲0.0053.12 ▲2.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.87 ▼9.82
Media Library /wp-admin/upload.php3.23 ▲0.0034.78 ▼5.99

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
hotfix_version
can_compress_scripts

Browser metrics Passed 4 tests

Hotfix: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.28 ▼0.974.43 ▲2.4543.34 ▲0.72
Dashboard /wp-admin2,221 ▲184.82 ▼0.09110.80 ▼4.1738.91 ▼3.10
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0136.26 ▼0.2435.95 ▲1.61
Add New Post /wp-admin/post-new.php1,526 ▼2317.75 ▼5.48674.81 ▼1.3858.89 ▼0.30
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.09106.84 ▼9.1542.59 ▼4.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hotfix/hotfix.php:15

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: update, hotfix, bugs, wordpress

hotfix/hotfix.php Passed 13 tests

The main PHP file in "Hotfix" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
136 characters long description:
Provides "hotfixes" for selected WordPress bugs, so you don't have to wait for the next WordPress core release. Keep the plugin updated!

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
Success! There were no dangerous files found in this plugin807 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2168320631
JavaScript255161176

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity30.75
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity8.44
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods425.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
There were not PNG files found in your plugin