10% vimeo-channel-gallery

Code Review | Vimeo Channel Gallery

WordPress plugin Vimeo Channel Gallery scored 10% from 54 tests.

About plugin

  • Plugin page: vimeo-channel-gal...
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5
  • WordPress version: 5.9.2
  • First release: Sep 16, 2012
  • Latest release: Jan 15, 2013
  • Number of updates: 19
  • Update frequency: every 6.4 days
  • Top authors: javitxu123 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 16,606 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/vimeo-channel-gallery/vimeo-channel-gallery.php+361
    Function create_function() is deprecated

Server metrics [RAM: ▼2.39MB] [CPU: ▼354.74ms] Passed 4 tests

Analyzing server-side resources used by Vimeo Channel Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.98 ▼1.544.48 ▼55.44
Dashboard /wp-admin1.99 ▼1.414.52 ▼28.43
Posts /wp-admin/edit.php2.00 ▼1.645.17 ▼33.19
Add New Post /wp-admin/post-new.php1.99 ▼4.974.50 ▼1,286.42
Media Library /wp-admin/upload.php1.99 ▼1.304.42 ▼43.91

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
widget_vimeochannelgallery_widget

Browser metrics Passed 4 tests

Vimeo Channel Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2415.70 ▼0.055.73 ▼0.803.23 ▲0.77
Dashboard /wp-admin2,881 ▲236.11 ▼0.13143.79 ▲9.67160.37 ▼6.25
Posts /wp-admin/edit.php2,657 ▼343.24 ▲0.0168.55 ▲1.64140.03 ▼47.01
Add New Post /wp-admin/post-new.php1,690 ▼9420.68 ▲1.37449.06 ▲36.22183.12 ▲10.72
Media Library /wp-admin/upload.php1,698 ▲35.48 ▼0.06143.89 ▼8.62239.81 ▲48.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/vimeo-channel-gallery/vimeo-channel-gallery.php+361
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_vimeochannelgallery_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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vimeo-channel-gallery/vimeo-channel-gallery.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: vimeo, gallery, channel, video, user...

vimeo-channel-gallery/vimeo-channel-gallery.php Passed 13 tests

The primary PHP file in "Vimeo Channel Gallery" version 1.5.3 is used by WordPress to initiate all plugin functionality
67 characters long description:
Show a Vimeo video and a gallery of thumbnails for a Vimeo channel.

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
There were no executable files found in this plugin379 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP17568220
CSS15154
PO File11910154
JavaScript113951

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin