Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼16.04ms] Passed 4 tests
Analyzing server-side resources used by YouTube Video Importer Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.66 ▲2.06 |
Dashboard /wp-admin | 3.32 ▼0.03 | 36.67 ▼30.63 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 38.88 ▼13.46 |
Add New Post /wp-admin/post-new.php | 5.73 ▼0.15 | 77.14 ▼20.99 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 39.05 ▲0.92 |
Videos /wp-admin/admin.php?page=cbc_videos | 3.43 | 29.85 |
Go PRO! /wp-admin/edit.php?post_type=video&page=go-pro | 3.29 | 32.94 |
Add new /wp-admin/post-new.php?post_type=video | 3.30 | 40.93 |
All videos /wp-admin/edit.php?post_type=video | 3.37 | 37.11 |
Video categories /wp-admin/edit-tags.php?taxonomy=videos&post_type=video | 3.51 | 34.96 |
Video tags /wp-admin/edit-tags.php?taxonomy=video_tag&post_type=video | 3.31 | 35.73 |
Import videos /wp-admin/edit.php?post_type=video&page=cbc_import | 3.30 | 28.50 |
About /wp-admin/admin.php?page=cbc_about | 3.29 | 33.11 |
Settings /wp-admin/edit.php?post_type=video&page=cbc_settings | 3.30 | 41.19 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
cbc_plugin_review_callout |
db_upgraded |
can_compress_scripts |
widget_cbc-latest-videos-widget |
theysaidso_admin_options |
widget_recent-posts |
widget_cbc-taxonomy-video-widget |
Browser metrics Passed 4 tests
YouTube Video Importer Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 14.31 ▼0.07 | 2.36 ▲0.47 | 44.92 ▲2.55 |
Dashboard /wp-admin | 2,241 ▲64 | 5.63 ▲0.03 | 83.87 ▼4.07 | 74.78 ▲34.55 |
Posts /wp-admin/edit.php | 2,146 ▲43 | 2.16 ▲0.12 | 35.86 ▼1.38 | 36.32 ▲0.82 |
Add New Post /wp-admin/post-new.php | 6,498 ▲4,953 | 28.71 ▲5.33 | 1,068.64 ▲409.14 | 37.78 ▼13.51 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.19 ▼0.03 | 103.49 ▼1.55 | 80.85 ▲33.30 |
Videos /wp-admin/admin.php?page=cbc_videos | 251 | 1.17 | 9.33 | 6.16 |
Go PRO! /wp-admin/edit.php?post_type=video&page=go-pro | 1,241 | 6.99 | 78.22 | 69.67 |
Add new /wp-admin/post-new.php?post_type=video | 1,096 | 2.09 | 28.56 | 29.32 |
All videos /wp-admin/edit.php?post_type=video | 1,224 | 2.08 | 33.52 | 33.06 |
Video categories /wp-admin/edit-tags.php?taxonomy=videos&post_type=video | 1,320 | 2.14 | 25.23 | 29.65 |
Video tags /wp-admin/edit-tags.php?taxonomy=video_tag&post_type=video | 1,295 | 2.15 | 30.91 | 36.14 |
Import videos /wp-admin/edit.php?post_type=video&page=cbc_import | 1,023 | 2.27 | 29.58 | 29.67 |
About /wp-admin/admin.php?page=cbc_about | 1,508 | 8.69 | 215.13 | 54.53 |
Settings /wp-admin/edit.php?post_type=video&page=cbc_settings | 2,335 | 2.33 | 47.81 | 52.57 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- widget_cbc-latest-videos-widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_cbc-taxonomy-video-widget
- cbc_plugin_review_callout
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=video&page=cbc_settings
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/post-new.php?post_type=video
- > Notice in wp-includes/admin-bar.php+794
Trying to get property 'post_type' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 30× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'YVIL_PATHincludes/libs/video.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/yt-video-importer-lite/includes/libs/youtube-api-query.class.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/yt-video-importer-lite/views/import_videos.php:3
- > PHP Fatal error
Uncaught Error: Class 'YVIL_Page_Init' not found in wp-content/plugins/yt-video-importer-lite/includes/admin/libs/settings.page.class.php:3
- > PHP Warning
require_once(YVIL_PATHincludes/libs/custom-post-type.class.php): failed to open stream: No such file or directory in wp-content/plugins/yt-video-importer-lite/includes/admin/libs/class-cbc-admin-ajax.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'YVIL_PATHincludes/admin/libs/class-cbc-admin-ajax.php' (include_path='.:/usr/share/php') in wp-content/plugins/yt-video-importer-lite/includes/admin/libs/class-cbc-admin.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'YVIL_PATHincludes/libs/custom-post-type.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/yt-video-importer-lite/includes/admin/libs/class-cbc-admin-ajax.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'YVIL_Page_Init' not found in wp-content/plugins/yt-video-importer-lite/includes/admin/libs/manual-import.page.class.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yt-video-importer-lite/includes/libs/videos-taxonomy-widget.class.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/yt-video-importer-lite/views/plugin_settings.php:5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/yt-video-importer-lite/includes/admin/libs/video-list-table.class.php on line 6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=cbc_videos
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'split')" "TypeError: Cannot read properties of undefined (reading 'split')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/yt-video-importer-lite/assets/back-end/js/video-list-modal.js?ver=1.0:23:48)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=cbc_videos
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'split')
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cbc_about
- > Other (warning) in unknown
https://www.youtube.com/s/player/99faf012/www-widgetapi.vflset/www-widgetapi.js 1235 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: video import, youtube channel, video post, youtube importer, youtube video post
yt-video-importer-lite/main.php 85% from 13 tests
The main PHP file in "YouTube Video Importer Lite" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("yt-video-importer-lite.php" instead of "main.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin7,149 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 990 | 2,275 | 5,832 |
JavaScript | 13 | 170 | 137 | 869 |
CSS | 9 | 68 | 7 | 448 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 2 | 7.69% |
▷ Concrete classes | 24 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 217 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 177 | 81.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 40 | 18.43% |
Functions | 61 | |
▷ Named functions | 61 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/back-end/images/delete-small.png | 0.81KB | 0.59KB | ▼ 27.37% |
themes/default/assets/images/collapse.png | 0.38KB | 0.39KB | 0.00% |
themes/default/assets/images/expand.png | 0.38KB | 0.40KB | 0.00% |
assets/back-end/images/yt-video-id-example.png | 21.85KB | 10.42KB | ▼ 52.32% |
assets/back-end/images/success-small.png | 0.58KB | 0.58KB | 0.00% |