Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.37ms] Passed 4 tests
This is a short check of server-side resources used by Custom Role Creator (CRC)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.22 ▼2.68 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.38 ▼3.27 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.99 ▲8.02 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 96.03 ▲11.14 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.99 ▼0.60 |
Custom Role Creator /wp-admin/users.php?page=custom-role-creator | 3.32 | 32.94 |
Custom Role Creator /wp-admin/options-general.php?page=crc-settings | 3.28 | 29.97 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
_custom_role_creator_version |
db_upgraded |
can_compress_scripts |
_custom_role_creator_installed |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Role Creator (CRC)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.14 ▼1.23 | 4.70 ▲2.87 | 38.63 ▼6.00 |
Dashboard /wp-admin | 2,211 ▲25 | 5.83 ▲0.85 | 98.16 ▼19.93 | 39.69 ▼4.23 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▼0.00 | 39.85 ▲6.38 | 34.26 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,548 ▲19 | 18.12 ▼5.09 | 592.52 ▼62.55 | 53.02 ▲1.49 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.17 ▼0.02 | 96.96 ▼15.86 | 43.93 ▼11.02 |
Custom Role Creator /wp-admin/users.php?page=custom-role-creator | 1,199 | 1.89 | 28.35 | 54.35 |
Custom Role Creator /wp-admin/options-general.php?page=crc-settings | 939 | 1.99 | 25.95 | 28.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/custom-role-creator/vendor/composer/ClassLoader.php+571
include(wp-content/plugins/custom-role-creator/vendor/composer/../appsero/client/src/License.php): failed to open stream: No such file or directory
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/custom-role-creator/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-role-creator/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Warning
require_once(wp-content/plugins/custom-role-creator/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/custom-role-creator/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (All Roles), #2 (Add new role), #3 (Edit role), #4 (Assign capabilities), #5 (Currently capable of), #6 (Add capabilities to User), #7 (Reset Roles)
custom-role-creator/custom-role-creator.php Passed 13 tests
Analyzing the main PHP file in "Custom Role Creator (CRC)" version 1.1.1
90 characters long description:
Custom Role Creator plugin allows you to add or change user roles and capabilities easily.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected4,461 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 654 | 1,278 | 3,155 |
CSS | 2 | 2 | 2 | 490 |
Markdown | 3 | 95 | 0 | 302 |
JSON | 3 | 0 | 0 | 132 |
PO File | 1 | 45 | 59 | 126 |
XML | 2 | 8 | 21 | 113 |
JavaScript | 2 | 2 | 3 | 111 |
YAML | 1 | 6 | 0 | 32 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 21 | 13.46% |
▷ Public methods | 119 | 76.28% |
▷ Protected methods | 7 | 4.49% |
▷ Private methods | 30 | 19.23% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.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