84% jsm-show-user-meta

Code Review | JSM Show User Metadata

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

About plugin

  • Plugin page: jsm-show-user-meta
  • 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: Aug 2, 2016
  • Latest release: Nov 25, 2023
  • Number of updates: 1,040
  • Update frequency: every 2.6 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /54,437 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.47MB] [CPU: ▼0.12ms] Passed 4 tests

This is a short check of server-side resources used by JSM Show User Metadata
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.63 ▼2.75
Dashboard /wp-admin3.93 ▲0.6348.34 ▲0.76
Posts /wp-admin/edit.php3.98 ▲0.6349.71 ▼0.10
Add New Post /wp-admin/post-new.php6.53 ▲0.6590.65 ▲1.63
Media Library /wp-admin/upload.php3.86 ▲0.6336.60 ▲4.51

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

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

Browser metrics Passed 4 tests

A check of browser resources used by JSM Show User Metadata
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3314.71 ▲0.371.65 ▼0.2336.52 ▼9.18
Dashboard /wp-admin2,197 ▲175.56 ▼0.0899.11 ▲8.6540.80 ▼2.38
Posts /wp-admin/edit.php2,108 ▲51.97 ▲0.0242.33 ▲0.1534.47 ▼2.69
Add New Post /wp-admin/post-new.php1,531 ▼4123.18 ▲3.92666.10 ▲56.8052.69 ▼8.95
Media Library /wp-admin/upload.php1,405 ▲54.21 ▲0.0293.61 ▼0.2639.77 ▼2.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/jsm-show-user-meta/lib/user.php
    • > /wp-content/plugins/jsm-show-user-meta/lib/config.php
    • > /wp-content/plugins/jsm-show-user-meta/jsm-show-user-meta.php
    • > /wp-content/plugins/jsm-show-user-meta/lib/com/util-metabox.php
    • > /wp-content/plugins/jsm-show-user-meta/lib/script.php
    • > /wp-content/plugins/jsm-show-user-meta/lib/ext/compressor.php
    • > /wp-content/plugins/jsm-show-user-meta/gettext/gettext-lib-config.php
    • > /wp-content/plugins/jsm-show-user-meta/lib/com/util.php
    • > /wp-content/plugins/jsm-show-user-meta/lib/com/country-codes.php
    • > /wp-content/plugins/jsm-show-user-meta/lib/com/util-wp.php

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Screenshot #1 (The "User Metadata" metabox added to admin user profile pages.) image required
You can take inspiration from this readme.txt

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

The main PHP script in "JSM Show User Metadata" version 3.8.0 is automatically included on every request by WordPress
106 characters long description:
Show user metadata in a metabox when editing users - a great tool for debugging issues with user metadata.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected6,041 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP112,2461,0245,584
JavaScript2242115398
PO File1101035
Markdown19024

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity97.33
▷ Minimum class complexity3.00
▷ Maximum class complexity628.00
Average method complexity4.10
▷ 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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin