10% hitboxtv-widget

Code Review | Hitbox.TV Widget

WordPress plugin Hitbox.TV Widget scored 10% from 54 tests.

About plugin

  • Plugin page: hitboxtv-widget
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4
  • WordPress version: 6.3.1
  • First release: Aug 12, 2014
  • Latest release: Dec 14, 2015
  • Number of updates: 25
  • Update frequency: every 19.6 days
  • Top authors: MadMakz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,532 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/hitboxtv-widget/hitboxtv-widget.php+35
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼49.32ms] Passed 4 tests

This is a short check of server-side resources used by Hitbox.TV Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.35 ▼35.17
Dashboard /wp-admin2.05 ▼1.266.19 ▼40.29
Posts /wp-admin/edit.php2.05 ▼1.316.35 ▼37.51
Add New Post /wp-admin/post-new.php2.05 ▼3.845.16 ▼84.30
Media Library /wp-admin/upload.php2.05 ▼1.185.38 ▼25.30
Hitbox.TV Widget /wp-admin/options-general.php?page=sthw-options2.056.08

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 10 new options
New WordPress options
sthw_hide_unknown
db_upgraded
widget_recent-posts
sthw_cache_lifetime
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_st_hitbox_widget
widget_recent-comments
sthw_cache_enable

Browser metrics Passed 4 tests

Hitbox.TV Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.14 ▼1.531.81 ▲0.0440.65 ▼9.93
Dashboard /wp-admin2,210 ▲224.86 ▼1.00103.47 ▼15.2737.36 ▼6.71
Posts /wp-admin/edit.php2,090 ▲12.16 ▲0.1336.41 ▲1.3533.57 ▼4.19
Add New Post /wp-admin/post-new.php1,536 ▲2223.19 ▲5.68587.71 ▼91.5652.33 ▼2.27
Media Library /wp-admin/upload.php1,386 ▼54.21 ▲0.0396.42 ▼5.0742.53 ▼0.67
Hitbox.TV Widget /wp-admin/options-general.php?page=sthw-options8162.0622.7627.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/hitboxtv-widget/hitboxtv-widget.php+35
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 10 options
    • sthw_cache_enable
    • widget_theysaidso_widget
    • sthw_hide_unknown
    • widget_recent-posts
    • can_compress_scripts
    • widget_st_hitbox_widget
    • sthw_cache_lifetime
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=sthw-options
    • > Deprecated in wp-content/plugins/hitboxtv-widget/hitboxtv-widget.php+35
    Function create_function() is deprecated

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/hitboxtv-widget/hitboxtv-widget.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hitboxtv-widget/includes/widget.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: live, hitbox, widget, status, shortcode

hitboxtv-widget/hitboxtv-widget.php Passed 13 tests

The main file in "Hitbox.TV Widget" v. 1.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
24 characters long description:
Hitbox.TV status widget.

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
Success! There were no dangerous files found in this plugin418 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP57171347
PO File1141444
CSS18027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin