79% simple-user-listing

Code Review | Simple User Listing

WordPress plugin Simple User Listing scored79%from 54 tests.

About plugin

  • Plugin page: simple-user-listing
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Jan 31, 2013
  • Latest release: Nov 20, 2023
  • Number of updates: 65
  • Update frequency: every 60.7 days
  • Top authors: helgatheviking (80%)deployer (21.54%)

Code review

54 tests

User reviews

17 reviews

Install metrics

1,000+ active /40,205 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.31ms] Passed 4 tests

Server-side resources used by Simple User Listing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.23 ▼3.35
Dashboard /wp-admin3.33 ▼0.0246.13 ▼19.29
Posts /wp-admin/edit.php3.44 ▲0.0947.70 ▼1.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.11 ▼1.09
Media Library /wp-admin/upload.php3.25 ▲0.0234.99 ▲2.30

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple User Listing
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.26 ▲0.091.60 ▼0.0738.63 ▼5.81
Dashboard /wp-admin2,198 ▲275.60 ▲0.0688.56 ▼8.8942.84 ▼2.38
Posts /wp-admin/edit.php2,097 ▼31.95 ▼0.0538.84 ▼0.1036.46 ▲3.09
Add New Post /wp-admin/post-new.php1,528 ▲223.16 ▼0.09659.71 ▲58.6064.21 ▲14.31
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0495.79 ▼2.9241.31 ▼1.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-user-listing/templates/open-author.php
    • > /wp-content/plugins/simple-user-listing/templates/close-author.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-user-listing/simple-user-listing.php:96
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-user-listing/includes/simple-user-listing-template-hooks.php:12

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: authors, directory, users

simple-user-listing/simple-user-listing.php Passed 13 tests

"Simple User Listing" version 1.9.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Create a simple shortcode to list our WordPress users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,195 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON1001,574
PHP9188440425
PO File46271196

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin