10% change-all-users-slug

Code Review | Change All Users Slug

WordPress plugin Change All Users Slug scored 10% from 54 tests.

About plugin

  • Plugin page: change-all-users-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 27, 2013
  • Latest release: Oct 3, 2013
  • Number of updates: 7
  • Update frequency: every 5.3 days
  • Top authors: henrichro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 862 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.63 ▼35.81
Dashboard /wp-admin2.12 ▼1.185.26 ▼45.23
Posts /wp-admin/edit.php2.12 ▼1.235.41 ▼40.06
Add New Post /wp-admin/post-new.php2.12 ▼3.766.75 ▼92.94
Media Library /wp-admin/upload.php2.12 ▼1.115.43 ▼31.43
Users Slug Setup /wp-admin/users.php?page=change-all-users-slug2.125.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.69 ▼0.594.13 ▲2.2638.05 ▼13.09
Dashboard /wp-admin2,212 ▲274.83 ▼0.18104.89 ▲1.8939.49 ▼5.89
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0238.98 ▼2.5836.02 ▲0.97
Add New Post /wp-admin/post-new.php1,542 ▲918.29 ▼4.81609.09 ▼4.8053.87 ▼4.75
Media Library /wp-admin/upload.php1,397 ▲94.25 ▲0.06116.18 ▲15.4142.11 ▼2.53
Users Slug Setup /wp-admin/users.php?page=change-all-users-slug9072.0726.2543.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP178268
CSS1005

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 code0.41
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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