Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼144.09ms] Passed 4 tests
A check of server-side resources used by Adding drop down roles in registration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 32.91 ▲12.05 |
Dashboard /wp-admin | 3.08 ▲0.02 | 44.55 ▼5.81 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 46.56 ▲0.63 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 87.32 ▼564.00 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.38 ▼7.19 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Adding drop down roles in registration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 16.23 ▲0.61 | 8.80 ▼2.69 | 48.84 ▼3.33 |
Dashboard /wp-admin | 2,990 ▲53 | 5.84 ▼0.10 | 142.23 ▼13.84 | 111.27 ▼0.24 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.72 ▲0.01 | 74.65 ▲7.72 | 87.59 ▲5.19 |
Add New Post /wp-admin/post-new.php | 1,617 ▼2,079 | 18.86 ▼2.03 | 407.16 ▼113.00 | 108.36 ▲6.77 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.05 ▼0.03 | 156.38 ▼0.27 | 113.60 ▼4.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-drop-down-roles-in-registration/new_usersroles.php:105
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 24 tag instead of maximum 10
- Screenshots: A description for screenshot #1 is missing in user-drop-down-roles-in-registration/assets to your readme.txt
user-drop-down-roles-in-registration/new_usersroles.php 92% from 13 tests
The entry point to "Adding drop down roles in registration" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("user-drop-down-roles-in-registration.php" instead of "new_usersroles.php")
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
No dangerous file extensions were detected91 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 55 | 10 | 91 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin