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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.75ms] Passed 4 tests
Analyzing server-side resources used by BuddyPress Group Default Avatar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.64 ▲0.83 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.12 ▲1.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.79 ▼3.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.15 ▼13.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.79 ▲1.44 |
BP Group Default Avatar /wp-admin/admin.php?page=group_avatar | 3.20 | 31.28 |
Server storage [IO: ▲0.02MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyPress Group Default Avatar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.24 ▼0.06 | 1.73 ▲0.12 | 44.20 ▼0.75 |
Dashboard /wp-admin | 2,206 ▼3 | 5.90 ▲0.03 | 109.69 ▲10.83 | 41.31 ▲0.82 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 33.95 ▼0.74 | 34.52 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,538 ▼6 | 23.70 ▲5.61 | 650.30 ▲4.84 | 54.65 ▲5.50 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.06 | 96.01 ▼18.85 | 42.52 ▼5.57 |
BP Group Default Avatar /wp-admin/admin.php?page=group_avatar | 808 | 2.05 | 22.43 | 23.85 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-default-group-avatar/buddypress-default-group-avatar.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 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
These attributes need to be fixed:
- Tested up to: Version not formatted correctly
- Screenshots: Please add an image for screenshot #1 (Settings show the URL input and a preview of your image.)
- Requires at least: Version not formatted correctly
buddypress-default-group-avatar/buddypress-default-group-avatar.php Passed 13 tests
The principal PHP file in "BuddyPress Group Default Avatar" v. 0.1.1 is loaded by WordPress automatically on each request
42 characters long description:
Adds a default group avatar to BuddyPress.
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
Success! There were no dangerous files found in this plugin63 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 26 | 63 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.58KB | 9.17KB | ▼ 53.16% |