90% buddypress-profile-completion

Code Review | BuddyPress Profile Completion

WordPress plugin BuddyPress Profile Completion scored 90% from 54 tests.

About plugin

  • Plugin page: buddypress-profil...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Jan 29, 2019
  • Latest release: Aug 11, 2023
  • Number of updates: 15
  • Update frequency: every 110.8 days
  • Top authors: sbrajesh (53.33%)raviousprime (40%)buddydev (20%)

Code review

54 tests

User reviews

9 reviews

Install metrics

900+ active / 18,394 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.13ms] Passed 4 tests

Analyzing server-side resources used by BuddyPress Profile Completion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.44 ▼1.89
Dashboard /wp-admin3.34 ▲0.0447.31 ▼4.04
Posts /wp-admin/edit.php3.45 ▲0.1046.79 ▲0.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.57 ▼16.93
Media Library /wp-admin/upload.php3.26 ▲0.0434.99 ▼1.64

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
bpprocn_settings
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyPress Profile Completion
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.41 ▲0.381.77 ▼0.1439.96 ▲2.95
Dashboard /wp-admin2,206 ▲154.86 ▼0.03105.45 ▼1.0942.68 ▲1.38
Posts /wp-admin/edit.php2,089 ▲31.99 ▼0.0636.98 ▲0.9234.63 ▲2.78
Add New Post /wp-admin/post-new.php1,542 ▲2318.46 ▼4.61618.77 ▼1.4271.70 ▲25.12
Media Library /wp-admin/upload.php1,382 ▼64.31 ▲0.05108.77 ▲2.9542.47 ▼1.37

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
  • Zombie WordPress options were found after uninstall: 7 options
    • bpprocn_settings
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
3 plugin tags: buddypress, user, profile

buddypress-profile-completion/bp-profile-completion.php 92% from 13 tests

The main PHP file in "BuddyPress Profile Completion" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("buddypress-profile-completion.php" instead of "bp-profile-completion.php")

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
No dangerous file extensions were detected1,591 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP196211,3811,450
PO File1232576
JavaScript2171762
Markdown1103

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.20
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity1.99
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods130
▷ Static methods64.62%
▷ Public methods12193.08%
▷ Protected methods00.00%
▷ Private methods96.92%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.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
No PNG files were detected