Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.66MB] [CPU: ▼53.57ms] Passed 4 tests
A check of server-side resources used by Blue Wrench Video Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼1.12 | 9.52 ▼33.74 |
Dashboard /wp-admin | 2.35 ▼0.99 | 12.49 ▼51.55 |
Posts /wp-admin/edit.php | 2.35 ▼1.00 | 10.93 ▼36.97 |
Add New Post /wp-admin/post-new.php | 2.35 ▼3.53 | 11.95 ▼92.02 |
Media Library /wp-admin/upload.php | 2.35 ▼0.88 | 9.53 ▼22.28 |
BlueWrench Videos /wp-admin/admin.php?page=bw_videos | 2.35 | 11.09 |
Add new video /wp-admin/admin.php?page=bw_videos-manage | 2.35 | 12.30 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_bw_videos |
New WordPress options |
---|
can_compress_scripts |
Blue Wrench Video Widget Version |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_bw_video_widget |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Blue Wrench Video Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲43 | 14.38 ▼0.19 | 1.64 ▼0.35 | 43.66 ▲0.64 |
Dashboard /wp-admin | 2,216 ▲39 | 5.56 ▼0.12 | 94.64 ▼1.25 | 87.87 ▲45.18 |
Posts /wp-admin/edit.php | 2,139 ▲42 | 1.96 ▼0.07 | 37.03 ▼1.12 | 33.73 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 23.10 ▼0.01 | 681.87 ▲33.84 | 64.14 ▲15.07 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.11 ▼0.12 | 112.75 ▲11.96 | 46.07 ▲1.30 |
BlueWrench Videos /wp-admin/admin.php?page=bw_videos | 1,011 | 2.31 | 24.77 | 30.73 |
Add new video /wp-admin/admin.php?page=bw_videos-manage | 947 | 2.00 | 27.06 | 31.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in BlueWrenchVideoWidget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_bw_video_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bw_videos-manage
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in BlueWrenchVideoWidget is deprecated since version 4.3.0! Use __construct() instead.
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
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/blue-wrench-videos-widget/lib/BlueWrenchVideoDatabase.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/blue-wrench-videos-widget/lib/BlueWrenchVideoWidget.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/blue-wrench-videos-widget/lib/BlueWrenchVideoDatabase.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blue-wrench-videos-widget/lib/BlueWrenchVideoDatabase.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/blue-wrench-videos-widget/lib/BlueWrenchVideoDatabase.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/blue-wrench-videos-widget/lib/BlueWrenchVideoDatabase.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/blue-wrench-videos-widget/lib/BlueWrenchVideoDatabase.php on line 3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bw_videos-manage
- > Network (severe)
wp-content/plugins/blue-wrench-videos-widget/bluewrench-video-widget.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bw_videos-manage
- > Network (severe)
wp-content/plugins/bluewrench-video-widget/jquery-ui.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=bw_videos
- > Network (severe)
wp-content/plugins/bluewrench-video-widget/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bw_videos-manage
- > Network (severe)
wp-content/plugins/bluewrench-video-widget/bw_script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bw_videos-manage
- > Network (severe)
wp-content/plugins/bluewrench-video-widget/images/video_icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=bw_videos-manage
- > Network (severe)
wp-content/plugins/bluewrench-video-widget/images/yahoo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== blue-wrench-videos-widget ===
) - Tags: Please delete some tags, you are using 18 tag instead of maximum 10
blue-wrench-videos-widget/bluewrench-video-widget.php 85% from 13 tests
The principal PHP file in "Blue Wrench Video Widget" v. 2.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("blue-wrench-videos-widget.php" instead of "bluewrench-video-widget.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 421 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,123 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 46 | 48 | 1,098 |
PHP | 7 | 114 | 118 | 985 |
JavaScript | 2 | 1 | 0 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 29.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 5 | 11.11% |
▷ Public methods | 42 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.67% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 0.64MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
images/video_icon.png | 0.74KB | 0.65KB | ▼ 12.42% |
images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
images/list_view.png | 0.48KB | 0.45KB | ▼ 7.27% |