Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲0.37ms] Passed 4 tests
Analyzing server-side resources used by Smart Custom Display Name
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.17 ▲0.74 |
Dashboard /wp-admin | 3.52 ▲0.22 | 62.45 ▲7.69 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 51.93 ▲0.12 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 102.68 ▼1.73 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 40.57 ▲2.36 |
Smart Custom Display Name /wp-admin/options-general.php?page=smartcustomdisplaynamesettings | 3.35 | 35.82 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
smart_custom_display_name_data |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smart Custom Display Name
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.02 | 1.70 ▲0.08 | 43.55 ▼1.22 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.95 | 109.48 ▼3.78 | 42.84 ▼0.65 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▲0.00 | 39.52 ▼2.10 | 34.22 ▼4.32 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.27 ▲5.71 | 647.18 ▼36.47 | 66.32 ▲9.09 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▲0.00 | 97.25 ▼15.57 | 43.70 ▼7.84 |
Smart Custom Display Name /wp-admin/options-general.php?page=smartcustomdisplaynamesettings | 803 | 2.21 | 30.44 | 29.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- smart_custom_display_name_data
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/smart-custom-display-name/inc/ppf/ppf-plugin.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/smart-custom-display-name/inc/ppf/ppf-subclass.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/smart-custom-display-name/inc/ppf/ppf-admin.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Plugin' not found in wp-content/plugins/smart-custom-display-name/inc/ppf/ppf-plugin-addon.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/smart-custom-display-name/inc/ppf/ppf-settings.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: You are using too many tags: 18 tag instead of maximum 10
smart-custom-display-name/smart-custom-display-name.php Passed 13 tests
This is the main PHP file of "Smart Custom Display Name" version 5.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Set users "Display Name" to any custom value
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,010 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 637 | 991 | 684 |
CSS | 1 | 51 | 0 | 231 |
JavaScript | 2 | 35 | 22 | 90 |
SVG | 5 | 0 | 0 | 5 |
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.24 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 6 | 75.00% |
▷ Concrete classes | 2 | 25.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 1 | 1.20% |
▷ Public methods | 71 | 85.54% |
▷ Protected methods | 5 | 6.02% |
▷ Private methods | 7 | 8.43% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected