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 gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.71ms] Passed 4 tests
Server-side resources used by BuddyPress First Letter Avatar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.73 ▼1.27 |
Dashboard /wp-admin | 3.47 ▲0.16 | 52.86 ▼4.60 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 52.59 ▼3.11 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 98.58 ▼9.87 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 43.52 ▲5.40 |
BuddyPress First Letter Avatar /wp-admin/options-general.php?page=buddypress_first_letter_avatar | 3.36 | 32.51 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,465 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
bpfla_settings |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress First Letter Avatar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲49 | 14.29 ▼0.08 | 1.55 ▲0.01 | 43.75 ▼0.77 |
Dashboard /wp-admin | 2,216 ▲39 | 5.59 ▲0.06 | 87.34 ▲1.76 | 79.06 ▲31.71 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 1.97 ▼0.03 | 40.50 ▼3.12 | 38.11 ▼4.87 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.65 ▼0.01 | 721.22 ▲29.16 | 54.76 ▲0.94 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.13 ▼0.08 | 97.40 ▼6.03 | 69.89 ▲29.26 |
BuddyPress First Letter Avatar /wp-admin/options-general.php?page=buddypress_first_letter_avatar | 1,017 | 2.11 | 25.35 | 29.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=buddypress_first_letter_avatar
- > Network (severe)
http://i2.wp.com/wp.com/wp-content/plugins/buddypress-first-letter-avatar/images/default/96/latin_a.png - Failed to load resource: the server responded with a status of 404 (File Not Found)
- > GET request to /wp-admin/options-general.php?page=buddypress_first_letter_avatar
- > Network (severe)
http://i2.wp.com/wp.com/wp-content/plugins/buddypress-first-letter-avatar/images/default/48/latin_a.png - Failed to load resource: the server responded with a status of 404 (File Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
buddypress-first-letter-avatar/buddypress-first-letter-avatar.php Passed 13 tests
The main PHP script in "BuddyPress First Letter Avatar" version 2.2.8 is automatically included on every request by WordPress
136 characters long description:
Set custom avatars for BuddyPress users. The avatar will be the first (or any other) letter of the user's name on a colorful background.
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
No dangerous file extensions were detected853 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 219 | 269 | 616 |
PO File | 2 | 72 | 86 | 232 |
CSS | 1 | 4 | 11 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 57.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 5.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1455 compressed PNG files occupy 1.30MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/roboto/256/greek_922.png | 1.02KB | 1.03KB | 0.00% |
images/opensans/512/latin_j.png | 1.21KB | 1.06KB | ▼ 12.96% |
images/roboto/128/cyrillic_1091.png | 0.63KB | 0.67KB | 0.00% |
images/opensans/512/latin_d.png | 1.99KB | 2.26KB | 0.00% |
images/default/512/cyrillic_1101.png | 2.35KB | 2.33KB | ▼ 0.87% |