Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼144.00ms] Passed 4 tests
A check of server-side resources used by YouTube Upload Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 34.48 ▼6.61 |
Dashboard /wp-admin | 3.08 ▲0.03 | 49.28 ▼1.57 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 49.40 ▼0.47 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.97 ▼567.33 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 36.28 ▲3.15 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for YouTube Upload Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲84 | 15.99 ▲0.46 | 11.99 ▲1.32 | 47.14 ▼4.87 |
Dashboard /wp-admin | 2,973 ▲42 | 6.10 ▲0.12 | 149.58 ▼11.34 | 112.17 ▲1.12 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 72.46 ▼2.38 | 87.85 ▼16.97 |
Add New Post /wp-admin/post-new.php | 1,685 ▲2 | 18.48 ▼0.22 | 391.25 ▼32.86 | 114.06 ▲1.32 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.04 ▼0.00 | 154.99 ▼14.11 | 116.49 ▼3.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_print_scripts() in wp-content/plugins/youtube-upload-widget/yt-popup.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-upload-widget/youtube.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: record, webcam, google, video, youtube...
youtube-upload-widget/youtube.php 77% from 13 tests
The main file in "YouTube Upload Widget" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 341 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("youtube-upload-widget.php" instead of "youtube.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
Success! There were no dangerous files found in this plugin221 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 45 | 165 |
JavaScript | 1 | 3 | 17 | 56 |
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.14 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/yt-icon.png | 2.28KB | 0.76KB | ▼ 66.77% |
img/logo-icon-small-vflPKchsX.png | 8.79KB | 3.28KB | ▼ 62.74% |
img/yt-icon-color.png | 2.44KB | 0.92KB | ▼ 62.23% |
img/yt-brand-standard-logo.png | 3.61KB | 2.42KB | ▼ 33.05% |