10% dmc-user-list

Code Review | DMC User List

WordPress plugin DMC User List scored10%from 54 tests.

About plugin

  • Plugin page: dmc-user-list
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 1, 2015
  • Latest release: Nov 18, 2019
  • Number of updates: 35
  • Update frequency: every 43.1 days
  • Top authors: lcwakeman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,192 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.98 ▼0.4827.14 ▼12.09
Dashboard /wp-admin3.34 ▼0.0155.34 ▼6.10
Posts /wp-admin/edit.php3.39 ▲0.0454.30 ▲4.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.82 ▼5.45
Media Library /wp-admin/upload.php3.26 ▲0.0343.39 ▲8.36
DMC User Listing /wp-admin/admin.php?page=dmc-user3.2139.19
Import /wp-admin/admin.php?page=dmc-user-import3.2339.58
Export /wp-admin/admin.php?page=dmc-user-export4.0149.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.26 ▼0.956.24 ▲4.5447.17 ▲4.73
Dashboard /wp-admin2,247 ▲595.21 ▼0.68111.27 ▲0.9196.59 ▲51.96
Posts /wp-admin/edit.php2,120 ▲312.19 ▲0.1740.39 ▲3.6039.02 ▲3.48
Add New Post /wp-admin/post-new.php1,548 ▲423.11 ▲5.10749.16 ▲86.6054.20 ▼11.03
Media Library /wp-admin/upload.php1,419 ▲314.25 ▲0.04102.48 ▼7.9758.42 ▲13.39
DMC User Listing /wp-admin/admin.php?page=dmc-user15,1751.8141.3029.15
Import /wp-admin/admin.php?page=dmc-user-import8192.2629.4930.70
Export /wp-admin/admin.php?page=dmc-user-export8072.1224.9429.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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP86921,1982,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 code0.42
Average class complexity59.00
▷ Minimum class complexity1.00
▷ Maximum class complexity252.00
Average method complexity6.12
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods136
▷ Static methods1410.29%
▷ Public methods8058.82%
▷ Protected methods107.35%
▷ Private methods4633.82%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.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
FileSize - originalSize - compressedSavings
images/people.png0.40KB0.39KB▼ 0.74%
images/images/people.png0.40KB0.39KB▼ 0.74%