Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼149.12ms] Passed 4 tests
Server-side resources used by Add Profile Nicename by Webone
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 23.29 ▲3.40 |
Dashboard /wp-admin | 3.06 ▲0.00 | 30.63 ▼7.72 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 32.36 ▲2.59 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 69.02 ▼590.15 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 22.73 ▼1.18 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Add Profile Nicename by Webone
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲40 | 15.62 ▼0.38 | 6.80 ▲1.23 | 76.68 ▼0.12 |
Dashboard /wp-admin | 2,926 ▲27 | 6.09 ▼0.03 | 115.08 ▼19.76 | 165.37 ▼10.55 |
Posts /wp-admin/edit.php | 2,737 ▼6 | 3.23 ▼0.01 | 64.60 ▲0.42 | 136.67 ▼6.33 |
Add New Post /wp-admin/post-new.php | 3,813 ▲6 | 19.14 ▲0.58 | 411.21 ▼30.58 | 161.05 ▼14.12 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.51 ▼0.03 | 136.77 ▲1.44 | 185.08 ▲3.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-profile-nicename/add_profile_nicename.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (add nicename) image missing
add-profile-nicename/add_profile_nicename.php 92% from 13 tests
Analyzing the main PHP file in "Add Profile Nicename by Webone" version 1.0.0
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-profile-nicename.php" instead of "add_profile_nicename.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected50 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 9 | 50 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 5.00KB | 3.17KB | ▼ 36.63% |