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
- The plugin did not install without errors
- > Warning in wp-content/plugins/utubevideo-gallery/src/Service/Maintenance.php+121
copy(http://wp.com/wp-content/plugins/utubevideo-gallery/src/Service/public/img/missing.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Server metrics [RAM: ▼0.40MB] [CPU: ▼13.10ms] Passed 4 tests
An overview of server-side resources used by uTubeVideo Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 41.25 ▼2.41 |
Dashboard /wp-admin | 3.62 ▲0.31 | 57.95 ▲9.78 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 54.47 ▲5.25 |
Add New Post /wp-admin/post-new.php | 3.44 ▼2.45 | 36.99 ▼57.36 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 40.68 ▲2.12 |
Server storage [IO: ▲15.36MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 208 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_utubevideo_dataset |
wp_utubevideo_album |
wp_utubevideo_video |
wp_utubevideo_playlist |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
utubevideo_main_opts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for uTubeVideo Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲254 | 15.70 ▲1.34 | 18.01 ▲16.29 | 39.80 ▼17.47 |
Dashboard /wp-admin | 2,228 ▲40 | 6.53 ▲1.65 | 135.23 ▲27.24 | 44.01 ▲1.10 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 3.39 ▲1.38 | 52.21 ▲12.52 | 37.04 ▲3.10 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.98 ▲0.73 | 631.37 ▼24.99 | 34.35 ▼27.38 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 5.87 ▲1.49 | 128.70 ▲6.45 | 46.62 ▼0.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/utubevideo-gallery/uninstall.php+48
rmdir(wp-content/uploads/utubevideo-cache): Directory not empty
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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 everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/utubevideo-gallery/tests/bootstrap.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dscarberry\\UTubeVideoGallery\\Controller\\API\\APIv1' not found in wp-content/plugins/utubevideo-gallery/src/Controller/API/VimeoPlaylistAPIv1.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/utubevideo-gallery/tests/test-sample.php:11
- > PHP Fatal error
Uncaught Error: Class 'Dscarberry\\UTubeVideoGallery\\Controller\\API\\APIv1' not found in wp-content/plugins/utubevideo-gallery/src/Controller/API/AlbumOrderAPIv1.php:12
- > PHP Fatal error
Uncaught Error: Class 'Dscarberry\\UTubeVideoGallery\\Controller\\API\\APIv1' not found in wp-content/plugins/utubevideo-gallery/src/Controller/API/YouTubePlaylistAPIv1.php:12
- > PHP Fatal error
Uncaught Error: Class 'Dscarberry\\UTubeVideoGallery\\Controller\\API\\APIv1' not found in wp-content/plugins/utubevideo-gallery/src/Controller/API/AlbumAPIv1.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function Dscarberry\\UTubeVideoGallery\\get_option() in wp-content/plugins/utubevideo-gallery/utubevideo.php:57
- > PHP Fatal error
Uncaught Error: Class 'Dscarberry\\UTubeVideoGallery\\Controller\\API\\APIv1' not found in wp-content/plugins/utubevideo-gallery/src/Controller/API/GalleryAPIv1.php:12
- > PHP Fatal error
Uncaught Error: Class 'Dscarberry\\UTubeVideoGallery\\Controller\\API\\APIv1' not found in wp-content/plugins/utubevideo-gallery/src/Controller/API/SettingsAPIv1.php:12
- > PHP Fatal error
Uncaught Error: Class 'Dscarberry\\UTubeVideoGallery\\Controller\\API\\APIv1' not found in wp-content/plugins/utubevideo-gallery/src/Controller/API/VideoAPIv1.php:12
- > PHP Fatal error
Uncaught Error: Class 'Dscarberry\\UTubeVideoGallery\\Controller\\API\\APIv1' not found in wp-content/plugins/utubevideo-gallery/src/Controller/API/PlaylistAPIv1.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
4 plugin tags: youtube, vimeo, video, gallery
utubevideo-gallery/utubevideo.php 85% from 13 tests
"uTubeVideo Gallery" version 2.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Git Repository: Please remove the Git repository from this plugin
- Main file name: The principal plugin file should be the same as the plugin slug ("utubevideo-gallery.php" instead of "utubevideo.php")
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
Success! There were no dangerous files found in this plugin18,575 lines of code in 190 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 7,008 |
JavaScript | 114 | 766 | 195 | 5,380 |
PHP | 52 | 889 | 373 | 4,088 |
Sass | 13 | 229 | 12 | 1,311 |
Markdown | 2 | 114 | 0 | 302 |
PO File | 1 | 138 | 174 | 296 |
Bourne Shell | 1 | 21 | 11 | 123 |
XML | 2 | 4 | 12 | 49 |
YAML | 1 | 10 | 17 | 16 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 1 | 2.04% |
▷ Concrete classes | 48 | 97.96% |
▷ Final classes | 0 | 0.00% |
Methods | 326 | |
▷ Static methods | 78 | 23.93% |
▷ Public methods | 279 | 85.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 47 | 14.42% |
Functions | 46 | |
▷ Named functions | 3 | 6.52% |
▷ Anonymous functions | 43 | 93.48% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 13.25MB with 4.85MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 1,420.25KB | 422.69KB | ▼ 70.24% |
public/img/play_icon_blue.png | 0.88KB | 1.08KB | 0.00% |
screenshot-6.png | 449.79KB | 109.17KB | ▼ 75.73% |
public/img/resource/play.vimeo.png | 1.16KB | 1.35KB | 0.00% |
public/img/play_icon.png | 0.54KB | 0.34KB | ▼ 37.18% |