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.28MB] [CPU: ▼4.05ms] Passed 4 tests
An overview of server-side resources used by YouTube Embed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 45.03 ▲1.44 |
Dashboard /wp-admin | 3.58 ▲0.27 | 48.26 ▼7.82 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 46.81 ▲1.23 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 98.25 ▼11.03 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 39.28 ▲6.83 |
Lists /wp-admin/admin.php?page=ye-list-options | 3.51 | 37.54 |
Profiles /wp-admin/admin.php?page=ye-profile-options | 3.73 | 42.24 |
YouTube Embed /wp-admin/options-general.php?page=ye-general-options | 3.59 | 47.21 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-posts |
youtube_embed_shortcode |
youtube_embed_shortcode_site |
youtube_embed_shortcode_admin |
youtube_embed_version |
widget_recent-comments |
can_compress_scripts |
youtube_embed_general |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by YouTube Embed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲113 | 13.28 ▼1.11 | 1.89 ▼0.22 | 42.41 ▼8.61 |
Dashboard /wp-admin | 2,235 ▲50 | 4.85 ▼1.01 | 98.29 ▼3.99 | 38.25 ▼3.74 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.00 ▲0.04 | 38.17 ▲0.44 | 36.33 ▲3.43 |
Add New Post /wp-admin/post-new.php | 1,555 ▲36 | 23.17 ▲0.05 | 682.99 ▲13.42 | 53.17 ▼0.87 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.22 ▲0.04 | 94.82 ▼3.74 | 40.44 ▼2.13 |
Lists /wp-admin/admin.php?page=ye-list-options | 943 | 2.02 | 23.88 | 32.75 |
Profiles /wp-admin/admin.php?page=ye-profile-options | 3,552 | 16.69 | 530.47 | 86.40 |
YouTube Embed /wp-admin/options-general.php?page=ye-general-options | 1,401 | 2.19 | 27.42 | 35.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_youtube_embed_widget
- can_compress_scripts
- widget_recent-posts
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 | 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
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/youtube-embed/includes/add-scripts.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/youtube-embed/youtube-embed.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/youtube-embed/includes/admin-config.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/youtube-embed/includes/options-general.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/youtube-embed/includes/generate-widgets.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-embed/includes/caching.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function ye_get_profile() in wp-content/plugins/youtube-embed/includes/options-profiles.php:360
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/youtube-embed/includes/shortcodes.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function ye_get_list() in wp-content/plugins/youtube-embed/includes/options-lists.php:89
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: youtube, video, embed, insert
youtube-embed/youtube-embed.php Passed 13 tests
The primary PHP file in "YouTube Embed" version 5.3 is used by WordPress to initiate all plugin functionality
107 characters long description:
🎥 An incredibly fast, simple, yet powerful, method of embedding YouTube videos into your WordPress site.
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
Everything looks great! No dangerous files found in this plugin3,860 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 905 | 859 | 2,978 |
JavaScript | 3 | 188 | 49 | 848 |
CSS | 4 | 3 | 0 | 34 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 59 | |
▷ Named functions | 59 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cross.png | 0.15KB | 0.18KB | 0.00% |
images/tick.png | 0.15KB | 0.19KB | 0.00% |