Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▼0.52MB] [CPU: ▼14.75ms] Passed 4 tests
Server-side resources used by YouTube Simple Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.10 ▲0.03 |
Dashboard /wp-admin | 3.47 ▲0.17 | 48.88 ▼1.16 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 54.77 ▲6.32 |
Add New Post /wp-admin/post-new.php | 3.32 ▼2.57 | 38.98 ▼61.11 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.53 ▲3.25 |
Add New /wp-admin/post-new.php?post_type=youtube-gallery | 3.31 | 37.96 |
YSG Settings /wp-admin/themes.php?page=ysg_settings | 3.34 | 36.55 |
Videos /wp-admin/edit.php?post_type=youtube-gallery | 3.42 | 41.86 |
Categories /wp-admin/edit-tags.php?taxonomy=youtube-videos&post_type=youtube-gallery | 3.48 | 40.16 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_ysg_widget |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for YouTube Simple Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲232 | 14.10 ▼0.32 | 5.80 ▲4.01 | 40.94 ▼2.16 |
Dashboard /wp-admin | 2,253 ▲65 | 5.85 ▼0.17 | 95.78 ▼20.46 | 39.30 ▼5.16 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.03 ▲0.03 | 41.01 ▲3.48 | 35.44 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,559 ▲40 | 18.40 ▼4.77 | 603.18 ▼47.80 | 51.50 ▼1.99 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 4.31 ▲0.11 | 97.93 ▲2.05 | 42.56 ▲2.89 |
Add New /wp-admin/post-new.php?post_type=youtube-gallery | 1,959 | 3.85 | 61.86 | 58.71 |
YSG Settings /wp-admin/themes.php?page=ysg_settings | 950 | 2.10 | 28.45 | 36.35 |
Videos /wp-admin/edit.php?post_type=youtube-gallery | 1,095 | 1.99 | 32.41 | 36.26 |
Categories /wp-admin/edit-tags.php?taxonomy=youtube-videos&post_type=youtube-gallery | 1,315 | 2.19 | 27.86 | 29.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_ysg_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=youtube-gallery
- > Notice in wp-content/plugins/youtube-simple-gallery/custom-post-youtube-gallery.php+149
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/post-new.php?post_type=youtube-gallery
- > Notice in wp-content/plugins/youtube-simple-gallery/custom-post-youtube-gallery.php+141
Undefined index: valor_url
- > GET request to /wp-admin/post-new.php?post_type=youtube-gallery
- > Notice in wp-content/plugins/youtube-simple-gallery/custom-post-youtube-gallery.php+146
Undefined index: radio_similiar
- > GET request to /wp-admin/post-new.php?post_type=youtube-gallery
- > Notice in wp-content/plugins/youtube-simple-gallery/custom-post-youtube-gallery.php+147
Undefined index: radio_controles
- > GET request to /wp-admin/post-new.php?post_type=youtube-gallery
- > Notice in wp-content/plugins/youtube-simple-gallery/custom-post-youtube-gallery.php+148
Undefined index: radio_title
- > GET request to /wp-admin/post-new.php?post_type=youtube-gallery
- > Notice in wp-content/plugins/youtube-simple-gallery/custom-post-youtube-gallery.php+149
Undefined index: valor_desc
- > GET request to /wp-admin/themes.php?page=ysg_settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=ysg_settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/youtube-simple-gallery/admin/tinymce/chrUtube-tinymce-page.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/youtube-simple-gallery/single-youtube-gallery.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-simple-gallery/custom-post-youtube-gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-simple-gallery/custom-taxonomy-youtube-gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/youtube-simple-gallery/youtube-simple-gallery.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/youtube-simple-gallery/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/youtube-simple-gallery/content-list-gallery.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Side Tab Video), #2 (Listing page Videos), #3 (Registration Page Video), #4 (Page with the shortcode to the gallery creation), #5 (Box configuration shortcode), #6 (Setup screen plugin), #7 (Widget), #8 (Display page videos), #9 (Widget view the videos), #10 (Single Video Page)
youtube-simple-gallery/youtube-simple-gallery.php Passed 13 tests
"YouTube Simple Gallery" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
114 characters long description:
YouTube Simple Gallery is a plugin you can create an area for YouTube videos quickly with management by shortcode.
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 plugin1,562 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 99 | 70 | 884 |
PO File | 3 | 311 | 506 | 503 |
CSS | 5 | 36 | 19 | 149 |
JavaScript | 1 | 0 | 0 | 26 |
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.20 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 1.10MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 248.03KB | 71.83KB | ▼ 71.04% |
images/icon-youtube.png | 0.52KB | 0.61KB | 0.00% |
screenshot-7.png | 26.30KB | 9.07KB | ▼ 65.50% |
screenshot-4.png | 51.20KB | 17.28KB | ▼ 66.26% |
screenshot-3.png | 276.24KB | 83.24KB | ▼ 69.87% |