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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.42ms] Passed 4 tests
Analyzing server-side resources used by Roles
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.97 ▼4.41 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.88 ▼0.36 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.29 ▲3.23 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 87.08 ▼10.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.48 ▲1.32 |
Roles & Capabilities /wp-admin/users.php?page=icreon-roles-capablities | 3.27 | 32.43 |
/wp-admin/admin.php?page=icreon-def | 3.20 | 30.79 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
icreon_wp_rc_caps |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Roles
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.67 ▼0.73 | 1.93 ▲0.17 | 44.06 ▼2.77 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.02 | 109.19 ▼1.26 | 38.63 ▼0.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.06 | 39.64 ▼2.06 | 35.66 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,517 ▼20 | 17.78 ▼0.25 | 654.57 ▲46.04 | 53.53 ▼0.59 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▲0.01 | 100.84 ▲0.63 | 42.60 ▼3.96 |
Roles & Capabilities /wp-admin/users.php?page=icreon-roles-capablities | 2,962 | 3.44 | 87.24 | 83.08 |
/wp-admin/admin.php?page=icreon-def | 750 | 1.92 | 28.33 | 21.77 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- icreon_wp_rc_caps
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% 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)
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=icreon-roles-capablities
- > Notice in wp-content/plugins/roles/includes/templates/head-table.tpl.php+124
Undefined index: rename_role
- > GET request to /wp-admin/users.php?page=icreon-roles-capablities
- > Notice in wp-content/plugins/roles/includes/class-icreon-wp-roles-capabilities-table.php+155
Undefined index: export
- > GET request to /wp-admin/users.php?page=icreon-roles-capablities
- > Notice in wp-content/plugins/roles/includes/class-icreon-wp-roles-capabilities-table.php+161
Undefined index: import
- > GET request to /wp-admin/admin.php?page=icreon-def
- > Notice in wp-content/plugins/roles/includes/class-icreon-wp-roles-capabilities-table.php+26
Undefined index: user
SRP 0% from 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
Please fix the following items
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/roles/js/index.php
- > /wp-content/plugins/roles/css/index.php
- > /wp-content/plugins/roles/includes/templates/index.php
- > /wp-content/plugins/roles/includes/templates/table-end.tpl.php
- > /wp-content/plugins/roles/includes/templates/foot-table.tpl.php
- > /wp-content/plugins/roles/fonts/index.php
- > /wp-content/plugins/roles/includes/templates/table-start.tpl.php
- > /wp-content/plugins/roles/includes/index.php
- > /wp-content/plugins/roles/index.php
- > /wp-content/plugins/roles/images/index.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/roles/includes/templates/builtin-cap-rows.tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/roles/includes/templates/user-caps-role.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/roles/includes/templates/default-role.tpl.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/roles/includes/templates/import-cap.tpl.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/roles/includes/templates/head-table.tpl.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/roles/includes/templates/delete-role.tpl.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/roles/includes/templates/other-cap-rows.tpl.php:1
- > PHP Notice
Undefined variable: builtin_capabilities in wp-content/plugins/roles/includes/templates/builtin-cap-rows.tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/roles/includes/templates/add-role.tpl.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/roles/includes/templates/change-role-name.tpl.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: custom user rols, user rols
roles/roles.php Passed 13 tests
"Roles" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
35 characters long description:
Manage user roles and capabilities.
Code Analysis Passed 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
There were no executable files found in this plugin12,021 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 165 | 49 | 8,756 |
PHP | 22 | 225 | 251 | 1,355 |
JavaScript | 6 | 217 | 294 | 1,100 |
SVG | 2 | 0 | 0 | 810 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 19.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 77 | |
▷ Static methods | 4 | 5.19% |
▷ Public methods | 43 | 55.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 34 | 44.16% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sprite-radio.png | 1.47KB | 0.56KB | ▼ 61.58% |
images/checkbutton.png | 0.48KB | 0.40KB | ▼ 17.58% |
images/adv.png | 1.06KB | 0.49KB | ▼ 54.23% |