WP JS 2.0.6

Does WP JS work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
3PHP fatal errors
6PHP warnings
31PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

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

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.8.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 100+
WordPress.org page https://wordpress.org/plugins/wp-js/
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=wp-js%2Fwp-js.php&plugin_status=all&paged=1&s&_wpnonce=5124187e61
Aspect after-activation
HTTP status 200
Load time 0.326 s
Memory usage 3.52 MiB
JS errors None
Resource errors None

Settings → WP JS

Page screenshot: Settings → WP JS
URL /wp-admin/options-general.php?page=wp-js%2Fwp-js.php
Requested URL /wp-admin/options-general.php?page=wp-js/wp-js.php
Aspect menu-item
HTTP status 200
Load time 0.154 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.203 s
Memory usage 3.44 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.348 s0.282 s-0.066 s3.51 MiB3.52 MiB+ 9.7 KiB
/wp-admin/edit.php0.203 s0.201 s-0.002 s3.57 MiB3.58 MiB+ 7.34 KiB
/wp-admin/post-new.php0.789 s0.232 s-0.557 s6.06 MiB
/wp-admin/upload.php0.589 s0.269 s-0.320 s3.52 MiB3.51 MiB- 9.75 KiB
/wp-admin/options-writing.php0.238 s0.193 s-0.045 s3.5 MiB3.49 MiB- 6.07 KiB
/wp-admin/media-new.php0.341 s0.286 s-0.055 s3.49 MiB3.49 MiB+ 2.13 KiB
/wp-admin/edit-tags.php?taxonomy=category0.212 s0.270 s+0.058 s3.5 MiB3.52 MiB+ 12.8 KiB
/wp-admin/post-new.php?post_type=page0.617 s0.266 s-0.351 s6.05 MiB
/wp-admin/options-discussion.php0.267 s0.196 s-0.071 s3.5 MiB3.49 MiB- 9.57 KiB
/wp-admin/edit-comments.php0.434 s0.212 s-0.222 s3.52 MiB3.51 MiB- 10.07 KiB
/0.300 s0.225 s-0.075 s3.43 MiB3.44 MiB+ 3.54 KiB
Average 0.394 s0.239 s-0.155 s3.97 MiB3.51 MiB+ 5.33 bytes

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
Language % Lines of code Comment lines Files
PHP100.0%8751096
Total 875 109 6

PHP Code Analysis | More results »

Lines of code 893
Total complexity 165
Median class complexity 68.0
Median method complexity 7.0
Most complex class JSMin
Most complex function JSMin::min()
Classes 1
Methods 7
Functions 25

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 3

PHP Error Log 73 lines

[12-May-2025 14:35:00 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 6121
[12-May-2025 14:35:00 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 6121
[12-May-2025 14:35:01 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 6121
[12-May-2025 14:35:01 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 6121
[12-May-2025 14:35:01 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 6121
[12-May-2025 14:35:01 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 6121
[12-May-2025 14:35:01 UTC] PHP Warning:  Undefined array key "wp_js_clear_cache" in /wp-content/plugins/wp-js/wp-js.php on line 107
[12-May-2025 14:35:01 UTC] PHP Warning:  Undefined array key "wp_js_edit_expiry" in /wp-content/plugins/wp-js/wp-js.php on line 115
[12-May-2025 14:35:01 UTC] PHP Warning:  Undefined array key "wp_js_activation" in /wp-content/plugins/wp-js/wp-js.php on line 119
[12-May-2025 14:35:01 UTC] PHP Warning:  Undefined array key "wp_js_within_posts_activation" in /wp-content/plugins/wp-js/wp-js.php on line 122
[12-May-2025 14:35:01 UTC] PHP Warning:  Undefined array key "wp_js_edit_expiry" in /wp-content/plugins/wp-js/wp-js-functions.php on line 176
[12-May-2025 14:35:01 UTC] PHP Warning:  Undefined array key "wp_js_message" in /wp-content/plugins/wp-js/wp-js.php on line 140
[12-May-2025 14:35:01 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /wp-content/plugins/wp-js/wp-js.php:80
Stack trace:
#0 /wp-content/plugins/wp-js/wp-js.php(214): wp_js_file_structure()
#1 /wp-includes/class-wp-hook.php(324): wp_js_admin()
#2 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 /wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /wp-admin/admin.php(260): do_action()
#5 /wp-admin/options-general.php(10): require_once('...')
#6 {main}
  thrown in /wp-content/plugins/wp-js/wp-js.php on line 80
[12-May-2025 14:35:03 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 6121
[12-May-2025 14:35:03 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 6121
[12-May-2025 14:35:03 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 6121
[12-May-2025 14:35:03 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 6121
[12-May-2025 14:35:04 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 6121
[12-May-2025 14:35:04 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 6121
[12-May-2025 14:35:04 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function eregi() in /wp-content/plugins/wp-js/wp-js-functions.php:133
Stack trace:
#0 /wp-content/plugins/wp-js/wp-js-files-list.php(284): wp_js_directory_map()
#1 /wp-content/plugins/wp-js/wp-js-files-list.php(218): wp_js_files()
#2 /wp-includes/class-wp-hook.php(324): wp_js_files_display()
#3 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /wp-admin/includes/post.php(2560): do_action()
#6 /wp-admin/includes/post.php(2382): the_block_editor_meta_box_post_form_hidden_fields()
#7 /wp-admin/edit-form-blocks.php(383): the_block_editor_meta_boxes()
#8 /wp-admin/post-new.php(72): require('...')
#9 {main}
  thrown in /wp-content/plugins/wp-js/wp-js-functions.php on line 133
[12-May-2025 14:35:04 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 6121
[12-May-2025 14:35:04 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 6121
[12-May-2025 14:35:04 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 6121
[12-May-2025 14:35:04 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 6121
[12-May-2025 14:35:05 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 6121
[12-May-2025 14:35:05 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 6121
[12-May-2025 14:35:05 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 6121
[12-May-2025 14:35:05 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 6121
[12-May-2025 14:35:05 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 6121
[12-May-2025 14:35:05 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 6121
[12-May-2025 14:35:05 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function eregi() in /wp-content/plugins/wp-js/wp-js-functions.php:133
Stack trace:
#0 /wp-content/plugins/wp-js/wp-js-files-list.php(284): wp_js_directory_map()
#1 /wp-content/plugins/wp-js/wp-js-files-list.php(218): wp_js_files()
#2 /wp-includes/class-wp-hook.php(324): wp_js_files_display()
#3 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /wp-admin/includes/post.php(2560): do_action()
#6 /wp-admin/includes/post.php(2382): the_block_editor_meta_box_post_form_hidden_fields()
#7 /wp-admin/edit-form-blocks.php(383): the_block_editor_meta_boxes()
#8 /wp-admin/post-new.php(72): require('...')
#9 {main}
  thrown in /wp-content/plugins/wp-js/wp-js-functions.php on line 133
[12-May-2025 14:35:05 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 6121
[12-May-2025 14:35:05 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 6121
[12-May-2025 14:35:06 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 6121
[12-May-2025 14:35:06 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 6121
[12-May-2025 14:35:06 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 6121
[12-May-2025 14:35:06 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 6121
[12-May-2025 14:35:07 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 6121
[12-May-2025 14:35:07 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 6121
[12-May-2025 14:35:07 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 6121
See also: All tests for this plugin