Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/dmc-user-list/objects/dmc_user_admin.php+411
Undefined index: display_roles
Server metrics [RAM: ▼0.10MB] [CPU: ▼4.88ms] Passed 4 tests
Server-side resources used by DMC User List
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▼0.48 | 27.14 ▼12.09 |
Dashboard /wp-admin | 3.34 ▼0.01 | 55.34 ▼6.10 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 54.30 ▲4.14 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 98.82 ▼5.45 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 43.39 ▲8.36 |
DMC User Listing /wp-admin/admin.php?page=dmc-user | 3.21 | 39.19 |
Import /wp-admin/admin.php?page=dmc-user-import | 3.23 | 39.58 |
Export /wp-admin/admin.php?page=dmc-user-export | 4.01 | 49.05 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
dmc_user_admin |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for DMC User List
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.26 ▼0.95 | 6.24 ▲4.54 | 47.17 ▲4.73 |
Dashboard /wp-admin | 2,247 ▲59 | 5.21 ▼0.68 | 111.27 ▲0.91 | 96.59 ▲51.96 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.19 ▲0.17 | 40.39 ▲3.60 | 39.02 ▲3.48 |
Add New Post /wp-admin/post-new.php | 1,548 ▲4 | 23.11 ▲5.10 | 749.16 ▲86.60 | 54.20 ▼11.03 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.25 ▲0.04 | 102.48 ▼7.97 | 58.42 ▲13.39 |
DMC User Listing /wp-admin/admin.php?page=dmc-user | 15,175 | 1.81 | 41.30 | 29.15 |
Import /wp-admin/admin.php?page=dmc-user-import | 819 | 2.26 | 29.49 | 30.70 |
Export /wp-admin/admin.php?page=dmc-user-export | 807 | 2.12 | 24.94 | 29.60 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- dmc_user_admin
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=dmc-user-export
- > Warning in wp-content/plugins/dmc-user-list/objects/eiseXLSX.php+1159
count(): Parameter must be an array or an object that implements Countable
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/dmc-user-list/images/dmc_user_list.php
- > /wp-content/plugins/dmc-user-list/dmc_user_list.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Requires at least: Version format is invalid
dmc-user-list/dmc_user_list.php 92% from 13 tests
The main PHP file in "DMC User List" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dmc-user-list.php" instead of "dmc_user_list.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
There were no executable files found in this plugin2,963 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 692 | 1,198 | 2,963 |
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.42 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 252.00 |
Average method complexity | 6.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 14 | 10.29% |
▷ Public methods | 80 | 58.82% |
▷ Protected methods | 10 | 7.35% |
▷ Private methods | 46 | 33.82% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/people.png | 0.40KB | 0.39KB | ▼ 0.74% |
images/images/people.png | 0.40KB | 0.39KB | ▼ 0.74% |