Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/change-all-users-slug/change-all-users-slug.php+199
Use of undefined constant load_sortable_user_meta_columns - assumed 'load_sortable_user_meta_columns' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.88MB] [CPU: ▼53.51ms] Passed 4 tests
Analyzing server-side resources used by Change All Users Slug
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.63 ▼35.81 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.26 ▼45.23 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 5.41 ▼40.06 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 6.75 ▼92.94 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.43 ▼31.43 |
Users Slug Setup /wp-admin/users.php?page=change-all-users-slug | 2.12 | 5.80 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Change All Users Slug
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.69 ▼0.59 | 4.13 ▲2.26 | 38.05 ▼13.09 |
Dashboard /wp-admin | 2,212 ▲27 | 4.83 ▼0.18 | 104.89 ▲1.89 | 39.49 ▼5.89 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.02 | 38.98 ▼2.58 | 36.02 ▲0.97 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.29 ▼4.81 | 609.09 ▼4.80 | 53.87 ▼4.75 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.25 ▲0.06 | 116.18 ▲15.41 | 42.11 ▼2.53 |
Users Slug Setup /wp-admin/users.php?page=change-all-users-slug | 907 | 2.07 | 26.25 | 43.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/change-all-users-slug/change-all-users-slug.php+199
Use of undefined constant load_sortable_user_meta_columns - assumed 'load_sortable_user_meta_columns' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/users.php?page=change-all-users-slug
- > Warning in wp-content/plugins/change-all-users-slug/change-all-users-slug.php+199
Use of undefined constant load_sortable_user_meta_columns - assumed 'load_sortable_user_meta_columns' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/users.php?page=change-all-users-slug
- > Warning in wp-content/plugins/change-all-users-slug/change-all-users-slug.php+208
Use of undefined constant sortable_user_meta_columns - assumed 'sortable_user_meta_columns' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/users.php?page=change-all-users-slug
- > Notice in wp-content/plugins/change-all-users-slug/change-all-users-slug.php+236
Undefined index: login
- > GET request to /wp-admin/users.php?page=change-all-users-slug
- > Notice in wp-content/plugins/change-all-users-slug/change-all-users-slug.php+130
Undefined index: _wpnonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=change-all-users-slug
- > Notice in wp-content/plugins/change-all-users-slug/change-all-users-slug.php+166
Undefined index: caus
SRP 50% 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/change-all-users-slug/change-all-users-slug.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires at least: Version format is invalid
change-all-users-slug/change-all-users-slug.php Passed 13 tests
"Change All Users Slug" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
107 characters long description:
A small plugin which helps you to change all your user's slug in "/firstname-lastname/" (lowercase) format.
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 plugin273 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 7 | 8 | 268 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected