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.03MB] [CPU: ▼4.76ms] Passed 4 tests
An overview of server-side resources used by Restrict Role Login
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 36.51 ▼4.92 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.60 ▼8.44 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.57 ▼6.68 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.08 ▲6.76 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.22 ▲1.02 |
Restrict role login /wp-admin/users.php?page=rrl-setting-admin | 3.30 | 31.42 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Restrict Role Login
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.12 | 1.64 ▼0.25 | 42.81 ▼1.67 |
Dashboard /wp-admin | 2,210 ▲36 | 4.86 ▼0.01 | 99.54 ▼6.77 | 38.22 ▼9.73 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.03 | 41.49 ▲3.92 | 36.10 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 23.28 ▲0.14 | 646.37 ▼26.82 | 56.17 ▼7.97 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.03 | 94.82 ▼9.38 | 41.05 ▼5.61 |
Restrict role login /wp-admin/users.php?page=rrl-setting-admin | 811 | 2.06 | 24.51 | 30.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Requires at least: Invalid plugin version format
- Tags: There are too many tags (11 tag instead of maximum 10)
restrict-role-login/restrict-role-login.php Passed 13 tests
Analyzing the main PHP file in "Restrict Role Login" version 1.0.0
65 characters long description:
Allows administrators to restrict user login based on user roles.
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
Good job! No executable or dangerous file extensions detected147 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 77 | 115 |
Markdown | 1 | 19 | 0 | 22 |
JSON | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 8 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 33.33% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin