Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.28ms] Passed 4 tests
Analyzing server-side resources used by Force First and Last Name as Display Name
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.66 ▲3.38 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.56 ▲3.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.72 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.72 ▼10.05 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.75 ▲0.74 |
Force First Last /wp-admin/options-general.php?page=ffl_settings | 3.20 | 29.80 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Force First and Last Name as Display Name
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.34 ▼1.04 | 1.88 ▲0.26 | 43.32 ▲2.47 |
Dashboard /wp-admin | 2,210 ▲27 | 5.85 ▲0.75 | 110.77 ▼33.09 | 41.46 ▼12.16 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.06 | 33.42 ▼9.21 | 36.39 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,540 ▼2 | 23.16 ▲4.89 | 642.83 ▼0.49 | 51.12 ▼8.82 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.23 ▲0.03 | 94.17 ▲0.65 | 43.83 ▲0.74 |
Force First Last /wp-admin/options-general.php?page=ffl_settings | 822 | 2.01 | 25.01 | 27.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/force-first-last/force-first-last.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: force, user, last name, first name, display name
force-first-last/force-first-last.php Passed 13 tests
The primary PHP file in "Force First and Last Name as Display Name" version 1.2.1 is used by WordPress to initiate all plugin functionality
78 characters long description:
Force the user field display_name to be set as the user's first and last name.
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
Everything looks great! No dangerous files found in this plugin175 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 55 | 154 |
Bourne Shell | 1 | 0 | 8 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Stranger-Studios.png | 13.11KB | 7.51KB | ▼ 42.74% |