Page Specific Scripts 1.0

Does Page Specific Scripts work with WordPress 5.8.1 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 2.62 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 version5.8.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 40+
WordPress.org page https://wordpress.org/plugins/page-specific-scripts/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

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=page-specific-scripts%2Fwpcp-page-specific-scripts.php&plugin_status=all&paged=1&s&_wpnonce=a7145d8e92
Aspect after-activation
HTTP status 200
Load time 0.334 s
Memory usage 3.05 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.213 s
Memory usage 2.91 MiB
JS errors
[
    {
        "message": "SyntaxError: Unexpected identifier",
        "trace": null,
        "code": null
    }
]
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 1.344 s
Memory usage 5.28 MiB
JS errors None
Resource errors None

Add New Page ‹ Test site — WordPress

Page screenshot: Add New Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 1.125 s
Memory usage 5.27 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.373 s0.315 s-0.058 s3.08 MiB3.09 MiB+ 8.46 KiB
/wp-admin/edit.php0.202 s0.222 s+0.020 s3.11 MiB3.12 MiB+ 8.46 KiB
/wp-admin/post-new.php1.493 s1.039 s-0.454 s5.27 MiB5.28 MiB+ 16.02 KiB
/wp-admin/upload.php0.627 s0.357 s-0.270 s3.03 MiB3.04 MiB+ 7.33 KiB
/wp-admin/options-writing.php0.192 s0.163 s-0.029 s3.02 MiB3.01 MiB- 8.73 KiB
/wp-admin/media-new.php0.260 s0.212 s-0.048 s3.01 MiB3.01 MiB+ 7.5 KiB
/wp-admin/edit-tags.php?taxonomy=category0.208 s0.196 s-0.012 s3.04 MiB3.05 MiB+ 8.41 KiB
/wp-admin/post-new.php?post_type=page0.934 s1.110 s+0.176 s5.26 MiB5.27 MiB+ 11.61 KiB
/wp-admin/options-discussion.php0.249 s0.309 s+0.060 s3 MiB3.01 MiB+ 7.78 KiB
/wp-admin/edit-comments.php0.220 s0.228 s+0.008 s3.04 MiB3.05 MiB+ 7.31 KiB
/0.305 s0.302 s-0.003 s2.96 MiB2.91 MiB- 45.3 KiB
Average 0.460 s0.405 s-0.055 s3.44 MiB3.44 MiB+ 2.62 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%166233
Total 166 23 3

PHP Code Analysis | More results »

Lines of code 166
Total complexity 29
Median class complexity 0.0
Median method complexity 2.0
Most complex class Page_Specific_Scripts
Most complex function Page_Specific_Scripts::insert_script_in_head()
Classes 1
Methods 9
Functions 1

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.

Meta Boxes

{
    "post": {
        "add_script": {
            "title": "Add Page Specific Scripts",
            "context": "normal"
        }
    },
    "page": {
        "add_script": {
            "title": "Add Page Specific Scripts",
            "context": "normal"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "Add Page Specific Scripts" Meta Box