10% hxload-player

Code Review | HxLoadPlayer

WordPress plugin HxLoadPlayer scored10%from 54 tests.

About plugin

  • Plugin page: hxload-player
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2018
  • Latest release: Jul 20, 2020
  • Number of updates: 39
  • Update frequency: every 17.3 days
  • Top authors: aoonn29 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,395 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
Please fix the following installer errors
  • The plugin did not install without errors
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)

Server metrics [RAM: ▼1.84MB] [CPU: ▼51.84ms] Passed 4 tests

A check of server-side resources used by HxLoadPlayer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.315.20 ▼33.22
Dashboard /wp-admin2.17 ▼1.1311.02 ▼43.16
Posts /wp-admin/edit.php2.17 ▼1.196.30 ▼37.91
Add New Post /wp-admin/post-new.php2.17 ▼3.726.48 ▼93.08
Media Library /wp-admin/upload.php2.17 ▼1.066.43 ▼27.39

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for HxLoadPlayer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.33 ▼0.921.72 ▲0.0444.37 ▼3.40
Dashboard /wp-admin2,225 ▲404.87 ▼0.0597.51 ▼11.4342.22 ▼0.59
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0640.98 ▲3.9634.70 ▲3.09
Add New Post /wp-admin/post-new.php1,546 ▲1323.28 ▲0.31688.13 ▲93.9045.28 ▼10.35
Media Library /wp-admin/upload.php1,407 ▲254.17 ▼0.0695.35 ▼4.3844.80 ▲1.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: Empty name given. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hxload-player/hxloadplayer.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
10 plugin tags: fembed, gounlimited, clipwatching, hxload player, google drive...

hxload-player/hxloadplayer.php 92% from 13 tests

"HxLoadPlayer" version 1.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hxload-player.php" instead of "hxloadplayer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected196 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12614196

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin