Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.09ms] Passed 4 tests
This is a short check of server-side resources used by Widget Responsive for Youtube
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.22 | 43.03 ▼5.30 |
Dashboard /wp-admin | 46.81 ▲0.01 | 8,941,779.33 ▲8,438.99 |
Posts /wp-admin/edit.php | 3.69 ▲0.29 | 53.42 ▲1.37 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.22 | 89.29 ▼6.11 |
Media Library /wp-admin/upload.php | 3.50 ▲0.22 | 39.01 ▲1.70 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_youtube_responsive |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Widget Responsive for Youtube: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 13.46 ▼1.15 | 10.22 ▲8.33 | 42.80 ▲1.19 |
Dashboard /wp-admin | 2,195 ▲23 | 5.61 ▼0.01 | 90.64 ▼12.35 | 42.47 ▲2.33 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.01 | 39.35 ▼1.01 | 36.09 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.35 ▼0.10 | 610.27 ▼73.20 | 68.13 ▲14.81 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.12 ▼0.09 | 100.41 ▼19.63 | 42.95 ▼5.09 |
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 detected upon uninstall: 7 options
- widget_youtube_responsive
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- 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 | 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 items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/youtube-widget-responsive/youtube-widget-responsive.php:14
- > PHP Fatal error
Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/youtube-widget-responsive/js_composer.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
youtube-widget-responsive/youtube-widget-responsive.php Passed 13 tests
Analyzing the main PHP file in "Widget Responsive for Youtube" version 1.6.2
112 characters long description:
Widgets responsive and shorcode to embed youtube in your sidebar or in your content, with all available options.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,463 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 42 | 41 | 1,299 |
PO File | 12 | 409 | 418 | 1,164 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 129.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 256.00 |
Average method complexity | 24.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.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 | 11 | |
▷ Static methods | 4 | 36.36% |
▷ Public methods | 11 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
YouTube-icon.png | 21.62KB | 1.28KB | ▼ 94.07% |