90% wp-responsive-video-gallery

Code Review | Video Gallery

WordPress plugin Video Gallery scored90%from 54 tests.

About plugin

  • Plugin page: wp-responsive-vid...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7.4
  • WordPress version: 6.3.1
  • First release: May 10, 2017
  • Latest release: May 10, 2017
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: pluginspoint (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /700 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.01ms] Passed 4 tests

Analyzing server-side resources used by Video Gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1440.06 ▼1.35
Dashboard /wp-admin3.43 ▲0.1347.90 ▼0.47
Posts /wp-admin/edit.php3.48 ▲0.1349.08 ▼2.20
Add New Post /wp-admin/post-new.php6.04 ▲0.1587.38 ▼12.03
Media Library /wp-admin/upload.php3.35 ▲0.1339.02 ▲4.02
All Video Gallery /wp-admin/edit.php?post_type=wpsvgallery3.4037.01
Add Video Gallery /wp-admin/post-new.php?post_type=wpsvgallery3.3942.84

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,982 ▲22513.79 ▼0.656.08 ▲3.7636.01 ▼7.32
Dashboard /wp-admin2,256 ▲685.05 ▲0.18110.14 ▲11.0070.03 ▲24.62
Posts /wp-admin/edit.php2,139 ▲502.11 ▲0.0640.75 ▲3.0345.79 ▲11.94
Add New Post /wp-admin/post-new.php1,552 ▲3823.48 ▲5.89647.15 ▲4.5241.06 ▼7.34
Media Library /wp-admin/upload.php1,435 ▲474.29 ▲0.16100.13 ▼0.5549.95 ▲4.72
All Video Gallery /wp-admin/edit.php?post_type=wpsvgallery1,1252.0639.7040.29
Add Video Gallery /wp-admin/post-new.php?post_type=wpsvgallery3,3342.7755.6151.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 errors were detected

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
3 plugin tags: video gallery, gallery, video

wp-responsive-video-gallery/wp-responsive-video-gallery.php 92% from 13 tests

This is the main PHP file of "Video Gallery" version 1.0, 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:
  • Description: Keep the plugin description shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,476 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43582041,505
PHP511849604
CSS32029367

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.43
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/dailyMotion.png4.84KB3.11KB▼ 35.78%
assets/images/youtube.png3.54KB1.91KB▼ 46.01%
assets/images/vimeo.png5.26KB2.84KB▼ 45.99%