Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▲8.17ms] 75% from 4 tests
This is a short check of server-side resources used by Youtube Video Galleries with WP Youtube Gallery Plugin
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 644.82ms on /wp-admin/admin.php?page=gs-youtube-plugins-premium)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 42.15 ▲4.66 |
Dashboard /wp-admin | 3.84 ▲0.53 | 57.15 ▲7.26 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 58.03 ▲11.00 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 98.31 ▲9.74 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 49.16 ▲13.07 |
GS Plugins Lite /wp-admin/admin.php?page=gs-youtube-plugins-lite | 3.94 | 674.91 |
YT Gallery Settings /wp-admin/admin.php?page=youtube-gallery-settings | 3.66 | 38.15 |
GS Plugins Pro /wp-admin/admin.php?page=gs-youtube-plugins-premium | 3.82 | 644.82 |
Help & Usage /wp-admin/admin.php?page=gs-youtube-plugins-help | 3.66 | 37.59 |
Server storage [IO: ▲0.60MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
gs_youtubegalleries_style_settings |
gs_youtubegalleries_settings |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Youtube Video Galleries with WP Youtube Gallery Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲274 | 14.97 ▲0.60 | 1.71 ▼0.41 | 48.27 ▲4.24 |
Dashboard /wp-admin | 2,404 ▲216 | 6.62 ▲0.74 | 129.72 ▲8.66 | 92.98 ▲47.32 |
Posts /wp-admin/edit.php | 2,328 ▲239 | 3.65 ▲1.63 | 54.64 ▲16.00 | 84.91 ▲47.55 |
Add New Post /wp-admin/post-new.php | 1,738 ▲224 | 22.47 ▲4.98 | 625.04 ▼50.09 | 36.75 ▼20.98 |
Media Library /wp-admin/upload.php | 1,458 ▲70 | 4.29 ▲0.10 | 82.39 ▼33.08 | 85.58 ▲36.95 |
GS Plugins Lite /wp-admin/admin.php?page=gs-youtube-plugins-lite | 2,735 | 3.31 | 48.89 | 148.81 |
YT Gallery Settings /wp-admin/admin.php?page=youtube-gallery-settings | 1,621 | 5.55 | 93.16 | 95.72 |
GS Plugins Pro /wp-admin/admin.php?page=gs-youtube-plugins-premium | 2,403 | 3.22 | 52.62 | 60.51 |
Help & Usage /wp-admin/admin.php?page=gs-youtube-plugins-help | 1,145 | 3.18 | 41.15 | 39.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- gs_youtubegalleries_style_settings
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- gs_youtubegalleries_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Almost there! Just fix the following items
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gs-youtube-gallery/gs_youtubegalleries.php:22
- > PHP Fatal error
Uncaught Error: Class 'GS_Youtubegalleries_WeDevs_Settings_API' not found in wp-content/plugins/gs-youtube-gallery/gs-youtubegalleries-files/admin/gs_youtubegalleries_options_config.php:17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/gs-youtube-gallery/gs-youtubegalleries-files/includes/templates/gs_ytgal_theme1_grid.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gs-youtube-gallery/gs-youtubegalleries-files/gs-common-pages/gs-youtube-common-pages.php:3
- > PHP Notice
Undefined variable: gsytgal_json in wp-content/plugins/gs-youtube-gallery/gs-youtubegalleries-files/includes/templates/gs_ytgal_theme1_grid.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-youtube-gallery/gs-youtubegalleries-files/gs_youtubegalleries_scripts.php:17
- > PHP Fatal error
require_once(): Failed opening required 'GSYOUTUBEGALLERIES_FILES_DIR/includes/gs_youtubegalleries_shortcode.php' (include_path='.:/usr/share/php') in wp-content/plugins/gs-youtube-gallery/gs-youtubegalleries-files/includes/gs-youtube-root.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gs-youtube-gallery/gs-youtubegalleries-files/includes/gs_youtubegalleries_shortcode.php:11
- > PHP Warning
Use of undefined constant GSYOUTUBEGALLERIES_FILES_DIR - assumed 'GSYOUTUBEGALLERIES_FILES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gs-youtube-gallery/gs-youtubegalleries-files/includes/gs-youtube-root.php on line 7
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gs-youtube-gallery/gs-youtubegalleries-files/includes/templates/gs_ytgal_theme1_grid.php on line 10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=youtube-gallery-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=youtube-gallery-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: youtube gallery plugin wordpress, youtube plugin, wp youtube gallery plugin, youtube, youtube gallery plugin
gs-youtube-gallery/gs_youtubegalleries.php 77% from 13 tests
The main file in "Youtube Video Galleries with WP Youtube Gallery Plugin" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gs-youtube-gallery.php" instead of "gs_youtubegalleries.php")
- Description: The description should be shorter than 140 characters (currently 394 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,810 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 154 | 25 | 2,208 |
PHP | 11 | 539 | 667 | 2,080 |
Sass | 1 | 101 | 6 | 521 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 32.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 1 | 1.01% |
▷ Public methods | 82 | 82.83% |
▷ Protected methods | 5 | 5.05% |
▷ Private methods | 12 | 12.12% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gs-youtubegalleries-files/assets/css/gs-youtube-icon.png | 0.84KB | 0.80KB | ▼ 4.76% |