Disabled Source, Disabled Right Click and Content Protection 1.4.5

Does "Disabled Source, Disabled Right Click and Content Protection" work with WordPress 6.6.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
7PHP fatal errors
No JavaScript exceptions
1Page failed to load
  • 1 500 Internal Server Error
No resource errors
Performance

Memory usage: 109.11 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.6.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 10,000+
WordPress.org page https://wordpress.org/plugins/disabled-source-disabled-right-click-and-content-protection/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

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=disabled-source-disabled-right-click-and-content-protection%2Fdisabled-source-and-content-protection.php&plugin_status=all&paged=1&s&_wpnonce=bf866481e5
Aspect after-activation
HTTP status 200
Load time 0.308 s
Memory usage 3.59 MiB
JS errors None
Resource errors None

Disabled Settings

Page screenshot: Disabled Settings
URL /wp-admin/admin.php?page=disabled-source-disabled-right-click-and-content-protection
Aspect menu-item
HTTP status 200
Load time 0.663 s
Memory usage 3.57 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 500
Load time 0.062 s
Memory usage N/A
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.353 s0.333 s-0.020 s3.47 MiB3.57 MiB+ 96.59 KiB
/wp-admin/edit.php0.226 s0.226 s+0.000 s3.54 MiB3.63 MiB+ 93.52 KiB
/wp-admin/post-new.php0.836 s0.591 s-0.245 s5.75 MiB5.84 MiB+ 90.59 KiB
/wp-admin/upload.php0.592 s0.421 s-0.171 s3.49 MiB3.57 MiB+ 83.23 KiB
/wp-admin/options-writing.php0.221 s0.201 s-0.020 s3.41 MiB3.55 MiB+ 146.04 KiB
/wp-admin/media-new.php0.265 s0.350 s+0.085 s3.4 MiB3.55 MiB+ 159.42 KiB
/wp-admin/edit-tags.php?taxonomy=category0.205 s0.209 s+0.004 s3.47 MiB3.57 MiB+ 100.59 KiB
/wp-admin/post-new.php?post_type=page0.634 s0.620 s-0.014 s5.75 MiB5.84 MiB+ 90.17 KiB
/wp-admin/options-discussion.php0.252 s0.292 s+0.040 s3.41 MiB3.55 MiB+ 147.73 KiB
/wp-admin/edit-comments.php0.250 s0.241 s-0.009 s3.49 MiB3.57 MiB+ 83.23 KiB
Average 0.383 s0.348 s-0.035 s3.92 MiB4.03 MiB+ 109.11 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
PO File
Language % Lines of code Comment lines Files
PHP48.5%6,69067634
PO File47.1%6,5003,59120
Markdown2.7%37902
JavaScript1.3%17701
CSS0.4%5822
SVG0.0%202
Total 13,806 4,269 61

PHP Code Analysis | More results »

Lines of code 2,795
Total complexity 816
Median class complexity 13.5
Median method complexity 3.0
Most complex class CSF_Setup
Most complex function CSF_Fields::field_data()
Classes 18
Methods 83
Functions 32

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.

Options wp_options 2

PHP Error Log 168 lines

[18-Sep-2024 07:47:36 UTC] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php:243
Stack trace:
#0 /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php(243): in_array()
#1 /wp-includes/class-wp-hook.php(324): jh_disable_roles_wise_permission_callback()
#2 /wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php(66): apply_filters()
#4 /wp-includes/class-wp-hook.php(324): disabled_source_front_page_script()
#5 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /wp-includes/script-loader.php(2263): do_action()
#8 /wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()
#9 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /wp-includes/general-template.php(3065): do_action()
#12 /wp-content/themes/twentyseventeen/header.php(22): wp_head()
#13 /wp-includes/template.php(810): require_once('...')
#14 /wp-includes/template.php(745): load_template()
#15 /wp-includes/general-template.php(48): locate_template()
#16 /wp-content/themes/twentyseventeen/404.php(13): get_header()
#17 /wp-includes/template-loader.php(106): include('...')
#18 /wp-blog-header.php(19): require_once('...')
#19 /index.php(17): require('...')
#20 {main}
  thrown in /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php on line 243
[18-Sep-2024 07:47:36 UTC] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php:243
Stack trace:
#0 /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php(243): in_array()
#1 /wp-includes/class-wp-hook.php(324): jh_disable_roles_wise_permission_callback()
#2 /wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php(66): apply_filters()
#4 /wp-includes/class-wp-hook.php(324): disabled_source_front_page_script()
#5 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /wp-includes/script-loader.php(2263): do_action()
#8 /wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()
#9 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /wp-includes/general-template.php(3065): do_action()
#12 /wp-content/themes/twentyseventeen/header.php(22): wp_head()
#13 /wp-includes/template.php(810): require_once('...')
#14 /wp-includes/template.php(745): load_template()
#15 /wp-includes/general-template.php(48): locate_template()
#16 /wp-content/themes/twentyseventeen/404.php(13): get_header()
#17 /wp-includes/template-loader.php(106): include('...')
#18 /wp-blog-header.php(19): require_once('...')
#19 /index.php(17): require('...')
#20 {main}
  thrown in /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php on line 243
[18-Sep-2024 07:47:36 UTC] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php:243
Stack trace:
#0 /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php(243): in_array()
#1 /wp-includes/class-wp-hook.php(324): jh_disable_roles_wise_permission_callback()
#2 /wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php(66): apply_filters()
#4 /wp-includes/class-wp-hook.php(324): disabled_source_front_page_script()
#5 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /wp-includes/script-loader.php(2263): do_action()
#8 /wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()
#9 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /wp-includes/general-template.php(3065): do_action()
#12 /wp-content/themes/twentyseventeen/header.php(22): wp_head()
#13 /wp-includes/template.php(810): require_once('...')
#14 /wp-includes/template.php(745): load_template()
#15 /wp-includes/general-template.php(48): locate_template()
#16 /wp-content/themes/twentyseventeen/404.php(13): get_header()
#17 /wp-includes/template-loader.php(106): include('...')
#18 /wp-blog-header.php(19): require_once('...')
#19 /index.php(17): require('...')
#20 {main}
  thrown in /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php on line 243
[18-Sep-2024 07:47:37 UTC] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php:243
Stack trace:
#0 /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php(243): in_array()
#1 /wp-includes/class-wp-hook.php(324): jh_disable_roles_wise_permission_callback()
#2 /wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php(66): apply_filters()
#4 /wp-includes/class-wp-hook.php(324): disabled_source_front_page_script()
#5 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /wp-includes/script-loader.php(2263): do_action()
#8 /wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()
#9 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /wp-includes/general-template.php(3065): do_action()
#12 /wp-content/themes/twentyseventeen/header.php(22): wp_head()
#13 /wp-includes/template.php(810): require_once('...')
#14 /wp-includes/template.php(745): load_template()
#15 /wp-includes/general-template.php(48): locate_template()
#16 /wp-content/themes/twentyseventeen/404.php(13): get_header()
#17 /wp-includes/template-loader.php(106): include('...')
#18 /wp-blog-header.php(19): require_once('...')
#19 /index.php(17): require('...')
#20 {main}
  thrown in /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php on line 243
[18-Sep-2024 07:47:37 UTC] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php:243
Stack trace:
#0 /wp-content/plugins/disabled-source-disabled-right-click-and-content-protection/includes/functions/functions.php(243): in_array()
#1 /wp-includes/class-wp-hook.php(324): jh_disable_roles_wise_permission_callback()

(+68 more lines)
See also: All tests for this plugin, How to Hide Disabled Source, Disabled Right Click and Content Protection Admin Menus