No unsafe-inline 1.1.4

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: 140.18 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=1925eaf980
Aspect after-activation
HTTP status 200
Load time 0.522 s
Memory usage 3.49 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.381 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.216 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.230 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.199 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.196 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.278 s
Memory usage 3.48 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.216 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.277 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.480 s0.523 s+0.043 s3.38 MiB3.53 MiB+ 155.93 KiB
/wp-admin/edit.php0.257 s0.373 s+0.116 s3.41 MiB3.56 MiB+ 154.85 KiB
/wp-admin/post-new.php1.132 s1.467 s+0.335 s5.46 MiB5.61 MiB+ 159.5 KiB
/wp-admin/upload.php0.844 s0.485 s-0.359 s3.32 MiB3.46 MiB+ 138.56 KiB
/wp-admin/options-writing.php0.249 s0.213 s-0.036 s3.32 MiB3.45 MiB+ 131.09 KiB
/wp-admin/media-new.php0.343 s0.275 s-0.068 s3.3 MiB3.44 MiB+ 150.75 KiB
/wp-admin/edit-tags.php?taxonomy=category0.245 s0.212 s-0.033 s3.31 MiB3.47 MiB+ 155.92 KiB
/wp-admin/post-new.php?post_type=page1.068 s0.976 s-0.092 s5.45 MiB5.61 MiB+ 159.09 KiB
/wp-admin/options-discussion.php0.305 s0.308 s+0.003 s3.3 MiB3.44 MiB+ 140.17 KiB
/wp-admin/edit-comments.php0.495 s0.244 s-0.251 s3.34 MiB3.47 MiB+ 138.55 KiB
/0.390 s0.282 s-0.108 s3.31 MiB3.36 MiB+ 57.6 KiB
Average 0.528 s0.487 s-0.041 s3.72 MiB3.85 MiB+ 140.18 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.5%8,6674,31948
CSS34.8%5,85430412
PO File8.9%1,4905961
JavaScript4.5%765735
JSON0.3%4801
Total 16,824 5,292 67

PHP Code Analysis | More results »

Lines of code 8,246
Total complexity 1,557
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 362
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

[05-Mar-2024 23:09:14 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