Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼10.28ms] Passed 4 tests
An overview of server-side resources used by Edit Profile Fields
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.01 ▼1.64 |
Dashboard /wp-admin | 3.31 ▼0.03 | 50.08 ▼15.28 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.23 ▼5.79 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.47 ▼18.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 42.83 ▲6.81 |
Custom Profile Fields /wp-admin/users.php?page=cpf | 3.27 | 34.70 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables |
---|
cpf_field_options |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Edit Profile Fields
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.36 ▲0.01 | 1.58 ▲0.02 | 42.17 ▲0.86 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▼0.04 | 87.11 ▲1.81 | 40.63 ▼4.26 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.01 | 34.52 ▼6.16 | 34.05 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 23.08 ▲5.13 | 670.39 ▲55.59 | 51.91 ▼10.76 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.16 ▲0.00 | 94.06 ▼16.76 | 45.64 ▼3.49 |
Custom Profile Fields /wp-admin/users.php?page=cpf | 944 | 2.06 | 25.42 | 29.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/edit-profile-fields/edit-profile-fields.php
- > /wp-content/plugins/edit-profile-fields/includes/table-create.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/edit-profile-fields/uninstall.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/edit-profile-fields/includes/options-html.php:96
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/edit-profile-fields/includes/options-html.php on line 96
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: user profile, profile, admin, custom profile
edit-profile-fields/edit-profile-fields.php Passed 13 tests
Analyzing the main PHP file in "Edit Profile Fields" version 1.0.0
92 characters long description:
Add custom fields to your user profiles, which can be edited from the backend admin screens.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin392 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 65 | 102 | 327 |
CSS | 1 | 12 | 0 | 65 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin