89% bp-profile-status

Code Review | BP Profile Status

WordPress plugin BP Profile Status scored89%from 54 tests.

About plugin

  • Plugin page: bp-profile-status
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 27, 2015
  • Latest release: Jun 19, 2017
  • Number of updates: 8
  • Update frequency: every 75.2 days
  • Top authors: sanket.parmar (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /5,718 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.64ms] Passed 4 tests

This is a short check of server-side resources used by BP Profile Status
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0721.36 ▼18.25
Dashboard /wp-admin3.31 ▲0.0145.73 ▼2.77
Posts /wp-admin/edit.php3.36 ▲0.0146.64 ▲1.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.78 ▼4.81
Media Library /wp-admin/upload.php3.24 ▲0.0133.29 ▼0.73

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by BP Profile Status
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼30613.57 ▼1.213.03 ▲1.2416.70 ▼26.71
Dashboard /wp-admin2,200 ▲95.95 ▲1.07105.46 ▼0.0939.34 ▼7.28
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0336.95 ▲1.0631.35 ▼2.76
Add New Post /wp-admin/post-new.php1,519 ▲523.02 ▲5.44662.18 ▼37.5272.39 ▲19.73
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0194.61 ▼8.0642.46 ▼1.98

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
The official readme.txt might help

bp-profile-status/bp-profile-status.php Passed 13 tests

"BP Profile Status" version 1.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
30 characters long description:
Profile Status for BuddyPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin732 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.80
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2472.73%
▷ Protected methods00.00%
▷ Private methods927.27%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected