94% bp-rsed

Code Review | BP Restrict Signup by Email Domain

WordPress plugin BP Restrict Signup by Email Domain scored 94% from 54 tests.

About plugin

  • Plugin page: bp-rsed
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Mar 8, 2016
  • Latest release: Mar 8, 2016
  • Number of updates: 4
  • Update frequency: every 140.5 days
  • Top authors: r-a-y (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,267 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by BP Restrict Signup by Email Domain
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.69 ▲12.59
Dashboard /wp-admin3.08 ▲0.0252.28 ▲7.55
Posts /wp-admin/edit.php3.13 ▲0.0248.89 ▼3.79
Add New Post /wp-admin/post-new.php5.43 ▼0.0097.20 ▼564.67
Media Library /wp-admin/upload.php3.02 ▲0.0234.36 ▼2.42

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

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

Browser metrics Passed 4 tests

BP Restrict Signup by Email Domain: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.90 ▼0.0610.90 ▼0.0847.33 ▼3.21
Dashboard /wp-admin2,970 ▲365.92 ▼0.02147.17 ▼22.95119.78 ▲10.40
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0165.54 ▼5.9496.09 ▲5.51
Add New Post /wp-admin/post-new.php1,615 ▼2,07421.52 ▲6.37329.55 ▼204.08104.59 ▼9.85
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.01172.07 ▲2.05121.79 ▲2.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-rsed/bp-rsed.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Requires at least: Version not formatted correctly
  • Tested up to: Version not formatted correctly
Please take inspiration from this readme.txt

bp-rsed/bp-rsed.php Passed 13 tests

The primary PHP file in "BP Restrict Signup by Email Domain" version 1.0.0 is used by WordPress to initiate all plugin functionality
85 characters long description:
Only allow users with email addresses from certain domains to register in BuddyPress.

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
Everything looks great! No dangerous files found in this plugin201 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.00
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods535.71%
▷ Public methods1285.71%
▷ Protected methods214.29%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin