90% bp-featured-members

Code Review | BuddyPress Featured Members

WordPress plugin BuddyPress Featured Members scored90%from 54 tests.

About plugin

  • Plugin page: bp-featured-members
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 6, 2017
  • Latest release: Aug 7, 2023
  • Number of updates: 23
  • Update frequency: every 104.5 days
  • Top authors: sbrajesh (82.61%)raviousprime (21.74%)

Code review

54 tests

User reviews

3 reviews

Install metrics

800+ active /24,419 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.03MB] [CPU: ▼4.60ms] Passed 4 tests

An overview of server-side resources used by BuddyPress Featured Members
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.76 ▲0.46
Dashboard /wp-admin3.34 ▲0.0348.96 ▼2.03
Posts /wp-admin/edit.php3.45 ▲0.0944.25 ▼7.78
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.60 ▼7.53
Media Library /wp-admin/upload.php3.26 ▲0.0335.85 ▼1.07

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

BuddyPress Featured Members: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.71 ▲0.2044.22 ▼0.87
Dashboard /wp-admin2,195 ▲155.62 ▼0.0381.28 ▼6.0942.41 ▲1.49
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0132.76 ▼9.7332.92 ▼5.77
Add New Post /wp-admin/post-new.php1,526 ▼023.44 ▼0.22606.13 ▼87.3661.39 ▲10.88
Media Library /wp-admin/upload.php1,394 ▼64.17 ▲0.0694.32 ▼18.9240.99 ▼8.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: buddypress, featured members

bp-featured-members/bp-featured-members.php Passed 13 tests

The main PHP script in "BuddyPress Featured Members" version 1.1.5 is automatically included on every request by WordPress
85 characters long description:
BuddyPress add-ons which allow site admin to mark members as featured or un-featured.

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
Good job! No executable or dangerous file extensions detected804 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP9175325681
PO File1293874
JavaScript311548
CSS1021

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity12.00
▷ Minimum class complexity5.00
▷ Maximum class complexity28.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods37
▷ Static methods12.70%
▷ Public methods3491.89%
▷ Protected methods00.00%
▷ Private methods38.11%
Functions9
▷ Named functions9100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/controls.png2.19KB0.95KB▼ 56.49%