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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.42ms] Passed 4 tests
Analyzing server-side resources used by On The Fly YouTube Embeds
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 43.24 ▼8.28 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.76 ▼5.78 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.60 ▲2.19 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 99.79 ▼0.82 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.18 ▲1.20 |
OTF YouTube Embeds /wp-admin/options-general.php?page=on-the-fly-youtube-embeds/main.php | 3.25 | 32.11 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for On The Fly YouTube Embeds
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.01 | 1.80 ▼0.26 | 44.58 ▼0.84 |
Dashboard /wp-admin | 2,199 ▲28 | 5.61 ▼0.06 | 90.82 ▼7.38 | 42.06 ▼2.96 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▼0.02 | 39.86 ▲1.73 | 36.32 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.22 ▲0.18 | 674.38 ▼15.30 | 52.14 ▲2.67 |
Media Library /wp-admin/upload.php | 1,398 ▲4 | 4.26 ▲0.07 | 98.27 ▼9.67 | 40.63 ▼7.15 |
OTF YouTube Embeds /wp-admin/options-general.php?page=on-the-fly-youtube-embeds/main.php | 1,066 | 2.01 | 26.30 | 48.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 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 50% 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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/on-the-fly-youtube-embeds/main.php:149
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Settings screen), #2 (This page was dynamically created simply by visiting http://JoeAnzalone.com/video/SCsKRbChILA/)
on-the-fly-youtube-embeds/main.php 85% from 13 tests
The principal PHP file in "On The Fly YouTube Embeds" v. 1.1.3 is loaded by WordPress automatically on each request
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("on-the-fly-youtube-embeds.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected491 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 119 | 156 | 414 |
CSS | 1 | 9 | 11 | 63 |
JavaScript | 1 | 5 | 1 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.66MB with 0.47MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 155.65KB | 46.24KB | ▼ 70.29% |
screenshot-2.png | 517.83KB | 141.94KB | ▼ 72.59% |