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 gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.04ms] Passed 4 tests
An overview of server-side resources used by Youtube Embed Performance
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.08 | 47.08 ▲3.13 |
Dashboard /wp-admin | 3.71 ▲0.15 | 57.38 ▲0.95 |
Posts /wp-admin/edit.php | 3.76 ▲0.08 | 59.61 ▲6.96 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.08 | 91.32 ▼10.22 |
Media Library /wp-admin/upload.php | 3.57 ▲0.08 | 43.13 ▲5.98 |
WA plugins /wp-admin/admin.php?page=wa-plugins | 3.54 | 34.54 |
YouTube Embed /wp-admin/options-general.php?page=yep_youtube_embed | 3.54 | 44.80 |
YouTube Embed /wp-admin/admin.php?page=yep_youtube_embed | 3.54 | 31.85 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
yep_version |
can_compress_scripts |
yep_date_install |
yep_settings |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Youtube Embed Performance
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.72 ▲0.04 | 1.78 ▲0.01 | 42.40 ▼2.97 |
Dashboard /wp-admin | 2,227 ▲56 | 5.66 ▲0.03 | 85.79 ▼4.48 | 41.08 ▼7.22 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.04 ▲0.05 | 38.24 ▼1.35 | 35.51 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,564 ▲19 | 23.24 ▼0.13 | 651.40 ▼55.57 | 58.74 ▲4.90 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.20 ▼0.00 | 107.85 ▼0.93 | 47.08 ▲1.55 |
WA plugins /wp-admin/admin.php?page=wa-plugins | 795 | 2.06 | 25.07 | 25.58 |
YouTube Embed /wp-admin/options-general.php?page=yep_youtube_embed | 957 | 2.03 | 25.42 | 26.42 |
YouTube Embed /wp-admin/admin.php?page=yep_youtube_embed | 960 | 2.03 | 22.52 | 28.26 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png)
yep-youtube-embed/yep-youtube-embed.php Passed 13 tests
"Youtube Embed Performance" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
This plugin make your video in publications fast and responsive.
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
Everything looks great! No dangerous files found in this plugin585 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 176 | 40 | 360 |
PO File | 2 | 52 | 54 | 171 |
JavaScript | 1 | 5 | 0 | 45 |
CSS | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 32.61KB | 15.63KB | ▼ 52.07% |
screenshot-2.png | 41.41KB | 20.22KB | ▼ 51.17% |