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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.20ms] Passed 4 tests
Analyzing server-side resources used by User Meta Display
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 40.86 ▲2.67 |
Dashboard /wp-admin | 3.44 ▲0.14 | 49.09 ▼3.04 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.26 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 97.32 ▼15.36 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.77 ▲4.74 |
User Meta Display /wp-admin/users.php?page=user_meta_display | 3.45 | 35.22 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Meta Display
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲138 | 13.84 ▼0.51 | 8.82 ▲7.09 | 44.85 ▲4.88 |
Dashboard /wp-admin | 2,199 ▲22 | 5.60 ▼0.00 | 90.30 ▼1.03 | 39.03 ▼6.24 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.05 | 38.34 ▼3.56 | 34.43 ▼5.66 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 22.80 ▼0.23 | 588.36 ▼89.20 | 55.35 ▼2.32 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.25 ▼0.05 | 100.51 ▼1.26 | 43.42 ▼1.39 |
User Meta Display /wp-admin/users.php?page=user_meta_display | 1,195 | 3.09 | 50.48 | 43.73 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/users.php?page=user_meta_display
- > Notice in wp-content/plugins/user-meta-display/includes/field-user_list_dropdown.php+13
Undefined index: user_id
SRP 0% from 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/user-meta-display/includes/field-about_field_type.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-meta-display/includes/field-user_list_dropdown.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/user-meta-display/includes/settings-user_meta_display.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/user-meta-display/configs/user_meta_display-user-meta.php:15
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/user-meta-display/configs/fieldgroups-user_meta_display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-meta-display/includes/functions-user_meta_display.php:2
- > PHP Fatal error
Uncaught Error: Class 'User_Meta_Display' not found in wp-content/plugins/user-meta-display/includes/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/user-meta-display/includes/field-onoff.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/user-meta-display/configs/user_meta_display-about.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/user-meta-display/includes/field-user_meta_output.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
user-meta-display/plugincore.php 92% from 13 tests
Analyzing the main PHP file in "User Meta Display" version 1.2.2
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("user-meta-display.php" instead of "plugincore.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,956 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 180 | 305 | 986 |
CSS | 6 | 44 | 8 | 748 |
JavaScript | 6 | 5 | 6 | 124 |
Markdown | 1 | 36 | 0 | 83 |
PO File | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 53.50 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 10 | 35.71% |
▷ Public methods | 24 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.29% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 3.81KB | 0.11KB | ▼ 97.05% |
assets/images/white.png | 3.81KB | 0.11KB | ▼ 97.05% |