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.10MB] [CPU: ▼1.22ms] Passed 4 tests
This is a short check of server-side resources used by User Role Adjustments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 36.79 ▼3.80 |
Dashboard /wp-admin | 3.40 ▲0.10 | 55.25 ▲4.64 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 46.92 ▲2.83 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.09 ▼6.33 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.52 ▲2.41 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by User Role Adjustments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.40 ▲0.05 | 1.78 ▲0.01 | 44.44 ▼0.01 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.04 | 90.63 ▼1.12 | 40.76 ▼5.21 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.05 | 33.36 ▼3.41 | 35.36 ▼6.22 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.09 ▼5.04 | 593.56 ▼86.30 | 66.44 ▲6.28 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▼0.04 | 95.78 ▲0.53 | 45.69 ▲3.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 errors were detected
Optimizations
Plugin configuration Passed 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
2 plugin tags: utility admin, super editor
user-role-adjustments/user-role-adjustments.php Passed 13 tests
"User Role Adjustments" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Adds "Super Editor" and "Utility Administrator" user roles.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin8,638 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 7,921 |
PHP | 13 | 126 | 386 | 527 |
Markdown | 1 | 27 | 0 | 55 |
JavaScript | 2 | 8 | 57 | 51 |
XML | 1 | 26 | 66 | 46 |
Sass | 3 | 2 | 1 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 13 | 30.95% |
▷ Public methods | 40 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.76% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin