Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/buddypress-identicons/buddypress-identicons.php+41
Uncaught Error: Call to undefined function update_blog_option() in wp-content/plugins/buddypress-identicons/buddypress-identicons.php:41
Stack trace:
#0 wp-includes/class-wp-hook.php(310): identicons_set_avatar_default()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.20ms] Passed 4 tests
Analyzing server-side resources used by BuddyPress Identicons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.87 ▼3.24 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.08 ▼15.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.77 ▲1.15 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 98.00 ▼4.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.70 ▼1.22 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyPress Identicons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 13.23 ▼1.15 | 1.92 ▲0.13 | 46.20 ▲0.95 |
Dashboard /wp-admin | 2,221 ▲18 | 5.82 ▼0.08 | 97.57 ▼9.78 | 39.47 ▼0.91 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.05 ▲0.01 | 39.79 ▲3.99 | 35.66 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.71 ▲6.20 | 639.24 ▼50.81 | 60.70 ▲9.21 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.03 | 97.56 ▼10.93 | 42.67 ▼5.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/buddypress-identicons/inc/filters.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-identicons/buddypress-identicons.php:33
- > PHP Fatal error
Uncaught Error: Class 'Identicon' not found in wp-content/plugins/buddypress-identicons/inc/classes/pixicon.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-identicons/inc/actions.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: buddypress, users, avatars, identicons
buddypress-identicons/buddypress-identicons.php Passed 13 tests
This is the main PHP file of "BuddyPress Identicons" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Fun identicons for your BuddyPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin281 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 101 | 320 | 281 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 2 | 20.00% |
▷ Private methods | 1 | 10.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pixicon.png | 0.14KB | 0.14KB | 0.00% |