Benchmarks
Plugin footprint 83% 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: ▲1.18MB] [CPU: ▲2.72ms] Passed 4 tests
This is a short check of server-side resources used by .TUBE Video Curator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.61 ▲1.14 | 41.88 ▼1.36 |
Dashboard /wp-admin | 4.51 ▲1.21 | 55.32 ▲4.08 |
Posts /wp-admin/edit.php | 4.56 ▲1.20 | 51.51 ▼0.29 |
Add New Post /wp-admin/post-new.php | 7.04 ▲1.15 | 118.03 ▲17.71 |
Media Library /wp-admin/upload.php | 4.43 ▲1.20 | 40.80 ▲8.45 |
Search for Videos /wp-admin/admin.php?page=tube-video-curator-find-videos | 4.41 | 37.20 |
Your API Keys /wp-admin/admin.php?page=tube-video-curator-api-keys | 4.40 | 37.19 |
Plugin Settings /wp-admin/admin.php?page=tube-video-curator-settings | 4.41 | 38.20 |
Add Channels & Playlists /wp-admin/admin.php?page=tube-video-curator-find-sources | 4.40 | 34.45 |
Your Channels & Playlists /wp-admin/edit.php?post_type=tube_source | 4.48 | 39.34 |
Dashboard /wp-admin/admin.php?page=tube-video-curator | 4.39 | 33.98 |
Skipped Videos /wp-admin/edit.php?post_type=tube_skipped_video | 4.48 | 38.40 |
Add Video Via Url /wp-admin/admin.php?page=tube-video-curator-add-via-url | 4.41 | 43.22 |
Server storage [IO: ▲5.78MB] [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: 188 new files
Database: no new tables, 16 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
tube_vc_default_import_post_type |
tube_vc_player_autohide |
tube_vc_player_controls |
tube_vc_player_related |
tube_vc_player_autoplay |
tube_vc_default_import_author |
tube_vc_player_showinfo |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for .TUBE Video Curator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲143 | 13.18 ▼1.42 | 1.66 ▼0.89 | 31.17 ▼12.93 |
Dashboard /wp-admin | 2,289 ▲101 | 4.85 ▼1.14 | 102.94 ▼6.86 | 45.88 ▲4.28 |
Posts /wp-admin/edit.php | 2,169 ▲80 | 2.00 ▲0.01 | 35.77 ▼0.15 | 37.90 ▲4.08 |
Add New Post /wp-admin/post-new.php | 1,654 ▲134 | 21.87 ▼1.40 | 657.18 ▲7.55 | 61.42 ▲3.07 |
Media Library /wp-admin/upload.php | 1,474 ▲89 | 4.29 ▲0.05 | 100.10 ▼1.49 | 45.34 ▼0.43 |
Search for Videos /wp-admin/admin.php?page=tube-video-curator-find-videos | 849 | 2.16 | 31.95 | 30.31 |
Your API Keys /wp-admin/admin.php?page=tube-video-curator-api-keys | 1,045 | 2.16 | 27.01 | 37.65 |
/wp-admin/admin.php?page=# | 28 | 0.44 | 0.08 | 3.52 |
Plugin Settings /wp-admin/admin.php?page=tube-video-curator-settings | 1,053 | 1.71 | 24.29 | 35.05 |
Add Channels & Playlists /wp-admin/admin.php?page=tube-video-curator-find-sources | 851 | 1.71 | 25.93 | 27.51 |
Your Channels & Playlists /wp-admin/edit.php?post_type=tube_source | 1,143 | 1.95 | 32.19 | 35.64 |
Dashboard /wp-admin/admin.php?page=tube-video-curator | 906 | 2.02 | 23.22 | 26.47 |
Skipped Videos /wp-admin/edit.php?post_type=tube_skipped_video | 1,118 | 1.98 | 32.47 | 33.41 |
Add Video Via Url /wp-admin/admin.php?page=tube-video-curator-add-via-url | 875 | 1.80 | 30.30 | 30.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 16 options in the database
- tube_vc_video_placement
- can_compress_scripts
- tube_vc_player_showinfo
- tube_vc_default_import_author
- widget_recent-comments
- theysaidso_admin_options
- tube_vc_player_related
- db_upgraded
- tube_vc_player_autohide
- widget_recent-posts
- ...
Smoke tests 25% 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)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=tube-video-curator
- > Warning in wp-content/plugins/tube-video-curator/classes/class-tube-vc-dashboard.php+401
count(): Parameter must be an array or an object that implements Countable
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 80× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/tube-video-curator/lib/youtube-api/src/Google/Service/PlusDomains.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tube-video-curator/lib/youtube-api/config.php:5
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/tube-video-curator/lib/youtube-api/src/Google/Service/GroupsMigration.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/tube-video-curator/lib/youtube-api/src/Google/Service/GamesManagement.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/tube-video-curator/lib/youtube-api/src/Google/Service/Mirror.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/tube-video-curator/lib/youtube-api/src/Google/Service/Audit.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/tube-video-curator/lib/youtube-api/src/Google/Service/ShoppingContent.php:32
- > PHP Fatal error
Uncaught Error: Class 'Tube_VC_Source' not found in wp-content/plugins/tube-video-curator/classes/class-tube-vc-source-twitch-channel.php:15
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/tube-video-curator/lib/youtube-api/src/Google/Service/Tasks.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/tube-video-curator/lib/youtube-api/src/Google/Service/Calendar.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=#
- > Network (severe)
wp-admin/admin.php?page=# - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
tube-video-curator/tube-video-curator.php 92% from 13 tests
".TUBE Video Curator" version 1.1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected157,016 lines of code in 177 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 163 | 13,961 | 30,602 | 155,765 |
JavaScript | 4 | 289 | 23 | 479 |
CSS | 1 | 123 | 17 | 350 |
Markdown | 4 | 124 | 0 | 237 |
XML | 2 | 28 | 41 | 122 |
JSON | 3 | 1 | 0 | 63 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 1.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 1.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 2,760 | |
▷ Abstract classes | 6 | 0.22% |
▷ Concrete classes | 2,754 | 99.78% |
▷ Final classes | 0 | 0.00% |
Methods | 21,715 | |
▷ Static methods | 38 | 0.17% |
▷ Public methods | 21,644 | 99.67% |
▷ Protected methods | 30 | 0.14% |
▷ Private methods | 41 | 0.19% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 238 | |
▷ Global constants | 5 | 2.10% |
▷ Class constants | 233 | 97.90% |
▷ Public constants | 233 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/find-your-tube-domain-300x250.png | 30.03KB | 31.70KB | 0.00% |