Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.10MB] [CPU: ▼3.07ms] Passed 4 tests
Analyzing server-side resources used by Enhanced YouTube Embed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.82 ▲1.36 | 47.45 ▲0.04 |
Dashboard /wp-admin | 4.71 ▲1.40 | 59.91 ▲11.74 |
Posts /wp-admin/edit.php | 4.72 ▲1.36 | 64.45 ▲9.99 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 60.44 ▼34.05 |
Media Library /wp-admin/upload.php | 4.60 ▲1.37 | 49.29 ▲13.78 |
Server storage [IO: ▲8.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 473 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Enhanced YouTube Embed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,180 ▲434 | 19.16 ▲4.98 | 4.89 ▲2.84 | 36.18 ▼7.01 |
Dashboard /wp-admin | 2,486 ▲295 | 9.25 ▲4.38 | 194.16 ▲89.47 | 41.97 ▲5.10 |
Posts /wp-admin/edit.php | 2,411 ▲325 | 6.16 ▲4.10 | 86.39 ▲48.70 | 36.43 ▲2.83 |
Add New Post /wp-admin/post-new.php | 6,237 ▲4,703 | 21.99 ▼1.42 | 972.25 ▲283.71 | 48.51 ▼14.40 |
Media Library /wp-admin/upload.php | 1,538 ▲153 | 6.59 ▲2.41 | 112.70 ▲13.05 | 46.06 ▲1.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | 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
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/enhanced-youtube-embed/public/partials/enhanced-youtube-embed-public-display.php
- > /wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/enhanced-youtube-embed/admin/partials/enhanced-youtube-embed-admin-display.php
- 112× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Format_Condition.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/templates/Container/comment_meta.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/core/Field/Complex_Field.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container' not found in wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/core/Block.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/core/Datastore/Theme_Options_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Condition.php:30
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/core/Field/Select_Field.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/core/Field/Broken_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/core/Field/Html_Field.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/enhanced-youtube-embed/vendor/htmlburger/carbon-fields/core/Field/Media_Gallery_Field.php:14
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: video, youtube, embed
enhanced-youtube-embed/enhanced-youtube-embed.php Passed 13 tests
"Enhanced YouTube Embed" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
Additional options and settings for embedding YouTube videos with the block editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected28,092 lines of code in 419 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 173 | 5,192 | 8,513 | 12,939 |
PHP | 156 | 2,602 | 7,205 | 9,065 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 48 | 339 | 0 | 1,769 |
CSS | 9 | 330 | 1,147 | 1,689 |
JSON | 4 | 0 | 0 | 360 |
Markdown | 3 | 24 | 0 | 68 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 129 | |
▷ Abstract classes | 11 | 8.53% |
▷ Concrete classes | 118 | 91.47% |
▷ Final classes | 1 | 0.85% |
Methods | 927 | |
▷ Static methods | 92 | 9.92% |
▷ Public methods | 752 | 81.12% |
▷ Protected methods | 165 | 17.80% |
▷ Private methods | 10 | 1.08% |
Functions | 106 | |
▷ Named functions | 24 | 22.64% |
▷ Anonymous functions | 82 | 77.36% |
Constants | 29 | |
▷ Global constants | 6 | 20.69% |
▷ Class constants | 23 | 79.31% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin