Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.69ms] Passed 4 tests
Analyzing server-side resources used by Lightweight YouTube Channel Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 36.86 ▼2.71 |
Dashboard /wp-admin | 3.41 ▲0.06 | 46.47 ▼12.99 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.78 ▲5.33 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.02 ▼9.78 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.72 ▲2.73 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_lightweight-youtube-channel-widget |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Lightweight YouTube Channel Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 13.52 ▼1.13 | 1.74 ▼0.41 | 40.42 ▼2.91 |
Dashboard /wp-admin | 2,206 ▲15 | 4.82 ▼0.07 | 109.66 ▲7.14 | 41.22 ▼2.68 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.06 | 41.28 ▲4.47 | 34.38 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 22.89 ▼0.21 | 582.04 ▼61.48 | 54.34 ▼0.26 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.04 | 95.84 ▼8.14 | 41.32 ▼3.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_lightweight-youtube-channel-widget
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lightweight-youtube-channel-widget/inc/widget.php:5
- > 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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: playlist, sidebar, video, youtube, favorites...
lightweight-youtube-channel-widget/youtube-channel.php 92% from 13 tests
This is the main PHP file of "Lightweight YouTube Channel Widget" version 10.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lightweight-youtube-channel-widget.php" instead of "youtube-channel.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected818 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 82 | 103 | 438 |
SVG | 1 | 1 | 1 | 161 |
PO File | 1 | 63 | 68 | 143 |
CSS | 2 | 2 | 1 | 76 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 6.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 7 | 58.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 41.67% |
Functions | 1 | |
▷ Named functions | 1 | 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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/play.png | 1.57KB | 1.30KB | ▼ 16.90% |