74% video-grid

Code Review | Video Grid

WordPress plugin Video Grid scored 74% from 54 tests.

About plugin

  • Plugin page: video-grid
  • Plugin version: 1.23
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 26, 2015
  • Latest release: Sep 14, 2023
  • Number of updates: 42
  • Update frequency: every 70.0 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active / 54,524 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.75ms] Passed 4 tests

An overview of server-side resources used by Video Grid
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.79 ▲1.89
Dashboard /wp-admin3.35 ▲0.0546.39 ▼2.42
Posts /wp-admin/edit.php3.40 ▲0.0448.49 ▲2.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.06 ▼13.32
Media Library /wp-admin/upload.php3.27 ▲0.0436.31 ▲3.33
Preview Gallery /wp-admin/admin.php?page=video_grid_with_lightbox_video_preview3.2737.41
Manage Videos /wp-admin/admin.php?page=video_grid_with_lightbox_video_management3.2739.02
Gallery Settings /wp-admin/admin.php?page=video_grid_with_lightbox3.2736.39

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: 1 new table, 8 new options
New tables
wp_responsive_video_grid
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
responsive_video_grid_messages
theysaidso_admin_options
responsive_video_grid_settings
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Video Grid
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.28 ▼1.331.68 ▼0.1743.51 ▲0.20
Dashboard /wp-admin2,234 ▲435.81 ▲0.9495.69 ▼6.9938.67 ▼0.47
Posts /wp-admin/edit.php2,117 ▲252.05 ▲0.0634.72 ▼0.9535.35 ▲3.81
Add New Post /wp-admin/post-new.php1,559 ▲4523.29 ▲5.68616.10 ▼65.8362.07 ▼8.18
Media Library /wp-admin/upload.php1,419 ▲314.21 ▼0.0494.52 ▼14.1141.23 ▼4.00
Preview Gallery /wp-admin/admin.php?page=video_grid_with_lightbox_video_preview1,1043.3443.0924.99
Manage Videos /wp-admin/admin.php?page=video_grid_with_lightbox_video_management1,2963.3742.9365.67
Gallery Settings /wp-admin/admin.php?page=video_grid_with_lightbox1,3994.8698.0274.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_responsive_video_grid
  • Zombie WordPress options were found after uninstall: 8 options
    • responsive_video_grid_settings
    • responsive_video_grid_messages
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/video-grid/wp-video-grid.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: wordpress video grid lightbox, responsive video grid, wordpress metacafe grid, wordpress youtube grid, wordpress lightbox video gallery...

video-grid/wp-video-grid.php 92% from 13 tests

The main file in "Video Grid" v. 1.23 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("video-grid.php" instead of "wp-video-grid.php")

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
No dangerous file extensions were detected3,325 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1652771,976
JavaScript337849998
CSS34826351

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions23
▷ Named functions2295.65%
▷ Anonymous functions14.35%
Constants0
▷ Global constants00.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
23 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/vl-box/playico.png1.35KB1.32KB▼ 2.10%
images/300x250-wp-eng.png34.77KB13.75KB▼ 60.46%
images/g-suite-promo-code-4.png59.03KB17.19KB▼ 70.88%
images/prev.png1.33KB1.59KB0.00%
images/desc.png0.16KB0.12KB▼ 23.31%