10% users-list

Code Review | Users List Widget

WordPress plugin Users List Widget scored10%from 54 tests.

About plugin

  • Plugin page: users-list
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Sep 21, 2015
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: ashirbad.cs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,077 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/users-list/users-list.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; users_list_widget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼57.21ms] Passed 4 tests

An overview of server-side resources used by Users List Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.58 ▼41.49
Dashboard /wp-admin2.08 ▼1.227.25 ▼41.44
Posts /wp-admin/edit.php2.08 ▼1.286.07 ▼47.14
Add New Post /wp-admin/post-new.php2.08 ▼3.817.07 ▼98.77
Media Library /wp-admin/upload.php2.08 ▼1.155.47 ▼32.56

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_users_list_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Users List Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.37 ▲0.071.88 ▲0.2145.50 ▲3.12
Dashboard /wp-admin2,200 ▲235.64 ▼0.0594.33 ▲1.6145.33 ▲0.96
Posts /wp-admin/edit.php2,099 ▼12.02 ▼0.0334.64 ▼3.6333.26 ▼3.60
Add New Post /wp-admin/post-new.php1,542 ▼323.13 ▼0.15691.36 ▲13.5660.39 ▲8.48
Media Library /wp-admin/upload.php1,402 ▼14.24 ▲0.06111.78 ▲7.4745.99 ▲0.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/users-list/users-list.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; users_list_widget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_users_list_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/users-list/users-list.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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Donate link: Invalid URI ("none")
Please take inspiration from this readme.txt

users-list/users-list.php 92% from 13 tests

The main PHP file in "Users List Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

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 plugin67 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1152451
CSS11116

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin