No unsafe-inline 1.0.2

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

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 219.8 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.9.3
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=d93f73292a
Aspect after-activation
HTTP status 200
Load time 0.451 s
Memory usage 3.46 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.355 s
Memory usage 3.9 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.215 s
Memory usage 3.48 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.181 s
Memory usage 3.51 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.166 s
Memory usage 3.49 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.166 s
Memory usage 3.49 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.228 s
Memory usage 3.46 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.201 s
Memory usage 3.47 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.292 s
Memory usage 3.43 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.363 s0.264 s-0.099 s3.37 MiB3.57 MiB+ 206.47 KiB
/wp-admin/edit.php0.193 s0.190 s-0.003 s3.4 MiB3.59 MiB+ 189.77 KiB
/wp-admin/post-new.php0.800 s0.934 s+0.134 s5.68 MiB6.05 MiB+ 378.34 KiB
/wp-admin/upload.php0.361 s0.318 s-0.043 s3.25 MiB3.47 MiB+ 229.34 KiB
/wp-admin/options-writing.php0.303 s0.147 s-0.156 s3.24 MiB3.4 MiB+ 165.13 KiB
/wp-admin/media-new.php0.327 s0.181 s-0.146 s3.23 MiB3.4 MiB+ 181.51 KiB
/wp-admin/edit-tags.php?taxonomy=category0.178 s0.323 s+0.145 s3.27 MiB3.48 MiB+ 219.96 KiB
/wp-admin/post-new.php?post_type=page0.622 s0.707 s+0.085 s5.68 MiB6.04 MiB+ 373.93 KiB
/wp-admin/options-discussion.php0.231 s0.221 s-0.010 s3.22 MiB3.4 MiB+ 181.76 KiB
/wp-admin/edit-comments.php0.213 s0.207 s-0.006 s3.27 MiB3.52 MiB+ 253.32 KiB
/0.305 s0.215 s-0.090 s3.4 MiB3.43 MiB+ 38.29 KiB
Average 0.354 s0.337 s-0.017 s3.73 MiB3.94 MiB+ 219.8 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
PHP55.4%8,0164,03647
CSS29.1%4,2142056
PO File10.3%1,4905961
JavaScript4.8%700974
JSON0.3%3801
Total 14,458 4,934 59

PHP Code Analysis | More results »

Lines of code 7,721
Total complexity 1,425
Median class complexity 16.0
Median method complexity 2.0
Most complex class No_Unsafe_Inline_Admin
Most complex function No_Unsafe_Inline_Public::output_csp_headers()
Classes 32
Methods 336
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

The log file is empty.

See also: All tests for this plugin, How to Hide the "CSP settings" Admin Menu