83% hola-free-video-player

Code Review | Hola Free Video Player

WordPress plugin Hola Free Video Player scored 83% from 54 tests.

About plugin

  • Plugin page: hola-free-video-p...
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2016
  • Latest release: Sep 13, 2017
  • Number of updates: 48
  • Update frequency: every 5.1 days
  • Top authors: holanetworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 10,668 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.13MB] [CPU: ▼0.80ms] Passed 4 tests

Analyzing server-side resources used by Hola Free Video Player
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1145.26 ▲1.92
Dashboard /wp-admin3.48 ▲0.1757.96 ▲1.39
Posts /wp-admin/edit.php3.56 ▲0.2069.25 ▲18.32
Add New Post /wp-admin/post-new.php6.03 ▲0.1394.39 ▼7.35
Media Library /wp-admin/upload.php3.35 ▲0.1137.91 ▲0.83

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
hvp-cdn-customerid
widget_recent-comments
widget_hvp-widget
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Hola Free Video Player
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲17215.32 ▲2.021.79 ▼0.1441.36 ▼3.91
Dashboard /wp-admin2,370 ▲1646.73 ▲1.85149.07 ▲40.8043.58 ▲2.03
Posts /wp-admin/edit.php2,273 ▲1813.68 ▲1.6357.90 ▲16.3332.01 ▼2.60
Add New Post /wp-admin/post-new.php1,735 ▲19318.62 ▲0.31595.35 ▼17.1935.94 ▼13.69
Media Library /wp-admin/upload.php1,413 ▲344.37 ▲0.0086.11 ▼19.5439.57 ▼5.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • hvp-cdn-customerid
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_hvp-widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hola-free-video-player/free-video-player.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need your attention: Please take inspiration from this readme.txt

hola-free-video-player/free-video-player.php 85% from 13 tests

This is the main PHP file of "Hola Free Video Player" version 1.3.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hola-free-video-player.php" instead of "free-video-player.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,188 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript52601381,181
PHP11127251662
CSS105309
SVG60036

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.20
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants9
▷ Global constants9100.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
6 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png8.07KB3.61KB▼ 55.25%
assets/screenshot-4.png97.09KB49.63KB▼ 48.88%
assets/screenshot-3.png16.56KB9.54KB▼ 42.42%
assets/icon-256x256.png16.73KB6.73KB▼ 59.80%
assets/screenshot-1.png61.01KB34.11KB▼ 44.08%