No unsafe-inline 1.1.0

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

Summary

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

Memory usage: 133.97 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.1.1
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=554aba4630
Aspect after-activation
HTTP status 200
Load time 0.582 s
Memory usage 3.13 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.384 s
Memory usage 3.53 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.238 s
Memory usage 3.16 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.254 s
Memory usage 3.15 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.219 s
Memory usage 3.15 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.220 s
Memory usage 3.15 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.271 s
Memory usage 3.14 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.228 s
Memory usage 3.16 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.221 s
Memory usage 2.99 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.288 s0.247 s-0.041 s3.05 MiB3.19 MiB+ 145.16 KiB
/wp-admin/edit.php0.217 s0.192 s-0.025 s3.07 MiB3.22 MiB+ 144.08 KiB
/wp-admin/post-new.php0.841 s0.989 s+0.148 s4.97 MiB5.11 MiB+ 149.35 KiB
/wp-admin/upload.php0.656 s0.439 s-0.217 s2.99 MiB3.12 MiB+ 127.79 KiB
/wp-admin/options-writing.php0.167 s0.165 s-0.002 s2.99 MiB3.1 MiB+ 114.38 KiB
/wp-admin/media-new.php0.439 s0.250 s-0.189 s2.97 MiB3.1 MiB+ 139.98 KiB
/wp-admin/edit-tags.php?taxonomy=category0.184 s0.200 s+0.016 s2.98 MiB3.12 MiB+ 145.15 KiB
/wp-admin/post-new.php?post_type=page0.691 s0.646 s-0.045 s4.96 MiB5.1 MiB+ 144.94 KiB
/wp-admin/options-discussion.php0.246 s0.208 s-0.038 s2.98 MiB3.1 MiB+ 128.22 KiB
/wp-admin/edit-comments.php0.212 s0.227 s+0.015 s3 MiB3.13 MiB+ 127.78 KiB
/0.316 s0.228 s-0.088 s2.94 MiB3.05 MiB+ 106.88 KiB
Average 0.387 s0.345 s-0.042 s3.35 MiB3.49 MiB+ 133.97 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.9%8,2654,13947
CSS28.6%4,2232056
PO File10.1%1,4905961
JavaScript5.1%758995
JSON0.3%3901
Total 14,775 5,039 60

PHP Code Analysis | More results »

Lines of code 7,955
Total complexity 1,480
Median class complexity 16.5
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 347
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 14 lines

[02-Dec-2022 01:53:27 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
[02-Dec-2022 01:53:31 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRIPPED is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-external.php on line 18
[02-Dec-2022 01:53:31 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-external.php on line 20
[02-Dec-2022 01:53:31 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-external.php on line 21
[02-Dec-2022 01:53:31 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-external.php on line 22
[02-Dec-2022 01:53:32 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRIPPED is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-inline.php on line 18
[02-Dec-2022 01:53:32 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-inline.php on line 20
[02-Dec-2022 01:53:32 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-inline.php on line 21
[02-Dec-2022 01:53:32 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-inline.php on line 22
[02-Dec-2022 01:53:32 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRIPPED is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-events.php on line 18
[02-Dec-2022 01:53:32 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-events.php on line 20
[02-Dec-2022 01:53:32 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-events.php on line 21
[02-Dec-2022 01:53:32 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-events.php on line 22
[02-Dec-2022 01:53:35 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRIPPED is deprecated in /wp-content/plugins/no-unsafe-inline/admin/partials/no-unsafe-inline-logs.php on line 18
See also: All tests for this plugin, How to Hide the "CSP settings" Admin Menu