Custom JavaScript Editor 1.1

Does Custom JavaScript Editor work with WordPress 6.8.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
1PHP warnings
5PHP notices
2PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 30.47 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.8.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 1,000+
WordPress.org page https://wordpress.org/plugins/custom-javascript-editor/
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=custom-javascript-editor%2Fcustom-javascript-editor.php&plugin_status=all&paged=1&s&_wpnonce=ddda2498ca
Aspect after-activation
HTTP status 200
Load time 0.273 s
Memory usage 3.55 MiB
JS errors None
Resource errors None

Appearance → Custom JavaScript

Page screenshot: Appearance → Custom JavaScript
URL /wp-admin/themes.php?page=custom-javascript
Aspect menu-item
HTTP status 200
Load time 0.260 s
Memory usage 3.58 MiB
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.179 s
Memory usage 3.48 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.365 s0.292 s-0.073 s3.51 MiB3.54 MiB+ 35.92 KiB
/wp-admin/edit.php0.209 s0.203 s-0.006 s3.57 MiB3.61 MiB+ 35.19 KiB
/wp-admin/post-new.php0.848 s0.643 s-0.205 s6.06 MiB6.1 MiB+ 39.65 KiB
/wp-admin/upload.php0.790 s0.567 s-0.223 s3.52 MiB3.54 MiB+ 17.78 KiB
/wp-admin/options-writing.php0.233 s0.224 s-0.009 s3.5 MiB3.52 MiB+ 21.77 KiB
/wp-admin/media-new.php0.294 s0.255 s-0.039 s3.49 MiB3.52 MiB+ 29.97 KiB
/wp-admin/edit-tags.php?taxonomy=category0.203 s0.222 s+0.019 s3.5 MiB3.54 MiB+ 40.64 KiB
/wp-admin/post-new.php?post_type=page0.754 s0.589 s-0.165 s6.05 MiB6.09 MiB+ 35.17 KiB
/wp-admin/options-discussion.php0.278 s0.256 s-0.022 s3.5 MiB3.52 MiB+ 18.27 KiB
/wp-admin/edit-comments.php0.466 s0.209 s-0.257 s3.52 MiB3.54 MiB+ 17.77 KiB
/0.311 s0.410 s+0.099 s3.43 MiB3.48 MiB+ 43.02 KiB
Average 0.432 s0.352 s-0.080 s3.97 MiB4 MiB+ 30.47 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.

JavaScript
Language % Lines of code Comment lines Files
JavaScript88.4%5,9963,3294
CSS6.6%4514214
PHP5.0%337291
Total 6,784 3,400 19

PHP Code Analysis | More results »

Lines of code 337
Total complexity 53
Median class complexity 53.0
Median method complexity 3.0
Most complex class Custom_Javascript_Editor
Most complex function Custom_Javascript_Editor::handle_form()
Classes 1
Methods 18
Functions 0

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.

Custom Post Types 1

ID Name
customjsPosts

PHP Error Log 8 lines

[18-Jul-2025 22:42:11 UTC] PHP Deprecated:  Function screen_icon is <strong>deprecated</strong> since version 3.8.0 with no alternative available. in /wp-includes/functions.php on line 6121
[18-Jul-2025 22:42:11 UTC] PHP Deprecated:  Function get_screen_icon is <strong>deprecated</strong> since version 3.8.0 with no alternative available. in /wp-includes/functions.php on line 6121
[18-Jul-2025 22:42:11 UTC] PHP Notice:  Only variables should be passed by reference in /wp-content/plugins/custom-javascript-editor/custom-javascript-editor.php on line 181
[18-Jul-2025 22:42:11 UTC] PHP Notice:  Only variables should be passed by reference in /wp-content/plugins/custom-javascript-editor/custom-javascript-editor.php on line 181
[18-Jul-2025 22:42:11 UTC] PHP Notice:  Only variables should be passed by reference in /wp-content/plugins/custom-javascript-editor/custom-javascript-editor.php on line 181
[18-Jul-2025 22:42:11 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/custom-javascript-editor/custom-javascript-editor.php on line 231
[18-Jul-2025 22:42:12 UTC] PHP Notice:  Only variables should be passed by reference in /wp-content/plugins/custom-javascript-editor/custom-javascript-editor.php on line 181
[18-Jul-2025 22:42:20 UTC] PHP Notice:  Only variables should be passed by reference in /wp-content/plugins/custom-javascript-editor/custom-javascript-editor.php on line 181
See also: All tests for this plugin, How to Hide the "Custom JavaScript" Admin Menu