84% buddypress-custom-profile-filters

Code Review | Custom Profile Filters for BuddyPress

WordPress plugin Custom Profile Filters for BuddyPress scored84%from 54 tests.

About plugin

  • Plugin page: buddypress-custom...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2013
  • Latest release: Apr 8, 2013
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: antonchanning (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,993 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Custom Profile Filters for BuddyPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.76 ▼1.26
Dashboard /wp-admin3.31 ▲0.0149.22 ▼2.94
Posts /wp-admin/edit.php3.36 ▲0.0048.11 ▼1.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.95 ▼7.45
Media Library /wp-admin/upload.php3.23 ▲0.0036.16 ▲1.30

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Custom Profile Filters for BuddyPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.391.76 ▲0.0044.00 ▼1.17
Dashboard /wp-admin2,206 ▲184.84 ▼0.25105.40 ▼11.4743.12 ▼0.63
Posts /wp-admin/edit.php2,068 ▼212.03 ▼0.0234.60 ▼4.9335.03 ▲1.00
Add New Post /wp-admin/post-new.php1,520 ▼1323.16 ▼0.18680.45 ▼32.6959.05 ▲4.75
Media Library /wp-admin/upload.php1,382 ▼94.22 ▲0.0096.65 ▼6.8840.83 ▼3.49

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/buddypress-custom-profile-filters/buddypress-custom-profile-filters-bp-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-custom-profile-filters/buddypress-custom-profile-filters.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
5 plugin tags: bbcode, filter, buddypress, shortcode, profile

buddypress-custom-profile-filters/buddypress-custom-profile-filters.php Passed 13 tests

This is the main PHP file of "Custom Profile Filters for BuddyPress" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
Changes the way that profile data fields get filtered into clickable URLs.

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
Success! There were no dangerous files found in this plugin43 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2172243

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin