Disabled Source, Disabled Right Click and Content Protection 1.4.0

Does "Disabled Source, Disabled Right Click and Content Protection" work with WordPress 6.5.5 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: 75.19 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.5.5
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=22be63bcd6
Aspect after-activation
HTTP status 200
Load time 0.449 s
Memory usage 3.46 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.585 s
Memory usage 3.46 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.050 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.373 s0.318 s-0.055 s3.44 MiB3.52 MiB+ 82.48 KiB
/wp-admin/edit.php0.209 s0.187 s-0.022 s3.46 MiB3.54 MiB+ 82.45 KiB
/wp-admin/post-new.php0.911 s0.591 s-0.320 s5.59 MiB5.68 MiB+ 87.48 KiB
/wp-admin/upload.php0.585 s0.680 s+0.095 s3.38 MiB3.45 MiB+ 65.8 KiB
/wp-admin/options-writing.php0.228 s0.208 s-0.020 s3.37 MiB3.43 MiB+ 57.11 KiB
/wp-admin/media-new.php0.306 s0.297 s-0.009 s3.35 MiB3.43 MiB+ 77.34 KiB
/wp-admin/edit-tags.php?taxonomy=category0.205 s0.191 s-0.014 s3.37 MiB3.45 MiB+ 82.51 KiB
/wp-admin/post-new.php?post_type=page0.544 s0.594 s+0.050 s5.59 MiB5.67 MiB+ 83.06 KiB
/wp-admin/options-discussion.php0.343 s0.276 s-0.067 s3.36 MiB3.43 MiB+ 68.54 KiB
/wp-admin/edit-comments.php0.268 s0.222 s-0.046 s3.39 MiB3.46 MiB+ 65.12 KiB
Average 0.397 s0.356 s-0.041 s3.83 MiB3.9 MiB+ 75.19 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.4%6,66367534
PO File47.2%6,5003,59120
Markdown2.8%37902
JavaScript1.3%17701
CSS0.4%5822
SVG0.0%202
Total 13,779 4,268 61

PHP Code Analysis | More results »

Lines of code 2,768
Total complexity 803
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 31

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

[26-Jun-2024 02:13:27 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(2265): 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(3050): 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
[26-Jun-2024 02:13:27 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(2265): 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(3050): 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
[26-Jun-2024 02:13:27 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(2265): 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(3050): 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
[26-Jun-2024 02:13:27 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(2265): 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(3050): 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
[26-Jun-2024 02:13:27 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