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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.53MB] [CPU: ▲23.72ms] Passed 4 tests
Server-side resources used by Feeds for YouTube (YouTube video, channel, and gallery plugin)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.63 ▲3.17 | 60.03 ▲14.54 |
Dashboard /wp-admin | 8.34 ▲4.99 | 86.20 ▲20.44 |
Posts /wp-admin/edit.php | 8.39 ▲5.03 | 78.50 ▲26.24 |
Add New Post /wp-admin/post-new.php | 10.88 ▲4.99 | 130.17 ▲33.66 |
Media Library /wp-admin/upload.php | 8.20 ▲4.97 | 73.54 ▲37.98 |
Settings /wp-admin/admin.php?page=youtube-feed-settings | 8.88 | 85.11 |
Support /wp-admin/admin.php?page=youtube-feed-support | 8.88 | 82.16 |
Twitter Feed /wp-admin/admin.php?page=sby-feed-builder&tab=more | 9.27 | 100.21 |
All Feeds /wp-admin/admin.php?page=sby-feed-builder | 9.27 | 100.45 |
About Us /wp-admin/admin.php?page=youtube-feed-about | 8.88 | 77.64 |
Server storage [IO: ▲7.09MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 458 new files
Database: 3 new tables, 14 new options
New tables |
---|
wp_sby_feed_caches |
wp_sby_feeds |
wp_sby_feed_locator |
New WordPress options |
---|
sby_license_data |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
sby_newuser_notifications |
sby_notifications |
sby_check_license_api_when_expires |
widget_recent-comments |
sby_usage_tracking_config |
sby_license_status |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Feeds for YouTube (YouTube video, channel, and gallery plugin)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.21 ▼0.79 | 2.02 ▲0.28 | 82.95 ▲38.49 |
Dashboard /wp-admin | 2,307 ▲104 | 5.87 ▼0.03 | 103.34 ▼1.41 | 58.87 ▲18.76 |
Posts /wp-admin/edit.php | 2,201 ▲101 | 2.13 ▲0.14 | 41.54 ▲0.08 | 52.97 ▲17.76 |
Add New Post /wp-admin/post-new.php | 1,594 ▲63 | 24.10 ▲0.74 | 654.57 ▼48.68 | 42.94 ▼16.12 |
Media Library /wp-admin/upload.php | 1,484 ▲84 | 4.32 ▲0.08 | 116.55 ▲7.61 | 67.05 ▲17.42 |
Settings /wp-admin/admin.php?page=youtube-feed-settings | 1,243 | 4.16 | 114.37 | 86.27 |
Support /wp-admin/admin.php?page=youtube-feed-support | 1,340 | 3.98 | 88.01 | 39.27 |
Twitter Feed /wp-admin/admin.php?page=sby-feed-builder&tab=more | 4,970 | 8.10 | 55.88 | 32.21 |
All Feeds /wp-admin/admin.php?page=sby-feed-builder | 4,973 | 8.06 | 56.33 | 30.65 |
About Us /wp-admin/admin.php?page=youtube-feed-about | 1,166 | 3.90 | 53.72 | 46.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (1) for the number of arguments passed (0). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 34× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/feeds-for-youtube/inc/Admin/admin-functions.php
- > /wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/sections/free/feeds-type.php
- > /wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/sections/feeds/legacy-feeds.php
- > /wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/screens/customizer.php
- > /wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/sections/popup/license-learn-more.php
- > /wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/sections/footer-banner/footer-pro.php
- > /wp-content/plugins/feeds-for-youtube/templates/player.php
- > /wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/sections/popup/feedtypes-popup.php
- > /wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/sections/free/select-template.php
- > /wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/sections/empty-state.php
- 155× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'SmashBalloon\\YoutubeFeed\\Vendor\\DI\\Definition\\Helper\\DefinitionHelper' not found in wp-content/plugins/feeds-for-youtube/vendor/php-di/php-di/src/DI/Definition/Helper/FactoryDefinitionHelper.php:12
- > PHP Warning
Use of undefined constant CUSTOMIZER_ABSPATH - assumed 'CUSTOMIZER_ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/screens/customizer.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'SmashBalloon\\YoutubeFeed\\Vendor\\DI\\Definition\\Resolver\\DefinitionResolver' not found in wp-content/plugins/feeds-for-youtube/vendor/php-di/php-di/src/DI/Definition/Resolver/FactoryResolver.php:23
- > PHP Fatal error
Uncaught Error: Class 'SmashBalloon\\YouTubeFeed\\Admin\\SBY_Admin_Abstract' not found in wp-content/plugins/feeds-for-youtube/inc/Admin/SBY_Admin.php:8
- > PHP Warning
include_once(): Failed opening 'CUSTOMIZER_ABSPATHtemplates/sections/feeds/feeds.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/sections/feeds-list.php on line 4
- > PHP Warning
include_once(): Failed opening 'CUSTOMIZER_ABSPATHtemplates/sections/customizer/preview.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/screens/customizer.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Smashballoon\\Stubs\\Services\\ServiceProvider' not found in wp-content/plugins/feeds-for-youtube/inc/Services/Admin/Settings/PagesServiceContainer.php:8
- > PHP Warning
include_once(): Failed opening 'CUSTOMIZER_ABSPATHtemplates/sections/customizer/sidebar.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/feeds-for-youtube/vendor/smashballoon/customizer/templates/screens/customizer.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'SmashBalloon\\YoutubeFeed\\Vendor\\Invoker\\InvokerInterface' not found in wp-content/plugins/feeds-for-youtube/vendor/php-di/php-di/src/DI/InvokerInterface.php:10
- > PHP Fatal error
Uncaught Error: Interface 'SmashBalloon\\YoutubeFeed\\Vendor\\DI\\Definition\\Helper\\DefinitionHelper' not found in wp-content/plugins/feeds-for-youtube/vendor/php-di/php-di/src/DI/Definition/Helper/StringDefinitionHelper.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% 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
5 plugin tags: youtube, youtube gallery, youtube channel, youtube feed, youtube widget
feeds-for-youtube/youtube-feed.php 92% from 13 tests
Analyzing the main PHP file in "Feeds for YouTube (YouTube video, channel, and gallery plugin)" version 2.1.3
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("feeds-for-youtube.php" instead of "youtube-feed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin50,932 lines of code in 413 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 306 | 4,301 | 9,964 | 31,027 |
CSS | 9 | 506 | 275 | 10,291 |
JavaScript | 19 | 695 | 722 | 6,722 |
Markdown | 15 | 480 | 0 | 1,168 |
JSON | 11 | 0 | 0 | 729 |
PO File | 1 | 215 | 220 | 554 |
SVG | 48 | 0 | 0 | 234 |
YAML | 1 | 4 | 0 | 130 |
XML | 2 | 11 | 3 | 76 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 258.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 22 | |
Traits | 1 | |
Classes | 216 | |
▷ Abstract classes | 10 | 4.63% |
▷ Concrete classes | 206 | 95.37% |
▷ Final classes | 2 | 0.97% |
Methods | 1,382 | |
▷ Static methods | 373 | 26.99% |
▷ Public methods | 1,252 | 90.59% |
▷ Protected methods | 21 | 1.52% |
▷ Private methods | 109 | 7.89% |
Functions | 98 | |
▷ Named functions | 84 | 85.71% |
▷ Anonymous functions | 14 | 14.29% |
Constants | 65 | |
▷ Global constants | 41 | 63.08% |
▷ Class constants | 24 | 36.92% |
▷ Public constants | 23 | 95.83% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 0.62MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
frontend/build/static/images/support-members.png | 6.12KB | 6.19KB | 0.00% |
vendor/smashballoon/customizer/assets/img/sby_lightbox_player.png | 157.13KB | 169.63KB | 0.00% |
img/sw-screenshot.png | 204.00KB | 92.39KB | ▼ 54.71% |
vendor/container-interop/container-interop/docs/images/interoperating_containers.png | 25.13KB | 12.83KB | ▼ 48.97% |
vendor/smashballoon/customizer/assets/img/sby_channel_logo.png | 0.60KB | 0.61KB | 0.00% |