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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.17 ▼3.44 |
Dashboard /wp-admin | 3.46 ▲0.16 | 44.29 ▼3.26 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 46.83 ▲2.93 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 84.83 ▼5.92 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲33 | 14.24 ▲0.09 | 1.68 ▲0.09 | 39.89 ▼3.40 |
Dashboard /wp-admin | 2,197 ▲20 | 5.60 ▲0.03 | 90.37 ▼11.76 | 40.04 ▼3.22 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.03 ▲0.03 | 38.84 ▲2.10 | 34.76 ▼3.95 |
Add New Post /wp-admin/post-new.php | 6,251 ▲4,715 | 26.06 ▲3.07 | 825.86 ▲173.43 | 62.87 ▼8.04 |
Media Library /wp-admin/upload.php | 1,408 ▲14 | 4.20 ▲0.01 | 96.97 ▲2.81 | 43.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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 2,270 | 1,033 | 5,616 |
JavaScript | 4 | 253 | 115 | 416 |
PO File | 1 | 9 | 9 | 32 |
Markdown | 1 | 9 | 0 | 24 |
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 code | 0.64 |
Average class complexity | 98.11 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 628.00 |
Average method complexity | 4.10 |
▷ 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 | 282 | |
▷ Static methods | 260 | 92.20% |
▷ Public methods | 272 | 96.45% |
▷ Protected methods | 7 | 2.48% |
▷ Private methods | 3 | 1.06% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected