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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.13 ▼5.73 |
Dashboard /wp-admin | 3.93 ▲0.58 | 47.20 ▼14.49 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 46.83 ▲1.88 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 95.99 ▲5.77 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲48 | 14.32 ▲0.05 | 1.75 ▲0.05 | 38.90 ▼5.40 |
Dashboard /wp-admin | 2,200 ▲20 | 5.62 ▼0.12 | 91.89 ▼5.06 | 38.29 ▼8.18 |
Posts /wp-admin/edit.php | 2,102 ▼1 | 2.02 ▲0.02 | 34.10 ▼1.23 | 35.37 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.16 ▲0.05 | 594.34 ▼50.97 | 53.36 ▲3.40 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.20 ▲0.01 | 96.60 ▼1.08 | 42.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 2,241 | 1,024 | 5,577 |
JavaScript | 2 | 242 | 115 | 398 |
PO File | 1 | 9 | 9 | 32 |
Markdown | 1 | 9 | 0 | 24 |
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 code | 0.64 |
Average class complexity | 97.22 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 628.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 280 | |
▷ Static methods | 260 | 92.86% |
▷ Public methods | 270 | 96.43% |
▷ Protected methods | 7 | 2.50% |
▷ Private methods | 3 | 1.07% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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