No unsafe-inline 1.2.2

Does No unsafe-inline work with WordPress 6.7.2 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 129.04 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.7.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/no-unsafe-inline/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 9

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=no-unsafe-inline%2Fno-unsafe-inline.php&plugin_status=all&paged=1&s&_wpnonce=86e7a1056a
Aspect after-activation
HTTP status 200
Load time 0.362 s
Memory usage 3.66 MiB
JS errors None
Resource errors None

Settings → CSP settings

Page screenshot: Settings → CSP settings
URL /wp-admin/options-general.php?page=no-unsafe-inline
Aspect menu-item
HTTP status 200
Load time 0.324 s
Memory usage 3.64 MiB
JS errors None
Resource errors None

Settings → CSP settings → Base rules

Page screenshot: Settings → CSP settings → Base rules
URL /wp-admin/options-general.php?page=no-unsafe-inline&tab=base-rule
Aspect menu-item-tab
HTTP status 200
Load time 0.195 s
Memory usage 3.61 MiB
JS errors None
Resource errors None

Settings → CSP settings → External whitelist

Page screenshot: Settings → CSP settings → External whitelist
URL /wp-admin/options-general.php?page=no-unsafe-inline&tab=external
Aspect menu-item-tab
HTTP status 200
Load time 0.264 s
Memory usage 3.61 MiB
JS errors None
Resource errors None

Settings → CSP settings → Inline whitelist

Page screenshot: Settings → CSP settings → Inline whitelist
URL /wp-admin/options-general.php?page=no-unsafe-inline&tab=inline
Aspect menu-item-tab
HTTP status 200
Load time 0.165 s
Memory usage 3.61 MiB
JS errors None
Resource errors None

Settings → CSP settings → Events whitelist

Page screenshot: Settings → CSP settings → Events whitelist
URL /wp-admin/options-general.php?page=no-unsafe-inline&tab=events
Aspect menu-item-tab
HTTP status 200
Load time 0.198 s
Memory usage 3.61 MiB
JS errors None
Resource errors None

Settings → CSP settings → Settings

Page screenshot: Settings → CSP settings → Settings
URL /wp-admin/options-general.php?page=no-unsafe-inline&tab=settings
Aspect menu-item-tab
HTTP status 200
Load time 0.224 s
Memory usage 3.62 MiB
JS errors None
Resource errors None

Settings → CSP settings → Logs

Page screenshot: Settings → CSP settings → Logs
URL /wp-admin/options-general.php?page=no-unsafe-inline&tab=logs
Aspect menu-item-tab
HTTP status 200
Load time 0.166 s
Memory usage 3.61 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.152 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.276 s0.254 s-0.022 s3.48 MiB3.64 MiB+ 161.38 KiB
/wp-admin/edit.php0.159 s0.160 s+0.001 s3.54 MiB3.68 MiB+ 143.13 KiB
/wp-admin/post-new.php0.701 s0.904 s+0.203 s5.93 MiB6.09 MiB+ 165.31 KiB
/wp-admin/upload.php0.486 s0.600 s+0.114 s3.5 MiB3.62 MiB+ 125.99 KiB
/wp-admin/options-writing.php0.192 s0.196 s+0.004 s3.47 MiB3.6 MiB+ 130.39 KiB
/wp-admin/media-new.php0.233 s0.243 s+0.010 s3.46 MiB3.6 MiB+ 138.59 KiB
/wp-admin/edit-tags.php?taxonomy=category0.173 s0.168 s-0.005 s3.48 MiB3.62 MiB+ 149.35 KiB
/wp-admin/post-new.php?post_type=page0.565 s0.555 s-0.010 s5.92 MiB6.08 MiB+ 160.53 KiB
/wp-admin/options-discussion.php0.259 s0.231 s-0.028 s3.48 MiB3.6 MiB+ 126.89 KiB
/wp-admin/edit-comments.php0.357 s0.180 s-0.177 s3.5 MiB3.62 MiB+ 126.55 KiB
/0.279 s0.176 s-0.103 s3.48 MiB3.47 MiB- 8.69 KiB
Average 0.335 s0.333 s-0.001 s3.93 MiB4.06 MiB+ 129.04 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
Language % Lines of code Comment lines Files
PHP51.9%9,5554,89148
CSS40.9%7,53037315
JavaScript7.0%1,2893236
JSON0.3%4801
Total 18,422 5,587 70

PHP Code Analysis | More results »

Lines of code 9,225
Total complexity 1,747
Median class complexity 24.0
Median method complexity 2.0
Most complex class No_Unsafe_Inline_Admin
Most complex function NUNIL\Nunil_Manipulate_DOM::manipulate_external_node()
Classes 35
Methods 410
Functions 9

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.

Database Tables 5

Options wp_options 6

PHP Error Log 1 lines

[19-Feb-2025 17:37:21 UTC] PHP Warning:  copy(/wp-content/mu-plugins/no-unsafe-inline-output-buffering.php): Failed to open stream: Permission denied in /wp-content/plugins/no-unsafe-inline/src/Nunil_Manage_Muplugin.php on line 68
See also: All tests for this plugin, How to Hide the "CSP settings" Admin Menu