93% doppelme-avatars

Code Review | DoppelMe Avatar Buddypress Integration

WordPress plugin DoppelMe Avatar Buddypress Integration scored 93% from 54 tests.

About plugin

  • Plugin page: doppelme-avatars
  • Plugin version: 1.04
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Sep 1, 2012
  • Latest release: Jul 9, 2013
  • Number of updates: 14
  • Update frequency: every 120.3 days
  • Top authors: DoppelMe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,687 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼319.73ms] Passed 4 tests

Server-side resources used by DoppelMe Avatar Buddypress Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0156.16 ▼55.15
Dashboard /wp-admin3.42 ▲0.0157.97 ▲21.77
Posts /wp-admin/edit.php3.65 ▲0.0140.83 ▲1.24
Add New Post /wp-admin/post-new.php6.89 ▼0.0994.50 ▼1,226.65
Media Library /wp-admin/upload.php3.30 ▲0.0028.44 ▲1.65

Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for DoppelMe Avatar Buddypress Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲4515.77 ▼0.195.78 ▲0.052.01 ▼0.47
Dashboard /wp-admin2,895 ▲416.11 ▼0.03118.83 ▼27.32170.75 ▲6.54
Posts /wp-admin/edit.php2,691 ▲63.23 ▼0.0066.22 ▲0.35145.31 ▲3.02
Add New Post /wp-admin/post-new.php1,655 ▼9620.99 ▼0.04453.91 ▼18.35176.84 ▼20.24
Media Library /wp-admin/upload.php1,692 ▼55.52 ▼0.00138.35 ▼53.98191.10 ▲1.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/doppelme-avatars/templates/members/single/plugins.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/doppelme-avatars/includes/bp-doppelme-avatar.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/doppelme-avatars/doppelme.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'DoppelMe' not found in wp-content/plugins/doppelme-avatars/includes/bp-doppelme-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/doppelme-avatars/includes/bp-doppelme-avatar.php:81

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Requires at least: The plugin version is formatted incorrectly
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The avatar editor as part of the users profile area), #2 (Updating your avatar), #3 (Users' avatars used on the site)
Please take inspiration from this readme.txt

doppelme-avatars/doppelme.php 92% from 13 tests

Analyzing the main PHP file in "DoppelMe Avatar Buddypress Integration" version 1.04
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("doppelme-avatars.php" instead of "doppelme.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected774 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP619393774

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png49.44KB15.55KB▼ 68.55%
screenshot-1.png63.37KB17.99KB▼ 71.61%
screenshot-2.png71.77KB21.39KB▼ 70.20%