Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▲9.52ms] Passed 4 tests
Analyzing server-side resources used by Brozzme Change Username
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 55.90 ▲15.00 |
Dashboard /wp-admin | 3.47 ▲0.16 | 53.12 ▲5.60 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 74.95 ▲26.68 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 99.62 ▲9.85 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.45 ▲7.62 |
Change username /wp-admin/admin.php?page=brozzme-change-username | 3.36 | 34.33 |
Brozzme /wp-admin/admin.php?page=brozzme-plugins | 3.50 | 310.80 |
Change username /wp-admin/users.php?page=brozzme-change-username | 3.44 | 31.19 |
Server storage [IO: ▲0.37MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Brozzme Change Username: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲77 | 13.17 ▼1.22 | 1.96 ▼0.04 | 46.65 ▼4.45 |
Dashboard /wp-admin | 2,240 ▲49 | 5.85 ▲0.02 | 110.24 ▲6.02 | 52.88 ▲9.29 |
Posts /wp-admin/edit.php | 2,126 ▲40 | 2.03 ▲0.03 | 48.40 ▲11.76 | 38.39 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 17.49 ▼0.08 | 638.73 ▼43.24 | 52.62 ▲1.12 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.21 ▼0.03 | 102.40 ▼1.69 | 42.08 ▼8.64 |
Change username /wp-admin/admin.php?page=brozzme-change-username | 1,007 | 2.30 | 39.68 | 28.10 |
Brozzme /wp-admin/admin.php?page=brozzme-plugins | 1,128 | 2.07 | 23.97 | 41.26 |
Change username /wp-admin/users.php?page=brozzme-change-username | 1,010 | 2.25 | 34.92 | 29.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'brozzme_change_username' does not have a method 'deactivate'
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/brozzme-change-username/brozzme_change_username.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #2 in brozzme-change-username/assets to your readme.txt
brozzme-change-username/brozzme_change_username.php 92% from 13 tests
The entry point to "Brozzme Change Username" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("brozzme-change-username.php" instead of "brozzme_change_username.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected4,232 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 600 | 396 | 2,890 |
PHP | 5 | 224 | 217 | 765 |
CSS | 4 | 36 | 17 | 319 |
PO File | 2 | 80 | 88 | 258 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 25.25 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/logo-wps-200x200px.png | 30.17KB | 7.41KB | ▼ 75.43% |