Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.92ms] Passed 4 tests
Analyzing server-side resources used by Simple Youtube Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 35.91 ▼3.92 |
Dashboard /wp-admin | 3.35 ▲0.01 | 47.86 ▼10.53 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.73 ▲1.68 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.88 ▼14.91 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.80 ▲2.40 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_simple_youtube_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Simple Youtube Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.78 ▲0.41 | 1.85 ▲0.18 | 38.74 ▼5.16 |
Dashboard /wp-admin | 2,203 ▲24 | 5.84 ▲0.89 | 99.33 ▼7.20 | 39.96 ▼9.67 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 35.47 ▲0.20 | 33.23 ▼5.11 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.26 ▲2.05 | 647.25 ▼10.59 | 57.37 ▲0.27 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.42 ▲0.19 | 96.27 ▲1.83 | 43.64 ▲1.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_simple_youtube_widget
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-youtube-widget/simpleyoutube_plugin_widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid plugin version format
- Screenshots: Please add images for these screenshots: #1 (Screenshot of the front end with one feed), #2 (Screenshot of Backend widget area), #3 (Screenshot of how to get video id), #4 (Screenshot of how to get playlist id)
simple-youtube-widget/simpleyoutube_plugin_widget.php 92% from 13 tests
Analyzing the main PHP file in "Simple Youtube Widget" version 2.5.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-youtube-widget.php" instead of "simpleyoutube_plugin_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected187 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 30 | 140 |
JavaScript | 1 | 14 | 0 | 47 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.32MB with 0.16MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 3.53KB | 2.70KB | ▼ 23.45% |
screenshot-1.png | 208.23KB | 56.29KB | ▼ 72.97% |
screenshot-2.png | 112.65KB | 34.58KB | ▼ 69.30% |
screenshot-4.png | 5.59KB | 3.93KB | ▼ 29.67% |