89% bp-signup-member-type

Code Review | BP Signup Member Type

WordPress plugin BP Signup Member Type scored89%from 54 tests.

About plugin

  • Plugin page: bp-signup-member-...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: (?:WordPress|WP)?\s*([0-9.]+)(?:\s*\/\s*(?:BuddyPress|BP)?\s*([0-9.]+))?$/i', $line, $m );-4.8
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: May 14, 2020
  • Number of updates: 4
  • Update frequency: every 270.5 days
  • Top authors: meitar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,401 total downloads


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.00MB] [CPU: ▼5.51ms] Passed 4 tests

Analyzing server-side resources used by BP Signup Member Type
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.03 ▼0.63
Dashboard /wp-admin3.31 ▲0.0047.78 ▼3.80
Posts /wp-admin/edit.php3.36 ▲0.0049.68 ▲0.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.35 ▼18.56
Media Library /wp-admin/upload.php3.23 ▲0.0035.92 ▲1.12

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for BP Signup Member Type
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6814.47 ▲0.241.97 ▲0.0141.61 ▲2.95
Dashboard /wp-admin2,209 ▲204.87 ▼0.24105.70 ▼11.7040.55 ▲1.21
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0536.85 ▼4.8334.49 ▼0.56
Add New Post /wp-admin/post-new.php1,519 ▲522.96 ▲5.47632.92 ▲22.1062.69 ▲7.13
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0394.56 ▼1.4841.28 ▼2.29

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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 everything seems fine, this is not 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

bp-signup-member-type/bp-signup-member-type.php 85% from 13 tests

The main PHP file in "BP Signup Member Type" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "(?:WordPress|WP)?\s*([0-9.]+)(?:\s*\/\s*(?:BuddyPress|BP)?\s*([0-9.]+))?$/i', $line, $m );")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin207 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods16100.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin