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.17MB] [CPU: ▼7.64ms] Passed 4 tests
Analyzing server-side resources used by User Management
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 48.15 ▲3.35 |
Dashboard /wp-admin | 3.48 ▲0.18 | 51.68 ▼4.71 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 52.27 ▼12.87 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 91.44 ▼13.48 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 44.11 ▲0.52 |
Import / Export /wp-admin/users.php?page=import-export-users-wpexperts | 3.45 | 36.76 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
uiewp_export_field |
widget_recent-comments |
Browser metrics Passed 4 tests
User Management: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.37 ▲0.09 | 1.71 ▼0.52 | 42.13 ▼5.36 |
Dashboard /wp-admin | 2,202 ▲25 | 5.59 ▲0.01 | 96.32 ▼4.46 | 39.30 ▼3.18 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.02 | 37.80 ▼0.98 | 33.28 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.12 ▲0.11 | 799.54 ▲106.19 | 49.10 ▼3.93 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▲0.02 | 112.22 ▲1.03 | 47.95 ▲1.68 |
Import / Export /wp-admin/users.php?page=import-export-users-wpexperts | 1,062 | 2.13 | 52.89 | 40.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- uiewp_export_field
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/user-management/includes/settings_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/user-management/includes/view/settings-view.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/user-management/includes/config.php:4
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 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: user roles, user management, user, user profiles, user approval
user-management/users-imp-exp-wpexperts.php 77% from 13 tests
"User Management" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("user-management.php" instead of "users-imp-exp-wpexperts.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "5.2")
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 detected1,710 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 143 | 18 | 1,017 |
JavaScript | 2 | 110 | 10 | 361 |
CSS | 2 | 57 | 0 | 332 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 83.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 5.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.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 | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.18% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin