78% restrict-registration-for-wp-members

Code Review | Restrict Registration By Email for WP-Members

WordPress plugin Restrict Registration By Email for WP-Members scored78%from 54 tests.

About plugin

  • Plugin page: restrict-registra...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: May 8, 2014
  • Latest release: May 12, 2014
  • Number of updates: 16
  • Update frequency: every 0.3 days
  • Top authors: Stevish (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.20MB] [CPU: ▼18.63ms] Passed 4 tests

A check of server-side resources used by Restrict Registration By Email for WP-Members
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.16 ▲2.19
Dashboard /wp-admin3.12 ▼0.2328.06 ▼30.03
Posts /wp-admin/edit.php3.25 ▼0.1136.36 ▼11.80
Add New Post /wp-admin/post-new.php5.44 ▼0.4471.82 ▼27.67
Media Library /wp-admin/upload.php3.18 ▼0.0428.48 ▼5.03
Pre-Approve /wp-admin/users.php?page=ntmrr_options_menu3.1029.92

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Restrict Registration By Email for WP-Members
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.19 ▼1.441.93 ▲0.0839.33 ▼8.29
Dashboard /wp-admin2,210 ▲195.79 ▲0.9498.23 ▼6.0140.39 ▲1.47
Posts /wp-admin/edit.php2,094 ▲52.02 ▲0.0144.17 ▼0.5439.44 ▲1.19
Add New Post /wp-admin/post-new.php1,545 ▲318.39 ▼0.15584.08 ▼52.5549.13 ▼12.48
Media Library /wp-admin/upload.php1,395 ▲74.24 ▼0.0397.80 ▲1.2942.78 ▼3.45
Pre-Approve /wp-admin/users.php?page=ntmrr_options_menu9532.0524.3528.22

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/users.php?page=ntmrr_options_menu
    • > User deprecated in wp-includes/functions.php+5463
    Function is_plugin_page is deprecated since version 3.1.0 with no alternative available.

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/restrict-registration-for-wp-members/restrict-registration-wpmem.php:103

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: wpmembers, registration, blacklist, email, verify email...

restrict-registration-for-wp-members/restrict-registration-wpmem.php 85% from 13 tests

The entry point to "Restrict Registration By Email for WP-Members" version 2.0.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 200 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("restrict-registration-for-wp-members.php" instead of "restrict-registration-wpmem.php")

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 plugin199 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13359188
CSS12011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin