94% comments-user-column

Code Review | Comments User Column

WordPress plugin Comments User Column scored 94% from 54 tests.

About plugin

  • Plugin page: comments-user-column
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3+
  • WordPress version: 5.8.1
  • First release: Aug 27, 2015
  • Latest release: Aug 27, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: greenshady (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,479 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼136.37ms] Passed 4 tests

Analyzing server-side resources used by Comments User Column
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1340.33 ▲16.63
Dashboard /wp-admin3.07 ▲0.0243.81 ▲12.39
Posts /wp-admin/edit.php3.13 ▲0.0247.55 ▲2.30
Add New Post /wp-admin/post-new.php5.43 ▼0.0097.71 ▼560.06
Media Library /wp-admin/upload.php3.02 ▲0.0233.89 ▼0.12

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Comments User Column: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10616.23 ▲0.418.80 ▼2.2449.61 ▼2.13
Dashboard /wp-admin2,967 ▲345.84 ▼0.10143.62 ▼19.00109.63 ▲0.19
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0166.76 ▼2.3396.46 ▲2.44
Add New Post /wp-admin/post-new.php1,683 ▲6818.69 ▼2.38377.76 ▲80.79121.89 ▲6.27
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.13164.07 ▲9.59129.17 ▲7.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comments-user-column/comments-user-column.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 your attention:
  • Screenshots: Add an image for screenshot #1 (Edit comments screen with user column.)
The official readme.txt might help

comments-user-column/comments-user-column.php Passed 13 tests

"Comments User Column" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
101 characters long description:
Displays a logged-in comment author's site display name in a new column on the comments admin screen.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin337 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Markdown3720297
PHP1278140

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png100.99KB37.89KB▼ 62.48%