Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.73ms] Passed 4 tests
This is a short check of server-side resources used by Move User Roles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.01 ▼10.07 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.21 ▼2.11 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.07 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.14 ▲0.03 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.63 ▲4.84 |
Move User Roles /wp-admin/tools.php?page=move-user-role-settings | 3.25 | 29.45 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Move User Roles
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 13.44 ▼0.86 | 1.66 ▼0.48 | 38.93 ▼6.07 |
Dashboard /wp-admin | 2,224 ▲33 | 5.20 ▼0.73 | 112.98 ▲9.34 | 38.27 ▼2.21 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.44 ▲0.40 | 39.71 ▲3.87 | 34.18 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 23.29 ▲5.03 | 652.50 ▲22.86 | 37.66 ▼18.25 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.45 ▲0.24 | 96.78 ▼0.86 | 43.36 ▼0.59 |
Move User Roles /wp-admin/tools.php?page=move-user-role-settings | 1,208 | 2.59 | 41.33 | 35.58 |
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
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/tools.php?page=move-user-role-settings
- > Network (severe)
wp-content/plugins/move-user-roles/img/switch.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #2, #3 in move-user-roles/assets to your readme.txt
move-user-roles/move-user-role.php 69% from 13 tests
The entry point to "Move User Roles" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: The required version number did not match the one declared in readme.txt ("5.1" instead of "4.1")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("move-user-roles.php" instead of "move-user-role.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin823 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 104 | 127 | 485 |
PHP | 2 | 72 | 120 | 223 |
CSS | 2 | 17 | 16 | 115 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected