10% haxhitsplayer

Code Review | HaxhitsPlayer

WordPress plugin HaxhitsPlayer scored10%from 54 tests.

About plugin

  • Plugin page: haxhitsplayer
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 12, 2017
  • Latest release: Sep 12, 2018
  • Number of updates: 44
  • Update frequency: every 9.0 days
  • Top authors: aoonn29 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,203 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure had 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.90MB] [CPU: ▼56.60ms] Passed 4 tests

Server-side resources used by HaxhitsPlayer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.89 ▼39.71
Dashboard /wp-admin2.11 ▼1.197.06 ▼48.55
Posts /wp-admin/edit.php2.12 ▼1.258.59 ▼46.02
Add New Post /wp-admin/post-new.php2.11 ▼3.787.25 ▼92.10
Media Library /wp-admin/upload.php2.11 ▼1.126.16 ▼32.78

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for HaxhitsPlayer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.69 ▲0.081.91 ▼0.3945.04 ▲2.40
Dashboard /wp-admin2,211 ▲315.56 ▼0.0589.00 ▼5.4839.34 ▼0.04
Posts /wp-admin/edit.php2,116 ▲161.98 ▼0.0436.21 ▼8.6138.15 ▼1.44
Add New Post /wp-admin/post-new.php1,539 ▲1123.21 ▲0.00646.75 ▼38.5246.90 ▼4.12
Media Library /wp-admin/upload.php1,416 ▲134.19 ▼0.08100.65 ▲2.2244.59 ▼1.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught 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.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 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/haxhitsplayer/haxhitsplayer.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (https://haxhits.com/assets/images/hplayer1.jpg), #2 (https://haxhits.com/assets/images/hplayer2.jpg)
The official readme.txt might help

haxhitsplayer/haxhitsplayer.php Passed 13 tests

This is the main PHP file of "HaxhitsPlayer" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
88 characters long description:
Plugin to get direct link google drive, mp4upload, xvideos, rapidvideo to haxhits player

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected172 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1229172

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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