90% bp-private-avatars

Code Review | Private Avatars for BuddyPress

WordPress plugin Private Avatars for BuddyPress scored 90% from 54 tests.

About plugin

  • Plugin page: bp-private-avatars
  • Plugin version: 1.0.3.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2015
  • Latest release: Jul 15, 2020
  • Number of updates: 16
  • Update frequency: every 111.7 days
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,945 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.02ms] Passed 4 tests

An overview of server-side resources used by Private Avatars for BuddyPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.11 ▼1.91
Dashboard /wp-admin3.31 ▲0.0044.84 ▼9.28
Posts /wp-admin/edit.php3.36 ▲0.0050.25 ▼6.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.07 ▼8.27
Media Library /wp-admin/upload.php3.23 ▲0.0034.52 ▼4.24

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Private Avatars for BuddyPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.23 ▼0.101.84 ▼3.5643.64 ▼4.98
Dashboard /wp-admin2,209 ▼05.84 ▼0.01102.73 ▼10.4839.37 ▼4.47
Posts /wp-admin/edit.php2,092 ▲31.99 ▲0.0139.46 ▲1.6936.04 ▲3.22
Add New Post /wp-admin/post-new.php1,533 ▲1923.27 ▲5.62673.11 ▼22.7559.53 ▲3.38
Media Library /wp-admin/upload.php1,388 ▲34.12 ▼0.04110.27 ▼11.6848.97 ▼1.57

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: private avatar, buddypress avatar, suiteplugins buddypress, avatars, buddypress...

bp-private-avatars/bp-private-avatars.php 92% from 13 tests

The entry point to "Private Avatars for BuddyPress" version 1.0.3.1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin111 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11969111

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin