Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.93ms] Passed 4 tests
An overview of server-side resources used by Username Editor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.80 ▼2.67 |
Dashboard /wp-admin | 3.33 ▼0.01 | 53.81 ▼12.18 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 53.14 ▼0.87 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.69 ▼19.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 39.46 ▲1.22 |
Change Username /wp-admin/admin.php?page=wg_ue_change_username | 3.20 | 32.70 |
Users /wp-admin/admin.php?page=wg_ue_user_list | 3.22 | 34.06 |
Username Editor /wp-admin/admin.php?page=wg_ue | 3.22 | 34.25 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Username Editor: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲80 | 13.49 ▼0.88 | 1.80 ▼0.31 | 45.81 ▲1.54 |
Dashboard /wp-admin | 2,255 ▲49 | 5.82 ▲0.95 | 101.38 ▼6.61 | 42.41 ▲1.41 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.02 ▼0.03 | 36.14 ▼5.32 | 35.15 ▲1.04 |
Add New Post /wp-admin/post-new.php | 1,555 ▲21 | 23.16 ▼0.34 | 677.42 ▲60.99 | 46.47 ▼15.12 |
Media Library /wp-admin/upload.php | 1,437 ▲40 | 4.23 ▲0.03 | 96.41 ▼8.48 | 44.00 ▼0.60 |
Change Username /wp-admin/admin.php?page=wg_ue_change_username | 795 | 2.03 | 24.09 | 28.99 |
Users /wp-admin/admin.php?page=wg_ue_user_list | 818 | 2.07 | 25.44 | 26.22 |
Username Editor /wp-admin/admin.php?page=wg_ue | 1,038 | 2.04 | 27.16 | 41.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wg_ue_change_username
- > Notice in wp-content/plugins/username-editor/inc/callback-functions.php+191
Undefined index: username_update
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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/username-editor/inc/admin-settings.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/username-editor/inc/ajax-handler.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: username manager, username editor, username edit, username-change, username change
username-editor/username-editor.php Passed 13 tests
Analyzing the main PHP file in "Username Editor" version 1.2
32 characters long description:
Change WordPress username easily
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,146 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 128 | 70 | 689 |
CSS | 1 | 69 | 2 | 338 |
JavaScript | 1 | 14 | 4 | 119 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin