Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/wp-youtube-video-gallery/index.php+49
Undefined variable: test_db_version
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.41ms] Passed 4 tests
Analyzing server-side resources used by WP Youtube Video Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 41.77 ▼2.97 |
Dashboard /wp-admin | 3.42 ▲0.12 | 50.83 ▲1.67 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 51.18 ▼3.28 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 103.85 ▼1.05 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 49.64 ▲15.17 |
YT Video Gallery /wp-admin/options-general.php?page=wpYouTubeGalleryMainPage | 3.29 | 53.21 |
Server storage [IO: ▲2.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 100 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wp_youtube_gallery |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
test_db_version |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Youtube Video Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 14.21 ▼0.35 | 9.83 ▲8.17 | 39.96 ▼2.41 |
Dashboard /wp-admin | 2,227 ▲47 | 5.84 ▲0.18 | 95.34 ▲7.72 | 43.65 ▲1.40 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.31 ▲0.29 | 40.77 ▲0.34 | 41.33 ▲4.21 |
Add New Post /wp-admin/post-new.php | 1,481 ▼56 | 21.31 ▲3.10 | 1,036.82 ▲373.63 | 65.44 ▲2.78 |
Media Library /wp-admin/upload.php | 1,426 ▲32 | 4.37 ▲0.08 | 161.21 ▲60.70 | 60.55 ▲13.05 |
YT Video Gallery /wp-admin/options-general.php?page=wpYouTubeGalleryMainPage | 1,167 | 2.10 | 45.46 | 49.51 |
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 1 table in the database
- wp_wp_youtube_gallery
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- test_db_version
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wpYouTubeGalleryMainPage
- > Notice in wp-content/plugins/wp-youtube-video-gallery/admin/admin.php+176
Undefined variable: videoTitleNo
- > GET request to /wp-admin/options-general.php?page=wpYouTubeGalleryMainPage
- > Notice in wp-content/plugins/wp-youtube-video-gallery/admin/admin.php+189
Undefined variable: playIconNo
- > GET request to /wp-admin/options-general.php?page=wpYouTubeGalleryMainPage
- > Notice in wp-content/plugins/wp-youtube-video-gallery/admin/admin.php+202
Undefined variable: shortDescNo
- > GET request to /wp-admin/options-general.php?page=wpYouTubeGalleryMainPage
- > Notice in wp-content/plugins/wp-youtube-video-gallery/admin/admin.php+215
Undefined variable: postedTimeNo
- > GET request to /wp-admin/options-general.php?page=wpYouTubeGalleryMainPage
- > Notice in wp-content/plugins/wp-youtube-video-gallery/admin/admin.php+228
Undefined variable: viewsNo
- > GET request to /wp-admin/options-general.php?page=wpYouTubeGalleryMainPage
- > Notice in wp-content/plugins/wp-youtube-video-gallery/admin/admin.php+241
Undefined variable: likesNo
- > GET request to /wp-admin/options-general.php?page=wpYouTubeGalleryMainPage
- > Notice in wp-content/plugins/wp-youtube-video-gallery/admin/admin.php+254
Undefined variable: commentsNo
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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-youtube-video-gallery/admin/admin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-youtube-video-gallery/popup/videoPopup.php:14
- > PHP Fatal error
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 96% from 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
3 plugin tags: video gallery, youtube gallery, youtube channel gallery
wp-youtube-video-gallery/index.php 92% from 13 tests
The primary PHP file in "WP Youtube Video Gallery" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-youtube-video-gallery.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected16,494 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 65 | 44 | 5,384 |
SVG | 8 | 0 | 3 | 3,491 |
Sass | 16 | 38 | 37 | 3,238 |
LESS | 16 | 38 | 49 | 3,226 |
PHP | 3 | 73 | 49 | 828 |
JavaScript | 3 | 49 | 42 | 327 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
10 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sale.png | 16.24KB | 6.06KB | ▼ 62.66% |
admin/images/count7/img.png | 14.06KB | 8.68KB | ▼ 38.27% |
admin/images/count2/btn-like.png | 8.10KB | 4.52KB | ▼ 44.24% |
admin/images/count3/btns.png | 11.19KB | 5.21KB | ▼ 53.45% |
admin/images/count21/back1.png | 9.14KB | 4.94KB | ▼ 45.88% |