Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.20MB] [CPU: ▼11.90ms] Passed 4 tests
Analyzing server-side resources used by Video Gallery - Vimeo and YouTube Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.45 ▼2.04 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.90 ▼3.04 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 45.64 ▼2.43 |
Add New Post /wp-admin/post-new.php | 4.88 ▼1.00 | 57.60 ▼40.09 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.57 ▲2.67 |
Video Galleries /wp-admin/admin.php?page=video_galleries_origincode_video_gallery | 3.36 | 40.29 |
Advanced Features PRO /wp-admin/admin.php?page=Options_video_gallery_styles | 3.35 | 37.24 |
Lightbox Options /wp-admin/admin.php?page=Options_video_gallery_lightbox_styles | 3.42 | 40.38 |
Server storage [IO: ▲2.35MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 221 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_origincode_videogallery_galleries |
wp_origincode_videoorigincode_gallery_videos |
New WordPress options |
---|
widget_origincode_origincode_gallery_video_widget |
origincode_gallery_video_disable_right_click |
origincode_gallery_video_lightbox_loop_new |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
origincode_gallery_video_lightbox_overlayClose_new |
origincode_gallery_video_lightbox_speed_new |
origincode_gallery_video_lightbox_type |
origincode_gallery_video_lightbox_lightboxView |
... |
Browser metrics Passed 4 tests
Video Gallery - Vimeo and YouTube Gallery: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,305 ▲570 | 13.25 ▼1.12 | 1.83 ▲0.13 | 40.68 ▼1.22 |
Dashboard /wp-admin | 2,686 ▲504 | 4.88 ▼0.98 | 99.86 ▼8.47 | 78.12 ▲37.76 |
Posts /wp-admin/edit.php | 2,570 ▲481 | 1.99 ▼0.02 | 36.08 ▼0.35 | 31.09 ▼0.68 |
Add New Post /wp-admin/post-new.php | 6,911 ▲5,397 | 23.44 ▲5.84 | 901.87 ▲220.28 | 43.07 ▼13.90 |
Media Library /wp-admin/upload.php | 1,869 ▲478 | 4.22 ▼0.11 | 102.77 ▲7.95 | 87.55 ▲44.47 |
Video Galleries /wp-admin/admin.php?page=video_galleries_origincode_video_gallery | 1,607 | 3.29 | 50.54 | 73.72 |
Advanced Features PRO /wp-admin/admin.php?page=Options_video_gallery_styles | 1,772 | 3.21 | 47.28 | 85.19 |
Lightbox Options /wp-admin/admin.php?page=Options_video_gallery_lightbox_styles | 2,196 | 3.26 | 42.60 | 69.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_origincode_videoorigincode_gallery_videos
- wp_origincode_videogallery_galleries
- The uninstall procedure has failed, leaving 13 options in the database
- widget_theysaidso_widget
- origincode_gallery_video_lightbox_overlayClose_new
- origincode_gallery_video_disable_right_click
- origincode_gallery_video_lightbox_speed_new
- origincode_gallery_video_lightbox_type
- origincode_gallery_video_lightbox_lightboxView
- widget_recent-comments
- origincode_gallery_video_lightbox_loop_new
- widget_origincode_origincode_gallery_video_widget
- theysaidso_admin_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function absint() in wp-content/plugins/smart-grid-gallery/templates/front-end/content-popup/content-popup-view.css.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/smart-grid-gallery/templates/front-end/justified/justified-view.css.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/smart-grid-gallery/templates/front-end/blog-style-gallery/blog-style-gallery-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart-grid-gallery/templates/admin/popup-content-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/smart-grid-gallery/templates/front-end/playlist/playlist-view.css.php:8
- > PHP Notice
Undefined variable: has_youtube in wp-content/plugins/smart-grid-gallery/templates/front-end/slider/slider-view.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/smart-grid-gallery/templates/front-end/content-popup/content-popup-view.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function absint() in wp-content/plugins/smart-grid-gallery/templates/front-end/content-slider/content-slider-view.css.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/smart-grid-gallery/templates/front-end/blog-style-gallery/blog-style-gallery-view.css.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function absint() in wp-content/plugins/smart-grid-gallery/templates/front-end/lightbox-gallery/lightbox-gallery-view.css.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: video gallery plugin, wordpress video gallery, video gallery, wp video gallery, youtube gallery
smart-grid-gallery/smart-video-gallery.php 85% from 13 tests
"Video Gallery - Vimeo and YouTube Gallery" version 1.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("smart-grid-gallery.php" instead of "smart-video-gallery.php")
- Domain Path: The domain path folder does not exist ("/languages/")
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
Everything looks great! No dangerous files found in this plugin24,994 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 563 | 564 | 7,870 |
JavaScript | 26 | 979 | 268 | 6,103 |
CSS | 19 | 636 | 172 | 5,949 |
SVG | 1 | 1 | 0 | 2,569 |
Sass | 13 | 23 | 24 | 1,256 |
LESS | 13 | 23 | 33 | 1,247 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 24.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 74 | |
▷ Static methods | 9 | 12.16% |
▷ Public methods | 65 | 87.84% |
▷ Protected methods | 2 | 2.70% |
▷ Private methods | 7 | 9.46% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
85 PNG files occupy 0.41MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/4/border1.png | 1.03KB | 0.82KB | ▼ 20.34% |
assets/images/5/controls.png | 1.99KB | 2.04KB | 0.00% |
assets/images/admin_images/shape-26.png | 0.17KB | 0.17KB | ▼ 0.58% |
assets/images/arrows/arrows.red.circle.png | 3.46KB | 0.51KB | ▼ 85.23% |
assets/images/admin_images/05-bottom-line.png | 0.40KB | 0.53KB | 0.00% |