10% simple-video-gallery

Code Review | Simple Video Gallery

WordPress plugin Simple Video Gallery scored10%from 54 tests.

About plugin

  • Plugin page: simple-video-gallery
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2013
  • Latest release: Nov 17, 2013
  • Number of updates: 5
  • Update frequency: every 48.2 days
  • Top authors: mch0lic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /4,724 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/simple-video-gallery/simple-video-gallery.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; SimpleVideoGalleryPlugin has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼54.80ms] Passed 4 tests

This is a short check of server-side resources used by Simple Video Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.295.87 ▼34.20
Dashboard /wp-admin2.19 ▼1.126.54 ▼45.00
Posts /wp-admin/edit.php2.19 ▼1.176.08 ▼46.17
Add New Post /wp-admin/post-new.php2.19 ▼3.705.81 ▼93.81
Media Library /wp-admin/upload.php2.19 ▼1.046.69 ▼28.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: 2 new tables, 7 new options
New tables
wp_svg_playlist
wp_svg_video
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
simplevideogallery_version
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Simple Video Gallery: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.78 ▲0.412.13 ▲0.1343.81 ▲2.06
Dashboard /wp-admin2,206 ▲295.67 ▲0.0895.64 ▲0.4643.12 ▼2.07
Posts /wp-admin/edit.php2,121 ▲212.05 ▲0.0540.06 ▲2.4935.67 ▼1.88
Add New Post /wp-admin/post-new.php1,555 ▲2923.30 ▲5.37636.46 ▼5.0353.95 ▲4.30
Media Library /wp-admin/upload.php1,421 ▲214.24 ▲0.0597.05 ▼1.3344.73 ▲3.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/simple-video-gallery/simple-video-gallery.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; SimpleVideoGalleryPlugin has a deprecated constructor
  • Zombie tables were found after uninstall: 2 tables
    • wp_svg_video
    • wp_svg_playlist
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • simplevideogallery_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: posts, post, video, page, admin...

simple-video-gallery/simple-video-gallery.php Passed 13 tests

The principal PHP file in "Simple Video Gallery" v. 1.0.1 is loaded by WordPress automatically on each request
42 characters long description:
Simple video gallery plugin for your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,733 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP6201581,092
PO File3258393577
CSS24022
JavaScript11021
SQL14021

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.32
Average class complexity25.00
▷ Minimum class complexity7.00
▷ Maximum class complexity49.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods60
▷ Static methods00.00%
▷ Public methods60100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected