90% manage-user-columns

Code Review | Manage User Columns

WordPress plugin Manage User Columns scored90%from 54 tests.

About plugin

  • Plugin page: manage-user-columns
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2020
  • Latest release: Aug 16, 2023
  • Number of updates: 26
  • Update frequency: every 40.2 days
  • Top authors: deepakkite (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /8,088 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.52ms] Passed 4 tests

An overview of server-side resources used by Manage User Columns
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0439.04 ▼5.38
Dashboard /wp-admin3.39 ▲0.0541.28 ▼11.72
Posts /wp-admin/edit.php3.51 ▲0.1152.50 ▼2.66
Add New Post /wp-admin/post-new.php5.99 ▲0.0692.78 ▼22.31
Media Library /wp-admin/upload.php3.31 ▲0.0437.44 ▲0.61

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Manage User Columns
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.25 ▼0.331.76 ▲0.0941.21 ▲4.99
Dashboard /wp-admin2,202 ▲255.54 ▼0.0896.73 ▲9.9141.36 ▼0.27
Posts /wp-admin/edit.php2,107 ▲72.00 ▼0.0138.98 ▼2.3135.23 ▼1.67
Add New Post /wp-admin/post-new.php1,542 ▲1618.28 ▼4.66633.01 ▼18.5474.22 ▲25.61
Media Library /wp-admin/upload.php1,407 ▲74.14 ▼0.0898.02 ▼10.0843.11 ▼3.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: registration-date, filter, user-column, users, date...

manage-user-columns/manage-user-columns.php 92% from 13 tests

Analyzing the main PHP file in "Manage User Columns" version 1.0.5
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
There were no executable files found in this plugin428 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32323285
CSS113107
JavaScript14036

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected