Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.27ms] Passed 4 tests
A check of server-side resources used by BuddyPress Default Group Avatar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.14 ▼0.15 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.97 ▼4.27 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.44 ▲2.68 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.18 ▼14.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.57 ▲1.37 |
BP Default Group Avatar /wp-admin/admin.php?page=group_avatar | 3.22 | 30.88 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
BuddyPress Default Group Avatar: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.48 ▲0.27 | 1.62 ▼0.32 | 36.69 ▼8.43 |
Dashboard /wp-admin | 2,206 ▲14 | 4.87 ▼0.08 | 124.95 ▲0.00 | 54.65 ▲7.03 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▲0.01 | 39.89 ▼3.54 | 35.06 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 18.14 ▲0.58 | 592.62 ▼99.21 | 79.44 ▲27.86 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.12 | 97.28 ▼7.64 | 42.35 ▼3.49 |
BP Default Group Avatar /wp-admin/admin.php?page=group_avatar | 808 | 2.02 | 25.59 | 26.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Settings show the URL input and a preview of your image.) image not found
- Requires at least: Version format is invalid
- Tested up to: Version format is invalid
bp-default-group-avatar/bp-default-group-avatar.php Passed 13 tests
Analyzing the main PHP file in "BuddyPress Default Group Avatar" version 0.2
42 characters long description:
Adds a default group avatar to BuddyPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin132 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 84 | 132 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 2 | 15.38% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 39.33KB | 19.14KB | ▼ 51.35% |