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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.19ms] Passed 4 tests
Server-side resources used by YourChannel: Everything you want in a YouTube plugin.
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.93 ▼1.08 |
Dashboard /wp-admin | 3.34 ▼0.01 | 46.45 ▼15.00 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.89 ▼1.76 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 93.78 ▲1.10 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.45 ▲1.28 |
Server storage [IO: ▲0.35MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
yrc_version |
yrc_upgrade_nag_dismisses |
Browser metrics Passed 4 tests
YourChannel: Everything you want in a YouTube plugin.: 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,912 ▲150 | 13.41 ▼1.30 | 8.02 ▲6.42 | 44.16 ▲0.18 |
Dashboard /wp-admin | 2,235 ▲55 | 5.64 ▼0.01 | 99.83 ▲14.25 | 45.36 ▲7.66 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.07 ▲0.06 | 40.34 ▲3.89 | 36.55 ▲2.37 |
Add New Post /wp-admin/post-new.php | 1,577 ▲51 | 24.95 ▲2.11 | 622.87 ▲34.60 | 60.10 ▲4.74 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.16 ▼0.09 | 94.69 ▼0.92 | 43.36 ▲1.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- yrc_version
- widget_recent-comments
- yrc_upgrade_nag_dismisses
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/yourchannel/templates/templates.php
- > /wp-content/plugins/yourchannel/stream/api.php
- > /wp-content/plugins/yourchannel/stream/stream.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/yourchannel/shortcode/instructions.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPB_YourChannel' not found in wp-content/plugins/yourchannel/templates/templates.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/yourchannel/templates/promotions.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in yourchannel/assets to your readme.txt
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
yourchannel/YourChannel.php 69% from 13 tests
This is the main PHP file of "YourChannel: Everything you want in a YouTube plugin." version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yourchannel.php" instead of "YourChannel.php")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
No dangerous file extensions were detected6,667 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 662 | 234 | 3,413 |
PHP | 6 | 267 | 75 | 1,456 |
CSS | 4 | 249 | 48 | 1,245 |
PO File | 2 | 241 | 255 | 514 |
SVG | 1 | 0 | 0 | 39 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 14 | 21.54% |
▷ Public methods | 65 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/youtube-icon.png | 13.21KB | 7.05KB | ▼ 46.67% |