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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.77ms] Passed 4 tests
An overview of server-side resources used by JSM Pretty Schema JSON-LD for Yoast SEO, WooCommerce, etc.
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.10 ▼1.45 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.67 ▼2.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.68 ▼3.78 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.49 ▼11.83 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.76 ▲2.73 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for JSM Pretty Schema JSON-LD for Yoast SEO, WooCommerce, etc.
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.07 ▼0.28 | 2.12 ▲0.25 | 40.13 ▼1.61 |
Dashboard /wp-admin | 2,198 ▲23 | 5.57 ▼0.15 | 85.57 ▼12.00 | 37.82 ▼5.09 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.02 | 35.98 ▼3.67 | 38.62 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.22 ▲0.15 | 654.99 ▲4.43 | 49.60 ▼6.90 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.12 ▼0.09 | 95.99 ▼2.29 | 41.48 ▼5.87 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jsm-pretty-json-ld/lib/filters.php
- > /wp-content/plugins/jsm-pretty-json-ld/jsm-pretty-json-ld.php
- > /wp-content/plugins/jsm-pretty-json-ld/lib/ext/json-format.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: format, yoast, ldjson, pretty, seo...
jsm-pretty-json-ld/jsm-pretty-json-ld.php Passed 13 tests
"JSM Pretty Schema JSON-LD for Yoast SEO, WooCommerce, etc." version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
Re-format Schema LD+JSON / JSON-LD from Yoast SEO, WooCommerce, and others to create human readable (aka "pretty") code.
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
Everything looks great! No dangerous files found in this plugin177 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 85 | 49 | 137 |
PO File | 1 | 5 | 5 | 24 |
Markdown | 1 | 5 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 6 | 66.67% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin