Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.09ms] Passed 4 tests
A check of server-side resources used by BP User Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.80 ▼0.13 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.47 ▼0.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.60 ▼1.17 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.42 ▼10.94 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.27 ▲2.06 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_bp_user_widgets |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
BP User Widgets: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲165 | 13.85 ▼0.44 | 8.88 ▲6.47 | 42.76 ▼3.47 |
Dashboard /wp-admin | 2,203 ▲15 | 5.77 ▲0.90 | 107.56 ▼4.06 | 39.72 ▲2.14 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.01 ▼0.04 | 38.92 ▼4.23 | 35.20 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.12 ▼0.29 | 587.57 ▼113.49 | 54.92 ▼4.14 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.24 ▼0.04 | 94.24 ▼5.09 | 41.21 ▲0.63 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_bp_user_widgets
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bp-user-widgets/includes/bpuw-widget-class.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
bp-user-widgets/bp-user-widgets.php 92% from 13 tests
"BP User Widgets" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 233 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,984 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 46 | 53 | 1,232 |
PHP | 5 | 382 | 132 | 1,047 |
JavaScript | 1 | 89 | 33 | 522 |
PO File | 1 | 72 | 76 | 183 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 85.00 |
▷ Minimum class complexity | 85.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 22.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/jquery/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
vendor/jquery/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
vendor/jquery/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |
vendor/jquery/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
vendor/jquery/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |