84% jsm-show-post-meta

Code Review | JSM Show Post Metadata

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

About plugin

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

Code review

54 tests

User reviews

7 reviews

Install metrics

8,000+ active /128,559 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by JSM Show Post Metadata
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.17 ▼3.44
Dashboard /wp-admin3.46 ▲0.1644.29 ▼3.26
Posts /wp-admin/edit.php3.51 ▲0.1646.83 ▲2.93
Add New Post /wp-admin/post-new.php6.07 ▲0.1884.83 ▼5.92
Media Library /wp-admin/upload.php3.39 ▲0.1635.20 ▲3.55

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

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

Browser metrics Passed 4 tests

A check of browser resources used by JSM Show Post Metadata
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3314.24 ▲0.091.68 ▲0.0939.89 ▼3.40
Dashboard /wp-admin2,197 ▲205.60 ▲0.0390.37 ▼11.7640.04 ▼3.22
Posts /wp-admin/edit.php2,105 ▲52.03 ▲0.0338.84 ▲2.1034.76 ▼3.95
Add New Post /wp-admin/post-new.php6,251 ▲4,71526.06 ▲3.07825.86 ▲173.4362.87 ▼8.04
Media Library /wp-admin/upload.php1,408 ▲144.20 ▲0.0196.97 ▲2.8143.00 ▲2.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 11× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/jsm-show-post-meta/lib/post.php
    • > /wp-content/plugins/jsm-show-post-meta/lib/com/util.php
    • > /wp-content/plugins/jsm-show-post-meta/lib/com/country-codes.php
    • > /wp-content/plugins/jsm-show-post-meta/lib/com/util-metabox.php
    • > /wp-content/plugins/jsm-show-post-meta/lib/ext/compressor.php
    • > /wp-content/plugins/jsm-show-post-meta/gettext/gettext-lib-com.php
    • > /wp-content/plugins/jsm-show-post-meta/lib/config.php
    • > /wp-content/plugins/jsm-show-post-meta/gettext/gettext-lib-config.php
    • > /wp-content/plugins/jsm-show-post-meta/lib/com/util-wp.php
    • > /wp-content/plugins/jsm-show-post-meta/jsm-show-post-meta.php

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

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (The "Post Metadata" metabox added to admin post editing pages.)
The official readme.txt might help

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

The main PHP script in "JSM Show Post Metadata" version 3.8.0 is automatically included on every request by WordPress
134 characters long description:
Show post metadata (aka custom fields) in a metabox when editing posts / pages - a great tool for debugging issues with post metadata.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin6,088 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP112,2701,0335,616
JavaScript4253115416
PO File19932
Markdown19024

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity98.11
▷ 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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected