Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.11ms] Passed 4 tests
Analyzing server-side resources used by Collapsible User Profile Display
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 48.65 ▲7.82 |
Dashboard /wp-admin | 3.42 ▲0.12 | 52.57 ▼2.54 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 54.73 ▲5.31 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.16 ▼6.14 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.62 ▲8.66 |
CP User Profile /wp-admin/options-general.php?page=settings_api_test | 3.26 | 35.53 |
Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
cp_basics |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Collapsible User Profile Display
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,324 ▲563 | 16.29 ▲1.95 | 24.70 ▲23.04 | 59.36 ▲17.57 |
Dashboard /wp-admin | 2,352 ▲175 | 6.31 ▲0.79 | 103.77 ▲12.10 | 43.41 ▲3.68 |
Posts /wp-admin/edit.php | 2,286 ▲186 | 3.55 ▲1.56 | 55.37 ▲18.38 | 35.51 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.38 ▲0.20 | 652.60 ▼22.83 | 36.29 ▼12.27 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.39 ▲0.12 | 83.70 ▼29.88 | 44.99 ▼3.01 |
CP User Profile /wp-admin/options-general.php?page=settings_api_test | 1,038 | 3.50 | 46.12 | 28.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- cp_basics
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/solvease-collapsible-user-profile-list-display/class.settings-api.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/solvease-collapsible-user-profile-list-display/html/image_uploading_field.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/solvease-collapsible-user-profile-list-display/html/custom_user_field.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_users() in wp-content/plugins/solvease-collapsible-user-profile-list-display/template/subscribers_template_1.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_users() in wp-content/plugins/solvease-collapsible-user-profile-list-display/template/subscribers_template_2.php:3
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
solvease-collapsible-user-profile-list-display/cp_user_profile.php 92% from 13 tests
Analyzing the main PHP file in "Collapsible User Profile Display" version 1.0
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("solvease-collapsible-user-profile-list-display.php" instead of "cp_user_profile.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
Good job! No executable or dangerous file extensions detected9,571 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 7 | 22 | 6,789 |
JavaScript | 4 | 590 | 208 | 1,611 |
PHP | 7 | 204 | 405 | 942 |
SVG | 1 | 0 | 0 | 229 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin