89% bp-group-members-data

Code Review | BuddyPress Elevator Pitch - Enhanced Member Cards

WordPress plugin BuddyPress Elevator Pitch - Enhanced Member Cards scored89%from 54 tests.

About plugin

  • Plugin page: bp-group-members-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.5
  • WordPress version: 6.3.1
  • First release: Sep 26, 2016
  • Latest release: Jun 20, 2018
  • Number of updates: 12
  • Update frequency: every 52.9 days
  • Top authors: sooskriszta (91.67%)abwebstudio1 (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,012 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.20ms] Passed 4 tests

This is a short check of server-side resources used by BuddyPress Elevator Pitch - Enhanced Member Cards
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.05 ▲2.30
Dashboard /wp-admin3.31 ▼0.0443.21 ▼16.90
Posts /wp-admin/edit.php3.36 ▲0.0047.32 ▼3.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.80 ▼30.23
Media Library /wp-admin/upload.php3.23 ▲0.0034.98 ▲2.80

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyPress Elevator Pitch - Enhanced Member Cards
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.401.73 ▲0.0542.69 ▲2.66
Dashboard /wp-admin2,209 ▲245.85 ▲0.9393.17 ▼15.0239.22 ▼6.18
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0335.44 ▼5.3830.92 ▼4.16
Add New Post /wp-admin/post-new.php1,538 ▲1023.29 ▲5.01645.62 ▲17.6463.86 ▲16.64
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0197.44 ▼1.9342.77 ▼0.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

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 93% from 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
10 plugin tags: x-profile fields, bp, community, profile data, social network...

bp-group-members-data/loader.php 85% from 13 tests

The entry point to "BuddyPress Elevator Pitch - Enhanced Member Cards" version 1.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("bp-group-members-data.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin320 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP211310291
CSS231222
JavaScript1107

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods660.00%
▷ Protected methods00.00%
▷ Private methods440.00%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.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
There were not PNG files found in your plugin