84% bp-edit-user-profiles

Code Review | BP Edit User Profiles

WordPress plugin BP Edit User Profiles scored84%from 54 tests.

About plugin

  • Plugin page: bp-edit-user-prof...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 6.3.1
  • First release: Feb 28, 2011
  • Latest release: Dec 15, 2016
  • Number of updates: 11
  • Update frequency: every 192.6 days
  • Top authors: seannewby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /6,571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by BP Edit User Profiles
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.54 ▼9.88
Dashboard /wp-admin3.32 ▼0.0342.46 ▼13.14
Posts /wp-admin/edit.php3.37 ▲0.0148.27 ▼0.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0176.53 ▼15.69
Media Library /wp-admin/upload.php3.24 ▲0.0134.39 ▲1.21

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for BP Edit User Profiles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.131.79 ▼0.2839.89 ▼11.19
Dashboard /wp-admin2,206 ▲215.90 ▲0.97111.00 ▼30.0041.14 ▼5.54
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0040.62 ▼3.3334.82 ▼4.91
Add New Post /wp-admin/post-new.php1,533 ▲1423.31 ▼0.03635.29 ▼52.3564.83 ▲7.18
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.02108.46 ▲5.0244.96 ▲1.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-edit-user-profiles/bp-edit-user-profiles.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: users, profiles, buddypress

bp-edit-user-profiles/bp-edit-user-profiles.php Passed 13 tests

The principal PHP file in "BP Edit User Profiles" v. 1.3.1 is loaded by WordPress automatically on each request
109 characters long description:
Adds a "Edit BuddyPress Profile" link to the users page in the dashboard if current user is an administrator.

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
Success! There were no dangerous files found in this plugin26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192626

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin