Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.52ms] Passed 4 tests
This is a short check of server-side resources used by Embed Youtube Videos
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.97 ▼1.92 |
Dashboard /wp-admin | 3.32 ▲0.01 | 41.73 ▼9.60 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.64 ▼6.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.95 ▼12.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.32 ▼0.11 |
Help /wp-admin/admin.php?page=help_woocommerce_embed_youtube_videos | 3.23 | 30.11 |
Video Manager /wp-admin/admin.php?page=videos_manager_woocommerce_embed_youtube_videos | 3.28 | 24.74 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wc_woocommerce_embed_youtube_videos |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Embed Youtube Videos
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲64 | 13.27 ▼1.46 | 4.78 ▲2.96 | 39.52 ▼2.88 |
Dashboard /wp-admin | 2,234 ▲25 | 4.91 ▼1.01 | 96.47 ▼1.75 | 71.87 ▲36.05 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▲0.02 | 36.39 ▲0.79 | 34.11 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,430 ▼98 | 17.98 ▼0.37 | 699.54 ▲25.57 | 55.77 ▼6.05 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.18 ▲0.01 | 98.79 ▼0.85 | 48.61 ▼1.28 |
Help /wp-admin/admin.php?page=help_woocommerce_embed_youtube_videos | 872 | 2.02 | 23.42 | 25.94 |
Video Manager /wp-admin/admin.php?page=videos_manager_woocommerce_embed_youtube_videos | 849 | 2.02 | 23.43 | 20.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=videos_manager_woocommerce_embed_youtube_videos
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/embed-youtube-videos/admin/woocommerce_embed_youtube_videos_help.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: detail in wp-content/plugins/embed-youtube-videos/item_detail.php on line 2
- > PHP Notice
Undefined variable: detail in wp-content/plugins/embed-youtube-videos/item_tab.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/embed-youtube-videos/admin/woocommerce_embed_youtube_videos_form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/embed-youtube-videos/index.php:21
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=videos_manager_woocommerce_embed_youtube_videos
- > Network (severe)
wp-content/plugins/embed-youtube-videos/admin/css/woocommerce_embed_youtube_videos.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in embed-youtube-videos/assets to your readme.txt
embed-youtube-videos/index.php 92% from 13 tests
The entry point to "Embed Youtube Videos" version 4.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("embed-youtube-videos.php" instead of "index.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
Good job! No executable or dangerous file extensions detected703 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 57 | 12 | 401 |
CSS | 2 | 38 | 3 | 295 |
SQL | 1 | 3 | 0 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
adminicon.png | 12.10KB | 0.99KB | ▼ 91.80% |