Shortcode Preview 1.2

Does Shortcode Preview work with WordPress 7.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
1PHP fatal errors
46PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 17.02 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.047 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version7.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs <10
WordPress.org page https://wordpress.org/plugins/shortcode-preview/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=shortcode-preview%2Fshortcode-preview.php&plugin_status=all&paged=1&s&_wpnonce=3f08bba57f
Aspect after-activation
HTTP status 200
Load time 0.709 s
Memory usage 4.26 MiB
JS errors None
Resource errors None

Settings → Shortcode Preview

Page screenshot: Settings → Shortcode Preview
URL /wp-admin/options-general.php?page=shortcode-preview
Aspect menu-item
HTTP status 200
Load time 0.166 s
Memory usage N/A
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.229 s
Memory usage 4.63 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.964 s0.611 s-0.353 s4.22 MiB4.24 MiB+ 18.43 KiB
/wp-admin/edit.php0.548 s0.751 s+0.203 s4.28 MiB4.3 MiB+ 18.12 KiB
/wp-admin/post-new.php2.124 s2.510 s+0.386 s6.78 MiB6.82 MiB+ 45.8 KiB
/wp-admin/upload.php1.015 s1.091 s+0.076 s4.24 MiB4.25 MiB+ 4.77 KiB
/wp-admin/options-writing.php0.568 s0.540 s-0.028 s4.22 MiB4.22 MiB+ 5.01 KiB
/wp-admin/media-new.php0.591 s0.695 s+0.104 s4.21 MiB4.22 MiB+ 13.2 KiB
/wp-admin/edit-tags.php?taxonomy=category0.531 s0.549 s+0.018 s4.22 MiB4.24 MiB+ 18.07 KiB
/wp-admin/post-new.php?post_type=page1.928 s2.444 s+0.516 s6.75 MiB6.79 MiB+ 37.33 KiB
/wp-admin/options-discussion.php1.158 s0.774 s-0.384 s4.22 MiB4.22 MiB- 2.8 KiB
/wp-admin/edit-comments.php0.553 s0.568 s+0.015 s4.24 MiB4.24 MiB+ 1.02 KiB
/0.314 s0.281 s-0.033 s4.6 MiB4.63 MiB+ 28.25 KiB
Average 0.936 s0.983 s+0.047 s4.73 MiB4.74 MiB+ 17.02 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
CSS
JavaScript
Language % Lines of code Comment lines Files
PHP54.9%270846
CSS25.4%12501
JavaScript19.7%9711
Total 492 85 8

PHP Code Analysis | More results »

Lines of code 261
Total complexity 33
Median class complexity 2.0
Median method complexity 1.0
Most complex class ShortcodePreviewi18n
Most complex function shortcode_preview_settings_page()
Classes 1
Methods 2
Functions 13

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Options wp_options 1

PHP Error Log 55 lines

[09-Sep-2026 09:26:18 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:18 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:18 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:19 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:19 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:19 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:20 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:20 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:20 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:20 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /wp-content/plugins/shortcode-preview/includes/admin.php:60
Stack trace:
#0 /wp-includes/class-wp-hook.php(353): shortcode_preview_settings_page()
#1 /wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(523): WP_Hook->do_action()
#3 /wp-admin/admin.php(264): do_action()
#4 /wp-admin/options-general.php(10): require_once('...')
#5 {main}
  thrown in /wp-content/plugins/shortcode-preview/includes/admin.php on line 60
[09-Sep-2026 09:26:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:22 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:23 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:23 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:23 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:26 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:27 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:27 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:28 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:28 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:28 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:28 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:28 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:28 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:29 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:29 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:29 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:30 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:30 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:30 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:33 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:33 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:33 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:34 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:34 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:34 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:35 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:35 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:35 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:36 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:36 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:36 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
[09-Sep-2026 09:26:36 UTC] PHP Deprecated:  Function has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6260
See also: All tests for this plugin