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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.50MB] [CPU: ▼3.09ms] Passed 4 tests
An overview of server-side resources used by Username Changer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 41.10 ▲4.02 |
Dashboard /wp-admin | 3.86 ▲0.52 | 49.09 ▼8.96 |
Posts /wp-admin/edit.php | 3.91 ▲0.56 | 46.73 ▼0.87 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 91.18 ▼6.54 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 38.65 ▲5.99 |
Username Changer /wp-admin/options-general.php?page=username_changer-settings | 3.77 | 39.37 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
username_changer_settings |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Username Changer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲40 | 13.21 ▼1.19 | 4.89 ▲3.12 | 41.44 ▲0.12 |
Dashboard /wp-admin | 2,214 ▲28 | 4.90 ▼0.99 | 105.76 ▼10.11 | 44.68 ▼0.44 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.03 ▼0.02 | 41.80 ▲0.69 | 35.54 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,524 ▲5 | 23.16 ▲0.13 | 643.24 ▼26.49 | 54.82 ▲3.72 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.23 ▲0.01 | 95.79 ▼4.71 | 40.95 ▼6.31 |
Username Changer /wp-admin/options-general.php?page=username_changer-settings | 1,716 | 8.67 | 203.37 | 65.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- username_changer_settings
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: login, user, username, display name
username-changer/class-username-changer.php 77% from 13 tests
"Username Changer" version 3.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("username-changer.php" instead of "class-username-changer.php")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,342 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 1,136 | 2,242 | 2,836 |
JavaScript | 4 | 61 | 20 | 282 |
CSS | 6 | 16 | 16 | 82 |
SVG | 1 | 0 | 1 | 78 |
Markdown | 4 | 39 | 0 | 64 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 64.71 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 136 | |
▷ Static methods | 1 | 0.74% |
▷ Public methods | 124 | 91.18% |
▷ Protected methods | 2 | 1.47% |
▷ Private methods | 10 | 7.35% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.24MB with 0.18MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 248.15KB | 63.24KB | ▼ 74.51% |