90% bp-xprofile-custom-field-types

Code Review | BuddyPress Xprofile Custom Field Types

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

About plugin

  • Plugin page: bp-xprofile-custo...
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 28, 2018
  • Latest release: Aug 7, 2023
  • Number of updates: 43
  • Update frequency: every 44.2 days
  • Top authors: sbrajesh (95.35%)raviousprime (6.98%)

Code review

54 tests

User reviews

14 reviews

Install metrics

6,000+ active /117,509 total downloads

Benchmarks

Plugin footprint 83% from 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.05MB] [CPU: ▼4.60ms] 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 /3.51 ▲0.0542.00 ▲1.87
Dashboard /wp-admin3.35 ▲0.0548.32 ▼0.78
Posts /wp-admin/edit.php3.46 ▲0.1145.69 ▲5.42
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.43 ▼19.31
Media Library /wp-admin/upload.php3.27 ▲0.0436.89 ▼0.16

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, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
bpxcftr_notices
can_compress_scripts

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 /2,814 ▲5314.17 ▼0.182.05 ▲0.2343.12 ▼1.41
Dashboard /wp-admin2,195 ▲155.62 ▲0.0095.37 ▲6.7842.58 ▲7.86
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0832.82 ▼8.1334.57 ▼6.66
Add New Post /wp-admin/post-new.php1,533 ▼223.14 ▲5.14664.99 ▲10.5157.82 ▼10.22
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.0193.76 ▼15.2341.35 ▼5.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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

Optimizations

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: fields, xprofile, buddypress-profile-field-types, buddypress

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

"BuddyPress Xprofile Custom Field Types" version 1.2.6'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,659 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript651,5464656,017
PHP411,1972,0483,584
PO File41,4941,8913,043
CSS23315

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.30
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces7
Interfaces3
Traits0
Classes37
▷ Abstract classes00.00%
▷ Concrete classes37100.00%
▷ Final classes00.00%
Methods228
▷ Static methods5725.00%
▷ Public methods18380.26%
▷ Protected methods20.88%
▷ Private methods4318.86%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants0
▷ 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
assets/vendors/jscolor/hs.png2.62KB7.54KB0.00%
assets/vendors/jscolor/hv.png2.80KB7.32KB0.00%