No unsafe-inline 1.1.3

Does No unsafe-inline work with WordPress 6.4.3 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: 133.85 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.4.3
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=6406ae347c
Aspect after-activation
HTTP status 200
Load time 0.525 s
Memory usage 3.48 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.318 s
Memory usage 3.52 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.173 s
Memory usage 3.5 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.187 s
Memory usage 3.5 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.185 s
Memory usage 3.46 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.177 s
Memory usage 3.46 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.218 s
Memory usage 3.47 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.194 s
Memory usage 3.49 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.190 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.347 s0.314 s-0.033 s3.38 MiB3.53 MiB+ 154.38 KiB
/wp-admin/edit.php0.209 s0.182 s-0.027 s3.41 MiB3.56 MiB+ 153.3 KiB
/wp-admin/post-new.php0.864 s0.691 s-0.173 s5.46 MiB5.61 MiB+ 157.95 KiB
/wp-admin/upload.php0.688 s0.385 s-0.303 s3.32 MiB3.46 MiB+ 137.02 KiB
/wp-admin/options-writing.php0.215 s0.203 s-0.012 s3.32 MiB3.44 MiB+ 129.54 KiB
/wp-admin/media-new.php0.301 s0.212 s-0.089 s3.3 MiB3.44 MiB+ 149.2 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.171 s-0.024 s3.31 MiB3.46 MiB+ 154.38 KiB
/wp-admin/post-new.php?post_type=page0.623 s0.557 s-0.066 s5.45 MiB5.6 MiB+ 157.54 KiB
/wp-admin/options-discussion.php0.299 s0.296 s-0.003 s3.3 MiB3.44 MiB+ 138.63 KiB
/wp-admin/edit-comments.php0.233 s0.210 s-0.023 s3.34 MiB3.47 MiB+ 137.01 KiB
/0.284 s0.180 s-0.104 s3.36 MiB3.36 MiB+ 3.44 KiB
Average 0.387 s0.309 s-0.078 s3.72 MiB3.85 MiB+ 133.85 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
PO File
Language % Lines of code Comment lines Files
PHP51.4%8,6204,31048
CSS34.9%5,85430412
PO File8.9%1,4905961
JavaScript4.6%765735
JSON0.3%4801
Total 16,777 5,283 67

PHP Code Analysis | More results »

Lines of code 8,214
Total complexity 1,549
Median class complexity 21.0
Median method complexity 2.0
Most complex class No_Unsafe_Inline_Admin
Most complex function NUNIL\Nunil_Manipulate_DOM::manipulate_external_node()
Classes 32
Methods 360
Functions 7

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 5

PHP Error Log 1 lines

[25-Feb-2024 09:56:53 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 69
See also: All tests for this plugin, How to Hide the "CSP settings" Admin Menu