Benchmarks
Plugin footprint 82% from 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.22MB] [CPU: ▲17.49ms] Passed 4 tests
Analyzing server-side resources used by Restrict Usernames Emails Characters
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 50.51 ▲7.00 |
Dashboard /wp-admin | 3.57 ▲0.26 | 64.19 ▲17.10 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 73.13 ▲23.83 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 153.23 ▲49.72 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 55.95 ▲22.02 |
Restrict Usernames Emails Characters ... /wp-admin/options-general.php?page=restrict_usernames_emails_characters | 3.58 | 471.42 |
Server storage [IO: ▲0.36MB] [DB: ▲0.01MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- Illegal file modification detected: 1 file (1.54KB) outside of "wp-content/plugins/restrict-usernames-emails-characters/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/restrict-username-email-character.php
Filesystem: 21 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
BENrueeg_RUE_settings |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
BENrueeg_RUE_settings_Tw |
can_compress_scripts |
restrict_usernames_emails_characters_ver_base |
Browser metrics Passed 4 tests
Checking browser requirements for Restrict Usernames Emails Characters
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.37 ▼1.38 | 1.65 ▼0.20 | 44.15 ▲1.58 |
Dashboard /wp-admin | 2,215 ▲30 | 5.09 ▲0.18 | 107.26 ▼4.22 | 42.54 ▼3.91 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.04 ▲0.04 | 40.40 ▼1.06 | 34.99 ▼4.35 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 21.69 ▼1.47 | 580.41 ▲7.12 | 53.20 ▲7.01 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.17 ▼0.00 | 95.50 ▼12.35 | 43.76 ▼1.12 |
Restrict Usernames Emails Characters ... /wp-admin/options-general.php?page=restrict_usernames_emails_characters | 1,768 | 2.45 | 48.29 | 91.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 9 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- BENrueeg_RUE_settings
- restrict_usernames_emails_characters_ver_base
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- BENrueeg_RUE_settings_Tw
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/restrict-usernames-emails-characters/admin/my-plugins.php:5
- > PHP Fatal error
Uncaught Error: Class 'ben_plug_restrict_usernames_emails_characters_options' not found in wp-content/plugins/restrict-usernames-emails-characters/classes/page_nl.php:5
- > PHP Fatal error
Uncaught Error: Class 'ben_plug_restrict_usernames_emails_characters_mu_bp' not found in wp-content/plugins/restrict-usernames-emails-characters/classes/classe_errors.php:5
- > PHP Fatal error
Uncaught Error: Class 'ben_plug_restrict_usernames_emails_characters_validation' not found in wp-content/plugins/restrict-usernames-emails-characters/classes/classe_chars.php:5
- > PHP Fatal error
Uncaught Error: Class 'ben_plug_restrict_usernames_emails_characters_CHARS' not found in wp-content/plugins/restrict-usernames-emails-characters/classes/classe_mubp.php:5
- > PHP Fatal error
Uncaught Error: Class 'ben_plug_restrict_usernames_emails_characters_glob' not found in wp-content/plugins/restrict-usernames-emails-characters/classes/classe_val.php:5
- > PHP Fatal error
Uncaught Error: Class 'ben_plug_restrict_usernames_emails_characters_errors' not found in wp-content/plugins/restrict-usernames-emails-characters/page-setts.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
restrict-usernames-emails-characters/restrict-usernames-emails-characters.php Passed 13 tests
Analyzing the main PHP file in "Restrict Usernames Emails Characters" version 3.1.3
121 characters long description:
Restrict the usernames in registration, email, characters and symbols or email from specific domain names or language ...
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,824 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 632 | 204 | 2,690 |
PO File | 1 | 176 | 186 | 604 |
CSS | 1 | 44 | 3 | 442 |
JavaScript | 2 | 18 | 54 | 88 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 125)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 83.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 6.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 125.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 130 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 125 | 96.15% |
▷ Protected methods | 5 | 3.85% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin