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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.16 ▲2.19 |
Dashboard /wp-admin | 3.12 ▼0.23 | 28.06 ▼30.03 |
Posts /wp-admin/edit.php | 3.25 ▼0.11 | 36.36 ▼11.80 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.44 | 71.82 ▼27.67 |
Media Library /wp-admin/upload.php | 3.18 ▼0.04 | 28.48 ▼5.03 |
Pre-Approve /wp-admin/users.php?page=ntmrr_options_menu | 3.10 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.19 ▼1.44 | 1.93 ▲0.08 | 39.33 ▼8.29 |
Dashboard /wp-admin | 2,210 ▲19 | 5.79 ▲0.94 | 98.23 ▼6.01 | 40.39 ▲1.47 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.02 ▲0.01 | 44.17 ▼0.54 | 39.44 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.39 ▼0.15 | 584.08 ▼52.55 | 49.13 ▼12.48 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▼0.03 | 97.80 ▲1.29 | 42.78 ▼3.45 |
Pre-Approve /wp-admin/users.php?page=ntmrr_options_menu | 953 | 2.05 | 24.35 | 28.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 59 | 188 |
CSS | 1 | 2 | 0 | 11 |
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 code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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