No unsafe-inline 1.0.1

Does No unsafe-inline work with WordPress 5.9.2 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: 193.53 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.2
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=ffde2ae541
Aspect after-activation
HTTP status 200
Load time 0.615 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.290 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.191 s
Memory usage 3.47 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.171 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.187 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.158 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.219 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.171 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.204 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.331 s0.263 s-0.068 s3.37 MiB3.57 MiB+ 205.66 KiB
/wp-admin/edit.php0.167 s0.186 s+0.019 s3.4 MiB3.59 MiB+ 188.96 KiB
/wp-admin/post-new.php0.808 s1.030 s+0.222 s6.15 MiB6.38 MiB+ 237.53 KiB
/wp-admin/upload.php0.371 s0.524 s+0.153 s3.25 MiB3.47 MiB+ 228.52 KiB
/wp-admin/options-writing.php0.276 s0.166 s-0.110 s3.24 MiB3.4 MiB+ 164.31 KiB
/wp-admin/media-new.php0.301 s0.198 s-0.103 s3.23 MiB3.4 MiB+ 180.7 KiB
/wp-admin/edit-tags.php?taxonomy=category0.183 s0.192 s+0.009 s3.27 MiB3.48 MiB+ 219.15 KiB
/wp-admin/post-new.php?post_type=page0.653 s0.658 s+0.005 s6.15 MiB6.37 MiB+ 233.12 KiB
/wp-admin/options-discussion.php0.244 s0.228 s-0.016 s3.22 MiB3.4 MiB+ 180.95 KiB
/wp-admin/edit-comments.php0.219 s0.215 s-0.004 s3.27 MiB3.52 MiB+ 252.51 KiB
/0.278 s0.211 s-0.067 s3.4 MiB3.43 MiB+ 37.48 KiB
Average 0.348 s0.352 s+0.004 s3.81 MiB4 MiB+ 193.53 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%7,9984,01247
CSS29.2%4,2142056
PO File10.3%1,4905961
JavaScript4.8%700974
JSON0.3%3801
Total 14,440 4,910 59

PHP Code Analysis | More results »

Lines of code 7,703
Total complexity 1,420
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 334
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