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.85MB] [CPU: ▼3.94ms] Passed 4 tests
An overview of server-side resources used by Video Gallery - Best WordPress YouTube Gallery Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 40.59 ▼19.55 |
Dashboard /wp-admin | 4.25 ▲0.95 | 50.03 ▲2.32 |
Posts /wp-admin/edit.php | 4.31 ▲0.95 | 51.41 ▲2.21 |
Add New Post /wp-admin/post-new.php | 6.79 ▲0.91 | 87.58 ▼0.72 |
Media Library /wp-admin/upload.php | 4.11 ▲0.88 | 42.57 ▲12.21 |
Add Gallery /wp-admin/admin.php?page=tsvg-builder | 5.77 | 42.69 |
All Galleries /wp-admin/admin.php?page=tsvg-admin | 4.09 | 38.17 |
Server storage [IO: ▲4.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 171 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_ts_galleryv_videos |
wp_ts_galleryv_manager |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_ts_video_gallery_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Video Gallery - Best WordPress YouTube Gallery Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲143 | 13.39 ▼1.29 | 8.47 ▲6.67 | 39.52 ▼4.52 |
Dashboard /wp-admin | 2,210 ▲39 | 5.52 ▲0.01 | 95.33 ▲4.53 | 74.98 ▲35.10 |
Posts /wp-admin/edit.php | 2,162 ▲59 | 2.25 ▲0.27 | 40.67 ▼6.42 | 31.88 ▼10.73 |
Add New Post /wp-admin/post-new.php | 1,580 ▲50 | 23.35 ▲0.29 | 707.54 ▲69.72 | 37.64 ▼21.61 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.12 ▼0.07 | 112.06 ▲6.96 | 69.19 ▲22.87 |
Add Gallery /wp-admin/admin.php?page=tsvg-builder | 1,470 | 3.31 | 58.38 | 90.31 |
All Galleries /wp-admin/admin.php?page=tsvg-admin | 1,173 | 1.63 | 25.24 | 36.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_ts_galleryv_manager
- wp_ts_galleryv_videos
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_ts_video_gallery_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
The following issues need your attention
- 33× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gallery-videos/public/theme_partials/tsvg-elastic-video-gallery.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gallery-videos/public/theme_partials/tsvg-grid-video-gallery.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gallery-videos/public/pagina_partials/tsvg-cp-video-gallery_pagination.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gallery-videos/public/pagina_partials/tsvg-sp-video-gallery_pagination.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gallery-videos/public/pagina_partials/tsvg-cl-video-gallery_pagination.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gallery-videos/public/pagina_partials/tsvg-lb-video-gallery_pagination.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gallery-videos/public/popup_partials/tsvg-gr-video-gallery_popup.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gallery-videos/public/pagina_partials/tsvg-th-video-gallery_pagination.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gallery-videos/public/popup_partials/tsvg-cp-video-gallery_popup.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gallery-videos/public/popup_partials/tsvg-el-video-gallery_popup.php:3
- > PHP Fatal error
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 96% from 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
5 plugin tags: wordpress gallery plugin, image gallery, gallery, video gallery, photo gallery
gallery-videos/index.php 92% from 13 tests
The entry point to "Video Gallery - Best WordPress YouTube Gallery Plugin" version 2.1.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gallery-videos.php" instead of "index.php")
Code Analysis 97% from 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 plugin52,690 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 12 | 842 | 34,127 |
CSS | 12 | 0 | 66 | 10,482 |
JavaScript | 16 | 0 | 356 | 7,776 |
SVG | 8 | 0 | 0 | 305 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 101)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 33.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 4.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 101.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 8 | 11.27% |
▷ Public methods | 65 | 91.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.45% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
75 PNG files occupy 1.45MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/fancy_gallery.png | 61.90KB | 17.57KB | ▼ 71.62% |
public/Images/HTML5Player/lightbox-navcontrol.png | 0.18KB | 0.11KB | ▼ 40.44% |
public/Images/HTML5Player/html5boxplayer_playpause.png | 1.18KB | 1.11KB | ▼ 6.02% |
admin/img/elastic-gallery.png | 64.98KB | 17.69KB | ▼ 72.78% |
public/Images/HTML5Player/html5boxplayer_playvideo.png | 1.71KB | 1.29KB | ▼ 24.46% |