10% th23-user-management

Code Review | th23 User Management

WordPress plugin th23 User Management scored 10% from 54 tests.

About plugin

  • Plugin page: th23-user-management
  • Plugin version: 2.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-5.2.0
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: May 16, 2019
  • Number of updates: 27
  • Update frequency: every 54.0 days
  • Top authors: th23 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 4,510 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
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/th23-user-management/th23-user-management.php+1169
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.88ms] Passed 4 tests

A check of server-side resources used by th23 User Management
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.10 ▼45.01
Dashboard /wp-admin2.05 ▼1.266.78 ▼40.52
Posts /wp-admin/edit.php2.05 ▼1.316.46 ▼39.84
Add New Post /wp-admin/post-new.php2.05 ▼3.846.01 ▼82.13
Media Library /wp-admin/upload.php2.05 ▼1.185.42 ▼31.68
th23 User Management /wp-admin/options-general.php?page=th23-user-management2.055.63

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

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

Browser metrics Passed 4 tests

th23 User Management: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲18014.05 ▼0.625.52 ▲3.0940.35 ▼19.28
Dashboard /wp-admin2,213 ▲284.88 ▼1.13112.29 ▲11.1644.45 ▼1.77
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0038.18 ▼1.6234.72 ▼0.48
Add New Post /wp-admin/post-new.php1,537 ▲1723.41 ▲0.38706.57 ▲77.0562.19 ▲9.43
Media Library /wp-admin/upload.php1,395 ▲74.31 ▲0.1393.74 ▼19.9142.53 ▼6.29
th23 User Management /wp-admin/options-general.php?page=th23-user-management1,2252.0829.0077.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/th23-user-management/th23-user-management.php+1169
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_th23_user_management_widget
    • th23_user_management_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=th23-user-management
    • > Deprecated in wp-content/plugins/th23-user-management/th23-user-management.php+1169
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'th23_user_management_pro' not found in wp-content/plugins/th23-user-management/th23-user-management-admin.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/th23-user-management/th23-user-management.php:1088

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === th23-user-management === )
  • Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
You can look at the official readme.txt

th23-user-management/th23-user-management.php 92% from 13 tests

This is the main PHP file of "th23 User Management" version 2.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 624 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,988 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP32712871,483
PO File12743821,175
CSS21417233
JavaScript38897

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity56.50
▷ Minimum class complexity1.00
▷ Maximum class complexity141.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods72100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/admin-about-upgrade-275x70.png17.89KB6.38KB▼ 64.32%
img/admin-icon-48x41.png4.22KB2.01KB▼ 52.49%
img/admin-notice-upgrade-450x150.png27.42KB11.69KB▼ 57.35%
img/admin-about-feedback-309x100.png17.81KB6.94KB▼ 61.04%
img/close-16x16.png0.58KB0.41KB▼ 29.15%