83% huzzaz-video-gallery

Code Review | Video Gallery by Huzzaz

WordPress plugin Video Gallery by Huzzaz scored83%from 54 tests.

About plugin

  • Plugin page: huzzaz-video-gallery
  • Plugin version: 10.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 5, 2013
  • Latest release: Nov 27, 2022
  • Number of updates: 175
  • Update frequency: every 19.3 days
  • Top authors: deshine (100%)

Code review

54 tests

User reviews

44 reviews

Install metrics

1,000+ active /132,696 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.85ms] Passed 4 tests

Analyzing server-side resources used by Video Gallery by Huzzaz
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.62 ▼4.07
Dashboard /wp-admin3.34 ▲0.0347.54 ▼3.98
Posts /wp-admin/edit.php3.39 ▲0.0351.81 ▼1.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.72 ▼13.46
Media Library /wp-admin/upload.php3.26 ▲0.0339.62 ▲3.43

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Video Gallery by Huzzaz
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.012.05 ▲0.3840.57 ▼3.13
Dashboard /wp-admin2,198 ▲205.65 ▲0.0393.24 ▼11.0440.68 ▼3.10
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0041.40 ▼0.2435.10 ▼3.74
Add New Post /wp-admin/post-new.php1,529 ▲322.87 ▼0.44648.16 ▼8.3354.48 ▲1.02
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.0997.06 ▼18.1144.38 ▼2.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/huzzaz-video-gallery/huzzaz.php:97

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

huzzaz-video-gallery/huzzaz.php 85% from 13 tests

The main PHP script in "Video Gallery by Huzzaz" version 10.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("huzzaz-video-gallery.php" instead of "huzzaz.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 313 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172268

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code3.16
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin