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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.90ms] Passed 4 tests
Server-side resources used by Restrict New Users by Domain
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.54 ▼6.27 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.71 ▼2.44 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.94 ▲2.09 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.10 ▼5.68 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.70 ▼1.19 |
Restrict New Users by Domain /wp-admin/options-general.php?page=rnud-settings | 3.21 | 33.04 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Restrict New Users by Domain
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.27 ▼1.17 | 2.12 ▲0.16 | 41.81 ▼1.70 |
Dashboard /wp-admin | 2,210 ▲25 | 4.87 ▼0.06 | 109.21 ▲0.78 | 40.96 ▼0.16 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.01 | 41.64 ▲0.77 | 35.74 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,522 ▼2 | 23.34 ▲0.29 | 597.74 ▼102.39 | 63.96 ▲6.98 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.20 ▲0.02 | 102.85 ▼1.85 | 43.58 ▼4.16 |
Restrict New Users by Domain /wp-admin/options-general.php?page=rnud-settings | 849 | 2.02 | 23.00 | 26.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rnud-settings
- > Notice in wp-content/plugins/restrict-new-users-by-domain/class-admin.php+115
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: restrict, restrict email, sign up, new users, restrict domain
restrict-new-users-by-domain/restrict-new-users-by-domain.php Passed 13 tests
Analyzing the main PHP file in "Restrict New Users by Domain" version 1.0.2
58 characters long description:
Restrict allowed email domains for new user registrations.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected147 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 130 | 78 | 147 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.PNG | 51.99KB | 25.37KB | ▼ 51.19% |
assets/screenshot-2.PNG | 22.99KB | 11.61KB | ▼ 49.52% |