84% jsm-show-comment-meta

Code Review | JSM Show Comment Metadata

WordPress plugin JSM Show Comment Metadata scored84%from 54 tests.

About plugin

  • Plugin page: jsm-show-comment-...
  • Plugin version: 3.8.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2021
  • Latest release: Nov 25, 2023
  • Number of updates: 636
  • Update frequency: every 1.6 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,299 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▼3.14ms] Passed 4 tests

A check of server-side resources used by JSM Show Comment Metadata
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.13 ▼5.73
Dashboard /wp-admin3.93 ▲0.5847.20 ▼14.49
Posts /wp-admin/edit.php3.98 ▲0.6246.83 ▲1.88
Add New Post /wp-admin/post-new.php6.53 ▲0.6495.99 ▲5.77
Media Library /wp-admin/upload.php3.85 ▲0.6237.91 ▲5.90

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for JSM Show Comment Metadata
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4814.32 ▲0.051.75 ▲0.0538.90 ▼5.40
Dashboard /wp-admin2,200 ▲205.62 ▼0.1291.89 ▼5.0638.29 ▼8.18
Posts /wp-admin/edit.php2,102 ▼12.02 ▲0.0234.10 ▼1.2335.37 ▼0.47
Add New Post /wp-admin/post-new.php1,531 ▲523.16 ▲0.05594.34 ▼50.9753.36 ▲3.40
Media Library /wp-admin/upload.php1,405 ▲84.20 ▲0.0196.60 ▼1.0842.22 ▲1.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/jsm-show-comment-meta/lib/script.php
    • > /wp-content/plugins/jsm-show-comment-meta/jsm-show-comment-meta.php
    • > /wp-content/plugins/jsm-show-comment-meta/lib/com/country-codes.php
    • > /wp-content/plugins/jsm-show-comment-meta/gettext/gettext-lib-com.php
    • > /wp-content/plugins/jsm-show-comment-meta/lib/config.php
    • > /wp-content/plugins/jsm-show-comment-meta/lib/com/util-wp.php
    • > /wp-content/plugins/jsm-show-comment-meta/lib/comment.php
    • > /wp-content/plugins/jsm-show-comment-meta/lib/ext/compressor.php
    • > /wp-content/plugins/jsm-show-comment-meta/lib/com/util.php
    • > /wp-content/plugins/jsm-show-comment-meta/gettext/gettext-lib-config.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: comment meta, debug, delete, meta, inspector

jsm-show-comment-meta/jsm-show-comment-meta.php Passed 13 tests

This is the main PHP file of "JSM Show Comment Metadata" version 3.8.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
Show comment metadata in a metabox when editing comments - a great tool for debugging issues with comment metadata.

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
No dangerous file extensions were detected6,031 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP112,2411,0245,577
JavaScript2242115398
PO File19932
Markdown19024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity97.22
▷ Minimum class complexity3.00
▷ Maximum class complexity628.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods280
▷ Static methods26092.86%
▷ Public methods27096.43%
▷ Protected methods72.50%
▷ Private methods31.07%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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 images were found in this plugin