89% buddyforms-ultimate-member

Code Review | BuddyForms Ultimate Member

WordPress plugin BuddyForms Ultimate Member scored89%from 54 tests.

About plugin

  • Plugin page: buddyforms-ultima...
  • Plugin version: 1.3.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.4.1
  • WordPress version: 6.3.1
  • First release: May 10, 2016
  • Latest release: Nov 20, 2023
  • Number of updates: 135
  • Update frequency: every 20.4 days
  • Top authors: svenl77 (93.33%)gfirem (7.41%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /25,556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼4.05ms] Passed 4 tests

Server-side resources used by BuddyForms Ultimate Member
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0232.99 ▼6.18
Dashboard /wp-admin3.73 ▲0.3854.33 ▼9.61
Posts /wp-admin/edit.php3.78 ▲0.4251.00 ▲3.69
Add New Post /wp-admin/post-new.php6.25 ▲0.3691.66 ▼4.09
Media Library /wp-admin/upload.php3.59 ▲0.3637.07 ▲3.74
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.7632.73

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

BuddyForms Ultimate Member: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲5914.33 ▼0.051.72 ▼0.0141.92 ▼2.99
Dashboard /wp-admin2,223 ▲435.48 ▼0.0989.72 ▼8.8843.28 ▲1.60
Posts /wp-admin/edit.php2,143 ▲432.04 ▲0.0341.41 ▲4.8742.60 ▲6.60
Add New Post /wp-admin/post-new.php1,553 ▲2723.45 ▲0.58685.12 ▲17.4660.46 ▲9.05
Media Library /wp-admin/upload.php1,433 ▲334.20 ▲0.0299.47 ▼1.8145.04 ▼0.21
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9992.0329.1830.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

buddyforms-ultimate-member/loader.php 92% from 13 tests

This is the main PHP file of "BuddyForms Ultimate Member" version 1.3.18, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddyforms-ultimate-member.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
Everything looks great! No dangerous files found in this plugin5,740 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PO File171,4491,9934,842
PHP9245155841
JSON10025
XML10019
CSS22013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity48.14
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods101
▷ Static methods54.95%
▷ Public methods7877.23%
▷ Protected methods2322.77%
▷ Private methods00.00%
Functions40
▷ Named functions3895.00%
▷ Anonymous functions25.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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
No PNG files were detected