93% advanced-xprofile-fields-for-buddypress

Code Review | Advanced XProfile Fields for BuddyPress

WordPress plugin Advanced XProfile Fields for BuddyPress scored 93% from 54 tests.

About plugin

  • Plugin page: advanced-xprofile...
  • Plugin version:
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.4
  • WordPress version: 5.9.2
  • First release: Aug 24, 2015
  • Latest release: Apr 26, 2020
  • Number of updates: 12
  • Update frequency: every 142.3 days
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active / 10,756 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼289.53ms] Passed 4 tests

An overview of server-side resources used by Advanced XProfile Fields for BuddyPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0655.70 ▲8.75
Dashboard /wp-admin3.47 ▲0.0632.90 ▲0.02
Posts /wp-admin/edit.php3.70 ▲0.0642.34 ▲6.46
Add New Post /wp-admin/post-new.php6.94 ▼0.0491.49 ▼1,166.68
Media Library /wp-admin/upload.php3.35 ▲0.0525.09 ▲2.09

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced XProfile Fields for BuddyPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2715.88 ▲0.185.92 ▼0.612.94 ▲0.75
Dashboard /wp-admin2,881 ▲306.13 ▲0.01127.09 ▼9.76165.05 ▲1.48
Posts /wp-admin/edit.php2,694 ▼03.22 ▼0.0165.73 ▲2.84143.65 ▲1.90
Add New Post /wp-admin/post-new.php1,711 ▲5021.25 ▲5.67440.86 ▲19.84154.44 ▲2.30
Media Library /wp-admin/upload.php1,698 ▼05.51 ▲0.02141.10 ▼3.73189.53 ▼1.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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 take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/advanced-xprofile-fields-for-buddypress/admin/template/tab-validation.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-xprofile-fields-for-buddypress/admin/template/tab-labels.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-xprofile-fields-for-buddypress/admin/template/metabox.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/advanced-xprofile-fields-for-buddypress/admin/template/tab-advanced.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt Passed 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
10 plugin tags: buddypress, buddypress groups, xprofile, groups, buddypress xprofile fields...

advanced-xprofile-fields-for-buddypress/sp-advanced-xprofile.php 77% from 13 tests

"Advanced XProfile Fields for BuddyPress" version's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-xprofile-fields-for-buddypress.php" instead of "sp-advanced-xprofile.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin598 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File1343484

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity58.00
▷ Minimum class complexity58.00
▷ Maximum class complexity58.00
Average method complexity6.18
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin