Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/youtube-sidebar/classes/class-youtubesidebar.php+449
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼1.93MB] [CPU: ▼61.12ms] Passed 4 tests
An overview of server-side resources used by YouTube Sidebar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.93 ▼36.52 |
Dashboard /wp-admin | 2.09 ▼1.26 | 5.66 ▼63.52 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.92 ▼45.16 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.55 ▼99.27 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.80 ▼31.44 |
Plugins Dashboard /wp-admin/admin.php?page=youtubesidebar | 2.09 | 6.14 |
YouTube Sidebar /wp-admin/upload.php?page=youtubesidebar | 2.09 | 6.61 |
Server storage [IO: ▲2.95MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 80 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
youtubesidebar_installeddate |
youtubesidebar_settings |
widget_recent-comments |
youtubesidebar_is_installed |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
youtubesidebar_installedversion |
... |
Browser metrics Passed 4 tests
YouTube Sidebar: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.27 ▼0.38 | 2.07 ▲0.23 | 48.67 ▲4.11 |
Dashboard /wp-admin | 2,199 ▲22 | 5.60 ▼0.05 | 83.48 ▼15.19 | 38.95 ▼4.70 |
Posts /wp-admin/edit.php | 2,107 ▲25 | 2.12 ▲0.11 | 37.11 ▼1.96 | 35.46 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,552 ▲21 | 23.68 ▲0.06 | 687.09 ▼22.10 | 57.76 ▲3.21 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.26 ▲0.05 | 108.70 ▲3.69 | 48.75 ▲1.21 |
Plugins Dashboard /wp-admin/admin.php?page=youtubesidebar | 2,668 | 18.16 | 369.53 | 103.01 |
YouTube Sidebar /wp-admin/upload.php?page=youtubesidebar | 2,629 | 15.58 | 353.94 | 60.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/youtube-sidebar/classes/class-youtubesidebar.php+449
count(): Parameter must be an array or an object that implements Countable
- This plugin did not uninstall successfully, leaving 13 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- youtubesidebar_installedversion
- db_upgraded
- youtubesidebar_installeddate
- youtubesidebar_schedule
- youtubesidebar_formvalidation
- youtubesidebar_is_installed
- can_compress_scripts
- widget_recent-comments
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 126 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Warning in wp-content/plugins/youtube-sidebar/classes/class-youtubesidebar.php+449
count(): Parameter must be an array or an object that implements Countable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Notice in wp-content/plugins/youtube-sidebar/classes/class-ui.php+176
Undefined index: viewtitle
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Notice in wp-content/plugins/youtube-sidebar/classes/class-ui.php+155
Undefined index: tabs
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Warning in wp-content/plugins/youtube-sidebar/classes/class-ui.php+155
Invalid argument supplied for foreach()
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 26× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/youtube-sidebar/arrays/settings_array.php
- > /wp-content/plugins/youtube-sidebar/classes/class-categories.php
- > /wp-content/plugins/youtube-sidebar/views/main.php
- > /wp-content/plugins/youtube-sidebar/arrays/schedule_array.php
- > /wp-content/plugins/youtube-sidebar/youtubesidebar.php
- > /wp-content/plugins/youtube-sidebar/views/appearancesection.php
- > /wp-content/plugins/youtube-sidebar/views/commentssection.php
- > /wp-content/plugins/youtube-sidebar/posttypes/flags.php
- > /wp-content/plugins/youtube-sidebar/classes/class-flags.php
- > /wp-content/plugins/youtube-sidebar/arrays/tableschema_array.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'YOUTUBESIDEBAR_UI' not found in wp-content/plugins/youtube-sidebar/classes/class-forms.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Network (severe)
wp-content/plugins/youtubesidebar/css/notifications.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Network (severe)
wp-content/plugins/youtubesidebar/css/admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=youtubesidebar
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=youtubesidebar 315:24 Uncaught TypeError: $ is not a function
- > GET request to /wp-admin/admin.php?page=youtubesidebar
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=youtubesidebar 337:24 Uncaught TypeError: $ is not a function
- 6 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Console-api (warning) in unknown
http://pagead2.googlesyndication.com/pagead/show_ads.js 52:253 "You are using deprecated show_ads.js script to display AdSense ads. To improve performance of your ads switch to the modern adsbygoogle.js script. See instructions on https://support.google.com/adsense/answer/9190028."
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
- > GET request to /wp-admin/admin.php?page=youtubesidebar
- > Network (severe)
https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4923567693678329&output=html&h=250&slotname=5814814678&adk=4156426086&adf=3552772855&pi=t.ma~as.5814814678&w=250&lmt=1697317445&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dyoutubesidebar&wgl=1&dt=1697317444662&bpp=242&bdt=149&idt=428&shv=r20231011&mjsv=m202310100101&ptt=5&saldr=sd&abxe=1&correlator=2249129823273&frm=20&pv=2&ga_vid=1392534367.1697317445&ga_sid=1697317445&ga_hid=362720720&ga_fc=0&u_tz=180&u_his=14&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_sd=1&adx=491&ady=1753&biw=785&bih=585&scr_x=0&scr_y=0&eid=44759926%2C44759875%2C31078363%2C31078658%2C42532334%2C44805098%2C44805112%2C31078297&oid=2&pvsid=2828052960629571&tmod=1208951399&uas=0&nvt=1&fc=896&brdim=0%2C0%2C0%2C0%2C800%2C0%2C800%2C600%2C800%2C600&vis=1&rsz=o%7Co%7CpeEbr%7C&abl=NS&pfx=0&fu=1024&bc=23&ifi=1&uci=a!1&btvi=1&fsb=1&xpc=J9xOWJOoOg&p=http%3A//wp.com&dtd=455 - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/admin.php?page=youtubesidebar
- > Network (severe)
https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4923567693678329&output=html&h=200&slotname=7291547875&adk=957470934&adf=2342189458&pi=t.ma~as.7291547875&w=200&lmt=1697317445&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dyoutubesidebar&wgl=1&dt=1697317444670&bpp=235&bdt=157&idt=465&shv=r20231011&mjsv=m202310100101&ptt=5&saldr=sd&abxe=1&prev_slotnames=5814814678&correlator=2249129823273&frm=20&pv=1&ga_vid=1392534367.1697317445&ga_sid=1697317445&ga_hid=362720720&ga_fc=0&u_tz=180&u_his=14&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_sd=1&adx=491&ady=2023&biw=785&bih=585&scr_x=0&scr_y=0&eid=44759926%2C44759875%2C31078363%2C31078658%2C42532334%2C44805098%2C44805112%2C31078297&oid=2&pvsid=2828052960629571&tmod=1208951399&uas=0&nvt=1&fc=896&brdim=0%2C0%2C0%2C0%2C800%2C0%2C800%2C600%2C800%2C600&vis=1&rsz=o%7Co%7CpeEbr%7C&abl=NS&pfx=0&fu=1024&bc=23&ifi=2&uci=a!2&btvi=2&fsb=1&xpc=VdH5VcJXds&p=http%3A//wp.com&dtd=474 - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/admin.php?page=youtubesidebar
- > Network (severe)
https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4923567693678329&output=html&h=125&slotname=8768281070&adk=117996738&adf=200143806&pi=t.ma~as.8768281070&w=125&lmt=1697317445&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dyoutubesidebar&wgl=1&dt=1697317444672&bpp=234&bdt=158&idt=480&shv=r20231011&mjsv=m202310100101&ptt=5&saldr=sd&abxe=1&prev_slotnames=5814814678%2C7291547875&correlator=2249129823273&frm=20&pv=1&ga_vid=1392534367.1697317445&ga_sid=1697317445&ga_hid=362720720&ga_fc=0&u_tz=180&u_his=14&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_sd=1&adx=491&ady=2243&biw=785&bih=585&scr_x=0&scr_y=0&eid=44759926%2C44759875%2C31078363%2C31078658%2C42532334%2C44805098%2C44805112%2C31078297&oid=2&pvsid=2828052960629571&tmod=1208951399&uas=0&nvt=1&fc=896&brdim=0%2C0%2C0%2C0%2C800%2C0%2C800%2C600%2C800%2C600&vis=1&rsz=o%7Co%7CpeEbr%7C&abl=NS&pfx=0&fu=1024&bc=23&ifi=3&uci=a!3&btvi=3&fsb=1&xpc=MM7JrvexeO&p=http%3A//wp.com&dtd=486 - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Javascript (severe) in unknown
/wp-admin/upload.php?page=youtubesidebar 315:24 Uncaught TypeError: $ is not a function
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Javascript (severe) in unknown
/wp-admin/upload.php?page=youtubesidebar 337:24 Uncaught TypeError: $ is not a function
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Network (severe)
https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4923567693678329&output=html&h=125&slotname=8768281070&adk=117996738&adf=200143806&pi=t.ma~as.8768281070&w=125&lmt=1697317448&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Fupload.php%3Fpage%3Dyoutubesidebar&wgl=1&dt=1697317448137&bpp=81&bdt=105&idt=258&shv=r20231011&mjsv=m202310100101&ptt=5&saldr=sd&abxe=1&cookie=ID%3Dec161b6b319558df-223bb7b5dfe20011%3AT%3D1697317445%3ART%3D1697317445%3AS%3DALNI_MYaH9WZlaiXkeCNJBqovpOLpF_Ikw&gpic=UID%3D00000c9886ac7ab3%3AT%3D1697317445%3ART%3D1697317445%3AS%3DALNI_Mb3iwfTpfr4hG_QV6zPzjHm4AfDEQ&prev_slotnames=5814814678%2C7291547875&correlator=5279901541955&frm=20&pv=1&ga_vid=1998474634.1697317448&ga_sid=1697317448&ga_hid=955391248&ga_fc=0&u_tz=180&u_his=16&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_sd=1&adx=491&ady=2243&biw=785&bih=585&scr_x=0&scr_y=0&eid=44759926%2C44759875%2C31078363%2C31078657%2C44805099%2C44805335%2C44804171&oid=2&pvsid=1190374314166415&tmod=1208951399&uas=0&nvt=1&fc=896&brdim=0%2C0%2C0%2C0%2C800%2C0%2C800%2C600%2C800%2C600&vis=1&rsz=o%7Co%7CpeEbr%7C&abl=NS&pfx=0&fu=1024&bc=23&ifi=3&uci=a!3&btvi=3&fsb=1&xpc=N3mBSFhQEP&p=http%3A//wp.com&dtd=295 - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Network (severe)
https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4923567693678329&output=html&h=250&slotname=5814814678&adk=4156426086&adf=3552772855&pi=t.ma~as.5814814678&w=250&lmt=1697317448&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Fupload.php%3Fpage%3Dyoutubesidebar&wgl=1&dt=1697317448132&bpp=83&bdt=100&idt=179&shv=r20231011&mjsv=m202310100101&ptt=5&saldr=sd&abxe=1&cookie=ID%3Dec161b6b319558df-223bb7b5dfe20011%3AT%3D1697317445%3ART%3D1697317445%3AS%3DALNI_MYaH9WZlaiXkeCNJBqovpOLpF_Ikw&gpic=UID%3D00000c9886ac7ab3%3AT%3D1697317445%3ART%3D1697317445%3AS%3DALNI_Mb3iwfTpfr4hG_QV6zPzjHm4AfDEQ&correlator=5279901541955&frm=20&pv=2&ga_vid=1998474634.1697317448&ga_sid=1697317448&ga_hid=955391248&ga_fc=0&u_tz=180&u_his=16&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_sd=1&adx=491&ady=1753&biw=785&bih=585&scr_x=0&scr_y=0&eid=44759926%2C44759875%2C31078363%2C31078657%2C44805099%2C44805335%2C44804171&oid=2&pvsid=1190374314166415&tmod=1208951399&uas=0&nvt=1&fc=896&brdim=0%2C0%2C0%2C0%2C800%2C0%2C800%2C600%2C800%2C600&vis=1&rsz=o%7Co%7CpeEbr%7C&abl=NS&pfx=0&fu=1024&bc=23&ifi=1&uci=a!1&btvi=1&fsb=1&xpc=3mugkQMUgF&p=http%3A//wp.com&dtd=200 - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/upload.php?page=youtubesidebar
- > Network (severe)
https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-4923567693678329&output=html&h=200&slotname=7291547875&adk=957470934&adf=2342189458&pi=t.ma~as.7291547875&w=200&lmt=1697317448&url=http%3A%2F%2Fwp.com%2Fwp-admin%2Fupload.php%3Fpage%3Dyoutubesidebar&wgl=1&dt=1697317448135&bpp=82&bdt=103&idt=239&shv=r20231011&mjsv=m202310100101&ptt=5&saldr=sd&abxe=1&cookie=ID%3Dec161b6b319558df-223bb7b5dfe20011%3AT%3D1697317445%3ART%3D1697317445%3AS%3DALNI_MYaH9WZlaiXkeCNJBqovpOLpF_Ikw&gpic=UID%3D00000c9886ac7ab3%3AT%3D1697317445%3ART%3D1697317445%3AS%3DALNI_Mb3iwfTpfr4hG_QV6zPzjHm4AfDEQ&prev_slotnames=5814814678&correlator=5279901541955&frm=20&pv=1&ga_vid=1998474634.1697317448&ga_sid=1697317448&ga_hid=955391248&ga_fc=0&u_tz=180&u_his=16&u_h=600&u_w=800&u_ah=600&u_aw=800&u_cd=24&u_sd=1&adx=491&ady=2023&biw=785&bih=585&scr_x=0&scr_y=0&eid=44759926%2C44759875%2C31078363%2C31078657%2C44805099%2C44805335%2C44804171&oid=2&pvsid=1190374314166415&tmod=1208951399&uas=0&nvt=1&fc=896&brdim=0%2C0%2C0%2C0%2C800%2C0%2C800%2C600%2C800%2C600&vis=1&rsz=o%7Co%7CpeEbr%7C&abl=NS&pfx=0&fu=1024&bc=23&ifi=2&uci=a!2&btvi=2&fsb=1&xpc=55ZoPq9ggv&p=http%3A//wp.com&dtd=245 - Failed to load resource: the server responded with a status of 403 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== youtube-sidebar ===
)
youtube-sidebar/youtubesidebar.php 85% from 13 tests
The main PHP file in "YouTube Sidebar" ver. 3.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("youtube-sidebar.php" instead of "youtubesidebar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected9,651 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 2,034 | 5,296 | 7,665 |
PO File | 1 | 623 | 1,388 | 1,339 |
CSS | 3 | 93 | 49 | 615 |
JavaScript | 2 | 11 | 39 | 32 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 295.00 |
Average method complexity | 3.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 434 | |
▷ Static methods | 5 | 1.15% |
▷ Public methods | 419 | 96.54% |
▷ Protected methods | 14 | 3.23% |
▷ Private methods | 1 | 0.23% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 26 | 92.86% |
▷ Class constants | 2 | 7.14% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
27 PNG files occupy 2.12MB with 1.91MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/webtechglobal-logo.png | 42.41KB | 2.90KB | ▼ 93.16% |
images/info_extra.png | 147.75KB | 16.54KB | ▼ 88.81% |
images/restricted_extra.png | 124.49KB | 14.43KB | ▼ 88.41% |
images/warning_large.png | 52.42KB | 4.12KB | ▼ 92.14% |
images/error_extra.png | 140.55KB | 16.75KB | ▼ 88.08% |