84% um-user-list

Code Review | User List for Ultimate Member

WordPress plugin User List for Ultimate Member scored 84% from 54 tests.

About plugin

  • Plugin page: um-user-list
  • Plugin version: 1.0.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2019
  • Latest release: May 19, 2023
  • Number of updates: 13
  • Update frequency: every 115.9 days
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,558 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.74ms] Passed 4 tests

A check of server-side resources used by User List for Ultimate Member
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.87 ▼5.42
Dashboard /wp-admin3.39 ▲0.0849.25 ▲2.81
Posts /wp-admin/edit.php3.50 ▲0.1451.54 ▲3.71
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.90 ▼5.80
Media Library /wp-admin/upload.php3.31 ▲0.0836.05 ▲1.47

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_um_user_list_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for User List for Ultimate Member
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲16513.70 ▼0.596.07 ▲4.0143.12 ▲1.94
Dashboard /wp-admin2,209 ▲215.91 ▲0.06104.23 ▼9.9639.16 ▼0.60
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0440.44 ▼1.2736.20 ▼0.35
Add New Post /wp-admin/post-new.php1,535 ▲1122.90 ▼0.40576.89 ▼115.1663.22 ▲11.69
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0295.50 ▼16.0641.89 ▼5.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_um_user_list_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/um-user-list/um-user-list.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/um-user-list/widgets/um-user-list-widgets.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: ultimatemember, ultimate member, ultimate member members

um-user-list/um-user-list.php Passed 13 tests

The main file in "User List for Ultimate Member" v. 1.0.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Neat plugin that lists Ultimate Member users in widget and shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected447 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP389286349
CSS281452
JavaScript27846

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity16.00
▷ Minimum class complexity6.00
▷ Maximum class complexity26.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods27
▷ Static methods414.81%
▷ Public methods2696.30%
▷ Protected methods13.70%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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