100% bp-xprofile-custom-field-types

Code Review | BuddyPress Xprofile Custom Field Types

WordPress plugin BuddyPress Xprofile Custom Field Types scored 100% from 54 tests.

About plugin

  • Plugin page: bp-xprofile-custo...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 5.8.1
  • First release: May 28, 2018
  • Latest release: Sep 9, 2021
  • Number of updates: 31
  • Update frequency: every 38.8 days
  • Top authors: sbrajesh (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

7,000+ active / 78,101 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by BuddyPress Xprofile Custom Field Types
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0537.66 ▲4.84
Dashboard /wp-admin3.10 ▲0.0562.03 ▲8.55
Posts /wp-admin/edit.php3.21 ▲0.1157.30 ▲10.71
Add New Post /wp-admin/post-new.php5.46 ▲0.0390.63 ▼603.43
Media Library /wp-admin/upload.php3.05 ▲0.0434.07 ▲2.03

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 122 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Xprofile Custom Field Types
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7316.22 ▲0.648.43 ▼2.3650.83 ▲0.87
Dashboard /wp-admin2,967 ▲365.92 ▼0.14166.03 ▲14.92120.55 ▲14.22
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0081.86 ▲16.19103.24 ▲11.99
Add New Post /wp-admin/post-new.php1,683 ▲6816.17 ▼4.89420.95 ▲135.67104.63 ▲5.48
Media Library /wp-admin/upload.php1,807 ▼35.04 ▲0.02170.88 ▲13.83115.73 ▼3.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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 | 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: buddypress, xprofile, buddypress-profile-field-types, fields

bp-xprofile-custom-field-types/bp-xprofile-custom-field-types.php Passed 13 tests

"BuddyPress Xprofile Custom Field Types" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
48 characters long description:
Have all the extra field types at your disposal.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin12,636 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
PO File41,4891,8843,029

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.25
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes37100.00%
▷ Final classes00.00%
▷ Static methods5725.00%
▷ Public methods18279.82%
▷ Protected methods20.88%
▷ Private methods4419.30%
▷ Named functions990.00%
▷ Anonymous functions110.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings