90% bp-verified-member

Code Review | Verified Member for BuddyPress

WordPress plugin Verified Member for BuddyPress scored90%from 54 tests.

About plugin

  • Plugin page: bp-verified-member
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0
  • WordPress version: 6.3.1
  • First release: May 28, 2019
  • Latest release: Dec 16, 2022
  • Number of updates: 28
  • Update frequency: every 46.4 days
  • Top authors: themosaurus (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

6,000+ active /85,156 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.66ms] Passed 4 tests

Analyzing server-side resources used by Verified Member for BuddyPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2340.80 ▲5.06
Dashboard /wp-admin3.54 ▲0.2346.56 ▲0.55
Posts /wp-admin/edit.php3.65 ▲0.2948.66 ▼0.73
Add New Post /wp-admin/post-new.php6.12 ▲0.2384.16 ▼22.36
Media Library /wp-admin/upload.php3.46 ▲0.2335.19 ▲3.91

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Verified Member for BuddyPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲2714.59 ▲0.241.48 ▼0.5541.58 ▼1.67
Dashboard /wp-admin2,204 ▲235.56 ▼0.1582.69 ▼15.0940.87 ▼2.83
Posts /wp-admin/edit.php2,110 ▲102.03 ▼0.0039.77 ▼0.9136.74 ▼0.52
Add New Post /wp-admin/post-new.php1,538 ▲1223.32 ▼0.48660.50 ▼6.8855.09 ▼10.53
Media Library /wp-admin/upload.php1,406 ▲64.20 ▲0.0296.72 ▼4.4542.96 ▲0.64

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: member, community, badge, verify, verified...

bp-verified-member/bp-verified-member.php Passed 13 tests

The main file in "Verified Member for BuddyPress" v. 1.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
This plugins allows admins to add a "Verified" badge for specific members.

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
There were no executable files found in this plugin4,878 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript104621692,211
PHP63957431,648
CSS101048988
SVG100031

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity64.00
▷ Minimum class complexity11.00
▷ Maximum class complexity144.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods89
▷ Static methods11.12%
▷ Public methods8696.63%
▷ Protected methods00.00%
▷ Private methods33.37%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants5
▷ Global constants5100.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 are no PNG files in this plugin