Disable Comments 2.4.0

Does Disable Comments work with WordPress 6.0.1 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
10PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 49.13 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.0.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 1,000,000+
WordPress.org page https://wordpress.org/plugins/disable-comments/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

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=disable-comments%2Fdisable-comments.php&plugin_status=all&paged=1&s&_wpnonce=5aa30bbf5a
Aspect after-activation
HTTP status 200
Load time 0.266 s
Memory usage 3.74 MiB
JS errors None
Resource errors None

Tools → Delete Comments

Page screenshot: Tools → Delete Comments
URL /wp-admin/options-general.php?page=disable_comments_settings#delete
Requested URL /wp-admin/tools.php?page=disable_comments_tools
Aspect menu-item
HTTP status 200
Load time 0.524 s
Memory usage 3.81 MiB
JS errors None
Resource errors None

Settings → Disable Comments

Page screenshot: Settings → Disable Comments
URL /wp-admin/options-general.php?page=disable_comments_settings
Aspect menu-item
HTTP status 200
Load time 0.250 s
Memory usage 3.71 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.320 s
Memory usage 3.59 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.255 s-0.076 s3.72 MiB3.77 MiB+ 45.31 KiB
/wp-admin/edit.php0.186 s0.193 s+0.007 s3.75 MiB3.8 MiB+ 43.87 KiB
/wp-admin/post-new.php1.578 s0.917 s-0.661 s5.55 MiB5.6 MiB+ 52.94 KiB
/wp-admin/upload.php0.347 s0.291 s-0.056 s3.68 MiB3.73 MiB+ 43.45 KiB
/wp-admin/options-writing.php0.148 s0.146 s-0.002 s3.62 MiB3.7 MiB+ 87.35 KiB
/wp-admin/media-new.php0.406 s0.221 s-0.185 s3.66 MiB3.7 MiB+ 43.62 KiB
/wp-admin/edit-tags.php?taxonomy=category0.172 s0.180 s+0.008 s3.69 MiB3.73 MiB+ 44.52 KiB
/wp-admin/post-new.php?post_type=page0.964 s0.735 s-0.229 s5.54 MiB5.58 MiB+ 44.52 KiB
/wp-admin/options-discussion.php0.210 s0.291 s+0.081 s3.6 MiB3.7 MiB+ 107.93 KiB
/wp-admin/edit-comments.php0.212 s0.209 s-0.003 s3.69 MiB3.74 MiB+ 44.16 KiB
/0.274 s0.208 s-0.066 s3.6 MiB3.59 MiB- 17.21 KiB
Average 0.439 s0.331 s-0.107 s4.01 MiB4.06 MiB+ 49.13 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.

CSS
PHP
Language % Lines of code Comment lines Files
CSS56.0%3,47953
PHP37.4%2,32445512
JavaScript6.3%391162
XML0.2%1402
SVG0.1%401
Total 6,212 476 20

PHP Code Analysis | More results »

Lines of code 1,729
Total complexity 488
Median class complexity 143.0
Median method complexity 4.0
Most complex class Disable_Comments
Most complex function Disable_Comments::disable_comments_settings()
Classes 3
Methods 92
Functions 0

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 10 lines

[27-Jul-2022 07:44:44 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 687
[27-Jul-2022 07:44:44 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 688
[27-Jul-2022 07:44:44 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 696
[27-Jul-2022 07:44:44 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 699
[27-Jul-2022 07:44:44 UTC] PHP Notice:  Undefined index: scheme in /wp-includes/canonical.php on line 720
[27-Jul-2022 07:44:44 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 687
[27-Jul-2022 07:44:44 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 688
[27-Jul-2022 07:44:44 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 696
[27-Jul-2022 07:44:44 UTC] PHP Notice:  Undefined index: host in /wp-includes/canonical.php on line 699
[27-Jul-2022 07:44:44 UTC] PHP Notice:  Undefined index: scheme in /wp-includes/canonical.php on line 720
See also: All tests for this plugin, How to Hide Disable Comments Admin Menus