Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.46ms] Passed 4 tests
A check of server-side resources used by User Mail Only Register
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.44 ▲2.10 |
Dashboard /wp-admin | 3.34 ▲0.04 | 41.53 ▼5.22 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.33 ▲0.37 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.77 ▼20.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 33.01 ▼0.43 |
User Mail Only Register /wp-admin/options-general.php?page=usermailonlyregister | 3.23 | 28.22 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
usermailonlyregister |
widget_usermailonlyregisterwidgetitem |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Mail Only Register
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲50 | 14.26 ▼0.26 | 1.60 ▼0.04 | 37.59 ▼4.21 |
Dashboard /wp-admin | 2,202 ▲28 | 5.64 ▲0.13 | 90.00 ▲2.27 | 40.57 ▼2.16 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.03 | 39.05 ▲3.11 | 37.68 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.92 ▼0.13 | 615.48 ▼73.48 | 48.72 ▼9.25 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.00 | 99.72 ▲4.02 | 39.86 ▼2.50 |
User Mail Only Register /wp-admin/options-general.php?page=usermailonlyregister | 1,077 | 2.11 | 22.67 | 25.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-mail-only-register/lib/class-usermailonlyregisteradmin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-mail-only-register/lib/class-usermailonlyregisterwidgetitem.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/user-mail-only-register/lib/class-usermailonlyregister.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-mail-only-register/lib/class-usermailonlyregisteradmin.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: users, email, register
user-mail-only-register/usermailonlyregister.php 92% from 13 tests
Analyzing the main PHP file in "User Mail Only Register" version 2.10
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("user-mail-only-register.php" instead of "usermailonlyregister.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
Success! There were no dangerous files found in this plugin632 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 112 | 285 | 632 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin