Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.15MB] [CPU: ▲31.86ms] 75% from 4 tests
Server-side resources used by StreamWeasels YouTube Integration
Please fix the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.15MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.42 | 55.36 ▲16.08 |
Dashboard /wp-admin | 8.91 ▲5.60 | 85.50 ▲32.43 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 86.54 ▲42.22 |
Add New Post /wp-admin/post-new.php | 9.89 ▲4.01 | 129.86 ▲42.16 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 70.48 ▲36.75 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.91 | 64.39 |
Server storage [IO: ▲4.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 252 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
fs_accounts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
fs_active_plugins |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for StreamWeasels YouTube Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,120 ▲373 | 16.26 ▲1.55 | 10.11 ▲8.48 | 27.54 ▼18.59 |
Dashboard /wp-admin | 2,387 ▲210 | 6.44 ▲0.78 | 123.23 ▲23.62 | 48.26 ▲3.92 |
Posts /wp-admin/edit.php | 2,331 ▲231 | 3.65 ▲1.71 | 59.23 ▲23.74 | 37.02 ▲3.64 |
Add New Post /wp-admin/post-new.php | 1,706 ▲179 | 16.29 ▼6.88 | 599.94 ▼98.95 | 34.13 ▼25.58 |
Media Library /wp-admin/upload.php | 1,461 ▲61 | 4.45 ▲0.31 | 90.49 ▼9.62 | 48.11 ▼0.47 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,309 | 3.36 | 49.32 | 31.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/streamweasels-youtube-integration/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- fs_active_plugins
- fs_accounts
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- fs_debug_mode
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function syi_fs() in wp-content/plugins/streamweasels-youtube-integration/admin/partials/streamweasels-youtube-admin-sidebar.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/streamweasels-youtube-integration/admin/partials/streamweasels-youtube-admin-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/streamweasels-youtube-integration/public/partials/streamweasels-youtube-public-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
8 plugin tags: youtube feed, youtube, youtube shorts, youtube live, youtube gallery...
streamweasels-youtube-integration/streamweasels-youtube.php 85% from 13 tests
Analyzing the main PHP file in "StreamWeasels YouTube Integration" version 1.1.8
Please take the time to 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
- Main file name: The principal plugin file should be the same as the plugin slug ("streamweasels-youtube-integration.php" instead of "streamweasels-youtube.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin42,598 lines of code in 190 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 8,575 | 17,901 | 36,927 |
Sass | 11 | 92 | 95 | 3,530 |
JavaScript | 18 | 153 | 246 | 1,910 |
JSON | 4 | 0 | 0 | 210 |
CSS | 22 | 1 | 2 | 21 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 78.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,412 | |
▷ Static methods | 201 | 14.24% |
▷ Public methods | 1,005 | 71.18% |
▷ Protected methods | 17 | 1.20% |
▷ Private methods | 390 | 27.62% |
Functions | 114 | |
▷ Named functions | 114 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ 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
8 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/img/discord-logo.png | 2.35KB | 1.00KB | ▼ 57.64% |
admin/img/sw-full-logo.png | 62.43KB | 26.24KB | ▼ 57.97% |
admin/img/youtube-player-600x200.png | 13.55KB | 8.65KB | ▼ 36.20% |
admin/img/youtube-showcase-600x200.png | 19.77KB | 13.96KB | ▼ 29.40% |