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.06MB] [CPU: ▼314.89ms] Passed 4 tests
An overview of server-side resources used by Import YouTube by Northwoods Digital
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.27 | 49.12 ▼4.19 |
Dashboard /wp-admin | 3.62 ▲0.21 | 25.56 ▼40.28 |
Posts /wp-admin/edit.php | 3.75 ▲0.10 | 30.06 ▼30.35 |
Add New Post /wp-admin/post-new.php | 6.15 ▼0.83 | 57.96 ▼1,184.73 |
Media Library /wp-admin/upload.php | 3.69 ▲0.39 | 23.73 ▼3.06 |
Add New /wp-admin/post-new.php?post_type=yih4-video | 6.15 | 119.21 |
All Videos /wp-admin/edit.php?post_type=yih4-video | 3.73 | 24.01 |
Menus /wp-admin/nav-menus.php | 3.76 | 30.84 |
Settings /wp-admin/edit.php?post_type=yih4-video&page=youtube_import_nwdigital&tab=display_options | 3.54 | 21.30 |
API Key /wp-admin/edit.php?post_type=yih4-video&page=youtube_import_nwdigital&tab=display_api_key | 3.54 | 20.06 |
Widgets /wp-admin/widgets.php | 5.45 | 49.90 |
Import Videos /wp-admin/edit.php?post_type=yih4-video&page=youtube_import_nwdigital | 3.54 | 20.83 |
Tags /wp-admin/edit-tags.php?taxonomy=yih4-tag&post_type=yih4-video | 3.69 | 30.33 |
Categories /wp-admin/edit-tags.php?taxonomy=yih4-category&post_type=yih4-video | 3.69 | 25.54 |
Server storage [IO: ▲0.14MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 4 new options
New WordPress options |
---|
yih4_nwd_tab_settings_3 |
yih4_nwd_tab_settings_2 |
widget_yih4_widget_categories |
yih4_nwd_channel_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Import YouTube by Northwoods Digital
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,920 ▲198 | 15.94 ▲0.29 | 6.21 ▲0.50 | 2.65 ▲0.25 |
Dashboard /wp-admin | 3,001 ▲144 | 6.05 ▼0.11 | 116.94 ▼12.04 | 236.29 ▲67.73 |
Posts /wp-admin/edit.php | 2,787 ▲102 | 3.28 ▲0.05 | 67.72 ▲3.91 | 146.81 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,725 ▲64 | 17.52 ▲1.90 | 428.03 ▼18.68 | 181.80 ▼1.28 |
Media Library /wp-admin/upload.php | 1,800 ▲99 | 5.60 ▲0.10 | 139.55 ▲4.82 | 186.06 ▼3.73 |
Add New /wp-admin/post-new.php?post_type=yih4-video | 9,856 | 20.71 | 583.43 | 179.34 |
All Videos /wp-admin/edit.php?post_type=yih4-video | 1,555 | 3.18 | 74.04 | 124.74 |
Menus /wp-admin/nav-menus.php | 2,445 | 3.45 | 90.72 | 142.39 |
Settings /wp-admin/edit.php?post_type=yih4-video&page=youtube_import_nwdigital&tab=display_options | 1,503 | 3.60 | 77.91 | 140.80 |
API Key /wp-admin/edit.php?post_type=yih4-video&page=youtube_import_nwdigital&tab=display_api_key | 1,285 | 3.67 | 74.78 | 131.55 |
Widgets /wp-admin/widgets.php | 2,637 | 26.03 | 433.97 | 142.89 |
Import Videos /wp-admin/edit.php?post_type=yih4-video&page=youtube_import_nwdigital | 1,211 | 3.52 | 72.56 | 130.44 |
Tags /wp-admin/edit-tags.php?taxonomy=yih4-tag&post_type=yih4-video | 1,719 | 2.92 | 210.39 | 159.20 |
Categories /wp-admin/edit-tags.php?taxonomy=yih4-category&post_type=yih4-video | 1,724 | 2.92 | 60.08 | 112.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_yih4_widget_categories
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 21 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=yih4-category&post_type=yih4-video
- > Notice in wp-content/plugins/import-youtube-by-northwoods-digital/import-youtube-nwdigital.php+287
Trying to access array offset on value of type bool
- 6 occurences, only the last one shown
- > GET request to /wp-admin/widgets.php
- > Warning in wp-content/plugins/import-youtube-by-northwoods-digital/includes/public/yih4-comments.php+26
file_get_contents(https://www.googleapis.com/youtube/v3/commentThreads?key=&textFormat=plainText&part=snippet&videoId=&maxResults=15): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
- 12 occurences, only the last one shown
- > GET request to /wp-admin/widgets.php
- > Notice in wp-content/plugins/import-youtube-by-northwoods-digital/includes/public/yih4-comments.php+32
Trying to access array offset on value of type null
- 6 occurences, only the last one shown
- > GET request to /wp-admin/widgets.php
- > Warning in wp-content/plugins/import-youtube-by-northwoods-digital/includes/public/yih4-comments.php+28
count(): Parameter must be an array or an object that implements Countable
- 6 occurences, only the last one shown
- > GET request to /wp-admin/widgets.php
- > Warning in wp-content/plugins/import-youtube-by-northwoods-digital/includes/public/yih4-comments.php+32
Invalid argument supplied for foreach()
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=yih4-video
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'substring')" "TypeError: Cannot read properties of undefined (reading 'substring')\n at Object.getYouTubeId (/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.16:12:133949)\n at Object.create (/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.16:12:136905)\n at HTMLUnknownElement.f.mediaElement.changeRenderer (/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.16:12:15716)\n at HTMLUnknownElement.P [as setSrc] (/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.16:12:17930)\n at HTMLUnknownElement.set (/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.16:12:16380)\n at new e (/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.16:12:19858)\n at r.value (/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.16:12:80914)\n at r.MediaElementPlayer.init (/wp-includes/js/mediaelement/mediaelement-migrate.min.js?ver=5.9.2:1:492)\n at new r (/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.16:12:76580)\n at HTMLVideoElement.\u003Canonymous> (/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.16:12:111861)" undefined
- > GET request to /wp-admin/post-new.php?post_type=yih4-video
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9.2 1:31702 Uncaught TypeError: Cannot read properties of undefined (reading 'substring')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: video importer, youtube importer, youtube to post, videos, youtube api...
import-youtube-by-northwoods-digital/import-youtube-nwdigital.php 77% from 13 tests
The main PHP script in "Import YouTube by Northwoods Digital" version 1.2.0 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("import-youtube-by-northwoods-digital.php" instead of "import-youtube-nwdigital.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,809 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 278 | 190 | 1,496 |
JavaScript | 4 | 93 | 60 | 1,017 |
CSS | 3 | 18 | 23 | 296 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 80 | |
▷ Named functions | 80 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin