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.04MB] [CPU: ▼7.26ms] Passed 4 tests
A check of server-side resources used by Simple YouTube Embed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.45 ▼0.41 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.76 ▼8.75 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.21 ▼2.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 86.75 ▼17.44 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.59 ▼0.09 |
Simple YouTube Embed /wp-admin/options-general.php?page=simple-youtube-embed-settings | 3.24 | 33.73 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Simple YouTube Embed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.54 ▲0.36 | 2.10 ▲0.39 | 44.39 ▲3.77 |
Dashboard /wp-admin | 2,199 ▲19 | 5.56 ▼0.04 | 86.72 ▼1.92 | 41.41 ▼4.03 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▼0.05 | 39.42 ▼1.07 | 35.52 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.12 ▼0.14 | 704.32 ▲49.26 | 54.61 ▼11.90 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▼0.11 | 110.60 ▲5.52 | 49.58 ▲2.04 |
Simple YouTube Embed /wp-admin/options-general.php?page=simple-youtube-embed-settings | 807 | 2.14 | 28.14 | 38.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: youtube, embed, video, iframe, responsive
simple-youtube-embed/main.php 92% from 13 tests
The main PHP script in "Simple YouTube Embed" version 1.1.0.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-youtube-embed.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin327 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 21 | 231 |
JavaScript | 3 | 11 | 15 | 62 |
CSS | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.56 |
▷ 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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
extensions/images/simple-youtube-embed-advanced-parameters.png | 3.98KB | 2.00KB | ▼ 49.72% |