WP JS 2.0.6

Does WP JS work with WordPress 6.5.2 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: -8.86 KiB
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.5.2
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=f8127afc0a
Aspect after-activation
HTTP status 200
Load time 0.262 s
Memory usage 3.38 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.146 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.187 s
Memory usage 3.36 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.371 s0.311 s-0.060 s3.43 MiB3.44 MiB+ 5.72 KiB
/wp-admin/edit.php0.216 s0.190 s-0.026 s3.46 MiB3.47 MiB+ 5.72 KiB
/wp-admin/post-new.php0.944 s0.204 s-0.740 s5.59 MiB
/wp-admin/upload.php0.585 s0.357 s-0.228 s3.38 MiB3.37 MiB- 10.95 KiB
/wp-admin/options-writing.php0.229 s0.183 s-0.046 s3.37 MiB3.35 MiB- 18.16 KiB
/wp-admin/media-new.php0.312 s0.569 s+0.257 s3.35 MiB3.35 MiB+ 2.07 KiB
/wp-admin/edit-tags.php?taxonomy=category0.197 s0.194 s-0.003 s3.37 MiB3.37 MiB+ 6.41 KiB
/wp-admin/post-new.php?post_type=page0.561 s0.195 s-0.366 s5.58 MiB
/wp-admin/options-discussion.php0.252 s0.218 s-0.034 s3.36 MiB3.35 MiB- 9.63 KiB
/wp-admin/edit-comments.php0.508 s0.197 s-0.311 s3.39 MiB3.38 MiB- 11.7 KiB
/0.301 s0.185 s-0.116 s3.42 MiB3.37 MiB- 49.2 KiB
Average 0.407 s0.255 s-0.152 s3.79 MiB3.38 MiB- 8.86 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
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

[22-Apr-2024 02:52:35 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:35 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:36 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:36 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:36 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:36 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:36 UTC] PHP Warning:  Undefined array key "wp_js_clear_cache" in /wp-content/plugins/wp-js/wp-js.php on line 107
[22-Apr-2024 02:52:36 UTC] PHP Warning:  Undefined array key "wp_js_edit_expiry" in /wp-content/plugins/wp-js/wp-js.php on line 115
[22-Apr-2024 02:52:36 UTC] PHP Warning:  Undefined array key "wp_js_activation" in /wp-content/plugins/wp-js/wp-js.php on line 119
[22-Apr-2024 02:52:36 UTC] PHP Warning:  Undefined array key "wp_js_within_posts_activation" in /wp-content/plugins/wp-js/wp-js.php on line 122
[22-Apr-2024 02:52:36 UTC] PHP Warning:  Undefined array key "wp_js_edit_expiry" in /wp-content/plugins/wp-js/wp-js-functions.php on line 176
[22-Apr-2024 02:52:36 UTC] PHP Warning:  Undefined array key "wp_js_message" in /wp-content/plugins/wp-js/wp-js.php on line 140
[22-Apr-2024 02:52:36 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(259): 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
[22-Apr-2024 02:52:38 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:38 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:38 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:38 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:38 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:38 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:38 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(2549): do_action()
#6 /wp-admin/includes/post.php(2371): the_block_editor_meta_box_post_form_hidden_fields()
#7 /wp-admin/edit-form-blocks.php(316): 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
[22-Apr-2024 02:52:38 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:38 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:39 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:39 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:39 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:39 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:40 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:40 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:40 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:40 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:40 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(2549): do_action()
#6 /wp-admin/includes/post.php(2371): the_block_editor_meta_box_post_form_hidden_fields()
#7 /wp-admin/edit-form-blocks.php(316): 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
[22-Apr-2024 02:52:40 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:40 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:40 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:40 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:41 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:41 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:41 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:41 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[22-Apr-2024 02:52:41 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
See also: All tests for this plugin