78% buddypress-xprofiles-acl

Code Review | BuddyPress xProfiles ACL

WordPress plugin BuddyPress xProfiles ACL scored78%from 54 tests.

About plugin

  • Plugin page: buddypress-xprofi...
  • Plugin version: 0.20.4
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2
  • WordPress version: 6.3.1
  • First release: Aug 26, 2010
  • Latest release: Jun 5, 2019
  • Number of updates: 47
  • Update frequency: every 68.2 days
  • Top authors: nettantra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /15,971 total downloads

Benchmarks

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
Install script ran successfully

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

A check of server-side resources used by BuddyPress xProfiles ACL
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.86 ▲3.02
Dashboard /wp-admin3.31 ▲0.0045.89 ▲4.36
Posts /wp-admin/edit.php3.36 ▲0.0043.65 ▼2.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.30 ▼26.97
Media Library /wp-admin/upload.php3.23 ▲0.0036.05 ▲6.22
BP xProfiles ACL /wp-admin/options-general.php?page=bp-profiles-acl-manager3.0023.75

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for BuddyPress xProfiles ACL
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.39 ▲0.011.69 ▲0.2341.86 ▲3.53
Dashboard /wp-admin2,198 ▲175.59 ▼0.1290.81 ▼14.5937.38 ▼0.15
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0438.62 ▼1.0736.22 ▼0.97
Add New Post /wp-admin/post-new.php1,537 ▲1118.16 ▼5.37612.08 ▲7.2369.66 ▲19.56
Media Library /wp-admin/upload.php1,394 ▼94.22 ▲0.04103.88 ▲9.3046.63 ▲3.67
BP xProfiles ACL /wp-admin/options-general.php?page=bp-profiles-acl-manager280.420.073.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-xprofiles-acl/buddypress-xprofiles-acl.php:311

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=bp-profiles-acl-manager
    • > Network (severe)
    wp-admin/options-general.php?page=bp-profiles-acl-manager - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

buddypress-xprofiles-acl/buddypress-xprofiles-acl.php 92% from 13 tests

"BuddyPress xProfiles ACL" version 0.20.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 304 characters long)

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
Everything looks great! No dangerous files found in this plugin357 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11612285
PO File2253772

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity7.17
▷ Minimum method complexity3.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin