Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.06ms] Passed 4 tests
Server-side resources used by You Video Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.93 ▲0.06 |
Dashboard /wp-admin | 3.40 ▲0.10 | 54.37 ▼0.85 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 48.44 ▼1.81 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.52 ▼17.64 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.11 ▲5.04 |
Video Gallery Plugin /wp-admin/options-general.php?page=youtube-video-gallery-plugin | 3.29 | 33.64 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by You Video Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.29 ▼0.07 | 3.18 ▲1.39 | 44.55 ▲6.02 |
Dashboard /wp-admin | 2,201 ▲27 | 5.59 ▲0.01 | 96.68 ▲7.95 | 42.57 ▲4.14 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▼0.03 | 38.42 ▲2.09 | 30.40 ▼6.34 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 22.88 ▼0.28 | 648.04 ▼1.92 | 59.82 ▼6.38 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.13 ▼0.10 | 101.55 ▲4.46 | 43.61 ▼1.85 |
Video Gallery Plugin /wp-admin/options-general.php?page=youtube-video-gallery-plugin | 1,071 | 2.03 | 26.98 | 46.63 |
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 were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/you-video-gallery/includes/help.php
- > /wp-content/plugins/you-video-gallery/admin/partials/plugin-name-admin-display.php
- > /wp-content/plugins/you-video-gallery/public/partials/video-gallery-plugin-public-display.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/you-video-gallery/includes/class-tgm-plugin-activation.php:2016
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/you-video-gallery/includes/easy-blocks.php:9
- > PHP Warning
Use of undefined constant VIDEO_GALLERY_PLUGIN_DIR - assumed 'VIDEO_GALLERY_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/you-video-gallery/includes/help.php on line 63
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/you-video-gallery/includes/easy-blocks.php on line 8
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/you-video-gallery/includes/help.php on line 1
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/you-video-gallery/includes/help.php on line 52
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/you-video-gallery/includes/help.php on line 49
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/you-video-gallery/includes/easy-blocks.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/you-video-gallery/public/class-video-gallery-plugin-public.php:120
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/you-video-gallery/includes/easy-blocks.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Post Shortcode Preview), #2 (Admin Shortcodes), #3 (Output Preview Video)
you-video-gallery/video-gallery-plugin.php 85% from 13 tests
The main PHP script in "You Video Gallery" version 1.0.5.1 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("you-video-gallery.php" instead of "video-gallery-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,916 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 729 | 2,125 | 2,231 |
JavaScript | 5 | 137 | 82 | 431 |
CSS | 3 | 33 | 136 | 254 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 25.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 7 | 5.11% |
▷ Public methods | 109 | 79.56% |
▷ Protected methods | 23 | 16.79% |
▷ Private methods | 5 | 3.65% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.91MB with 0.91MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) public/css/preload-circle.png | 26.39KB | 0.00KB | ▼ 100.00% |
(invalid) public/css/preload-quads.png | 12.33KB | 0.00KB | ▼ 100.00% |
(invalid) public/css/preload-dots.png | 20.62KB | 0.00KB | ▼ 100.00% |
(invalid) public/css/preload-ios.png | 47.94KB | 0.00KB | ▼ 100.00% |
(invalid) admin/image/playlist_id.png | 50.95KB | 0.00KB | ▼ 100.00% |