10% user-list

Code Review | User List

WordPress plugin User List scored 10% from 54 tests.

About plugin

  • Plugin page: user-list
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.1-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 20, 2013
  • Latest release: Sep 3, 2013
  • Number of updates: 14
  • Update frequency: every 3.3 days
  • Top authors: ivan82 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active / 10,314 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.

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

An overview of server-side resources used by User List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.226.27 ▼37.00
Dashboard /wp-admin2.26 ▼1.048.03 ▼40.88
Posts /wp-admin/edit.php2.26 ▼1.097.70 ▼36.71
Add New Post /wp-admin/post-new.php2.26 ▼3.626.87 ▼84.98
Media Library /wp-admin/upload.php2.26 ▼0.966.43 ▼26.43
User List /wp-admin/options-general.php?page=user-list/user-list.php2.267.49

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by User List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼0.981.73 ▼0.0139.94 ▼6.39
Dashboard /wp-admin2,204 ▲165.81 ▲0.92106.03 ▲3.8238.31 ▼4.56
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0439.71 ▲3.6834.68 ▲0.48
Add New Post /wp-admin/post-new.php1,536 ▲2223.29 ▲5.75682.49 ▲20.8961.62 ▲6.42
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0398.55 ▼7.8440.28 ▼6.72
User List /wp-admin/options-general.php?page=user-list/user-list.php1,0482.1923.9637.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=user-list/user-list.php
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=user-list/user-list.php
    • > Notice in wp-content/plugins/user-list/user-list.php+342
    Undefined index: Submit

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/user-list/user-list.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

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

"User List" version 1.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
Display your WordPress users, profiles, avatars, images and uploaded files.

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 detected859 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP112647441
PO File3150158372
Markdown18040
CSS1106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin