10% buddypress-identicons

Code Review | BuddyPress Identicons

WordPress plugin BuddyPress Identicons scored10%from 54 tests.

About plugin

  • Plugin page: buddypress-identi...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.0
  • WordPress version: 6.3.1
  • First release: Feb 19, 2015
  • Latest release: Mar 9, 2016
  • Number of updates: 38
  • Update frequency: every 10.1 days
  • Top authors: henry.wright (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /3,492 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.87 ▼3.24
Dashboard /wp-admin3.31 ▼0.0448.08 ▼15.91
Posts /wp-admin/edit.php3.36 ▲0.0052.77 ▲1.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.00 ▼4.42
Media Library /wp-admin/upload.php3.23 ▲0.0035.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.23 ▼1.151.92 ▲0.1346.20 ▲0.95
Dashboard /wp-admin2,221 ▲185.82 ▼0.0897.57 ▼9.7839.47 ▼0.91
Posts /wp-admin/edit.php2,097 ▼32.05 ▲0.0139.79 ▲3.9935.66 ▼0.07
Add New Post /wp-admin/post-new.php1,546 ▲2023.71 ▲6.20639.24 ▼50.8160.70 ▲9.21
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0397.56 ▼10.9342.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP6101320281

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 code0.22
Average class complexity9.50
▷ Minimum class complexity9.00
▷ Maximum class complexity10.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods770.00%
▷ Protected methods220.00%
▷ Private methods110.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
images/pixicon.png0.14KB0.14KB0.00%