Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.34MB] [CPU: ▲37.38ms] 75% from 4 tests
A check of server-side resources used by Video Player for YouTube
The following require your attention
- Extra RAM: The extra memory usage must be under 5MB (currently 5.34MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.41 | 86.96 ▲46.26 |
Dashboard /wp-admin | 8.90 ▲5.55 | 87.20 ▲28.13 |
Posts /wp-admin/edit.php | 8.90 ▲5.54 | 85.09 ▲41.47 |
Add New Post /wp-admin/post-new.php | 10.75 ▲4.87 | 124.41 ▲34.62 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 81.45 ▲45.28 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.90 | 69.30 |
Server storage [IO: ▲5.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 360 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
ytp_import_ver |
widget_recent-comments |
fs_accounts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
Video Player for YouTube: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲128 | 14.77 ▲0.05 | 4.11 ▲2.55 | 31.19 ▼9.20 |
Dashboard /wp-admin | 2,214 ▲39 | 5.57 ▼0.04 | 85.46 ▼29.59 | 74.73 ▲28.09 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 1.95 ▼0.07 | 36.68 ▼1.68 | 34.82 ▲2.75 |
Add New Post /wp-admin/post-new.php | 1,697 ▲169 | 21.09 ▼1.99 | 729.82 ▲92.73 | 60.59 ▲7.48 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.20 ▼0.00 | 94.30 ▼9.08 | 100.37 ▲57.75 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,099 | 1.68 | 26.35 | 23.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/yt-player/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- ytp_import_ver
- widget_recent-comments
- fs_debug_mode
- theysaidso_admin_options
- fs_active_plugins
- can_compress_scripts
- fs_accounts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #5 in yt-player/assets to your readme.txt
yt-player/yt-player.php 92% from 13 tests
The main file in "Video Player for YouTube" v. 1.5.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 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 detected73,336 lines of code in 290 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 221 | 11,560 | 19,010 | 49,195 |
JavaScript | 10 | 1,319 | 557 | 6,746 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 970 | 3 | 5,672 |
CSS | 19 | 393 | 512 | 4,992 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 15 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 50.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 121 | |
▷ Abstract classes | 4 | 3.31% |
▷ Concrete classes | 117 | 96.69% |
▷ Final classes | 0 | 0.00% |
Methods | 1,573 | |
▷ Static methods | 255 | 16.21% |
▷ Public methods | 1,182 | 75.14% |
▷ Protected methods | 17 | 1.08% |
▷ Private methods | 374 | 23.78% |
Functions | 128 | |
▷ Named functions | 125 | 97.66% |
▷ Anonymous functions | 3 | 2.34% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
img/icon.png | 1.52KB | 0.91KB | ▼ 40.10% |
admin/framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |