84% jsm-show-term-meta

Code Review | JSM Show Term Metadata

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

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /17,113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by JSM Show Term Metadata
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.67 ▼5.12
Dashboard /wp-admin3.93 ▲0.5947.29 ▼14.40
Posts /wp-admin/edit.php3.98 ▲0.6348.07 ▲4.43
Add New Post /wp-admin/post-new.php6.53 ▲0.6586.24 ▼10.61
Media Library /wp-admin/upload.php3.86 ▲0.6338.98 ▲6.43

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for JSM Show Term Metadata
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3314.25 ▼0.031.84 ▲0.1943.67 ▲1.26
Dashboard /wp-admin2,203 ▲265.67 ▼0.0692.92 ▼3.5742.31 ▼1.10
Posts /wp-admin/edit.php2,102 ▲22.02 ▲0.0539.07 ▲3.5437.25 ▲2.97
Add New Post /wp-admin/post-new.php1,531 ▲523.19 ▲0.10736.71 ▲127.3060.19 ▲6.42
Media Library /wp-admin/upload.php1,408 ▲84.41 ▲0.2597.38 ▲3.6642.89 ▼0.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 12× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/jsm-show-term-meta/lib/com/util-wp.php
    • > /wp-content/plugins/jsm-show-term-meta/lib/ext/compressor.php
    • > /wp-content/plugins/jsm-show-term-meta/lib/com/util-metabox.php
    • > /wp-content/plugins/jsm-show-term-meta/lib/term.php
    • > /wp-content/plugins/jsm-show-term-meta/lib/script.php
    • > /wp-content/plugins/jsm-show-term-meta/lib/config.php
    • > /wp-content/plugins/jsm-show-term-meta/lib/com/country-codes.php
    • > /wp-content/plugins/jsm-show-term-meta/gettext/gettext-lib-com.php
    • > /wp-content/plugins/jsm-show-term-meta/jsm-show-term-meta.php
    • > /wp-content/plugins/jsm-show-term-meta/lib/compat.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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: Screenshot #1 (The "Term Metadata" metabox added to admin term editing pages.) image not found
You can take inspiration from this readme.txt

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

The main PHP file in "JSM Show Term Metadata" ver. 3.8.0 adds more information about the plugin and also serves as the entry point for this plugin
106 characters long description:
Show term metadata in a metabox when editing terms - a great tool for debugging issues with term metadata.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin6,067 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP122,2611,0325,608
JavaScript2242115398
PO File1101035
Markdown111026

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity87.90
▷ Minimum class complexity2.00
▷ Maximum class complexity628.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods282
▷ Static methods26092.20%
▷ Public methods27296.45%
▷ Protected methods72.48%
▷ Private methods31.06%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin