Night Mode 1.5.0

Does Night Mode work with WordPress 7.0 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
3PHP warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 5.47 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 version7.0
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 60+
WordPress.org page https://wordpress.org/plugins/night-mode/
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=night-mode%2Fnight-mode.php&plugin_status=all&paged=1&s&_wpnonce=b670202ced
Aspect after-activation
HTTP status 200
Load time 0.561 s
Memory usage 3.89 MiB
JS errors None
Resource errors None

Settings → Night Mode

Page screenshot: Settings → Night Mode
URL /wp-admin/options-general.php?page=admin-custom-color
Aspect menu-item
HTTP status 200
Load time 0.507 s
Memory usage 3.88 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.238 s
Memory usage 4.23 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.752 s0.556 s-0.196 s3.93 MiB3.93 MiB+ 9.29 KiB
/wp-admin/edit.php0.583 s0.482 s-0.101 s3.98 MiB3.99 MiB+ 8 KiB
/wp-admin/post-new.php2.049 s1.836 s-0.213 s6.56 MiB6.59 MiB+ 33.27 KiB
/wp-admin/upload.php0.753 s0.686 s-0.067 s3.89 MiB3.88 MiB- 9.52 KiB
/wp-admin/options-writing.php0.526 s0.493 s-0.033 s3.86 MiB3.86 MiB- 5.52 KiB
/wp-admin/media-new.php0.957 s0.508 s-0.449 s3.85 MiB3.86 MiB+ 2.67 KiB
/wp-admin/edit-tags.php?taxonomy=category0.503 s0.920 s+0.417 s3.86 MiB3.87 MiB+ 7.84 KiB
/wp-admin/post-new.php?post_type=page1.422 s1.450 s+0.028 s6.55 MiB6.58 MiB+ 28.8 KiB
/wp-admin/options-discussion.php0.530 s0.900 s+0.370 s3.86 MiB3.86 MiB- 9.02 KiB
/wp-admin/edit-comments.php0.520 s0.547 s+0.027 s3.89 MiB3.88 MiB- 9.52 KiB
/0.277 s0.186 s-0.091 s4.23 MiB4.23 MiB+ 3.84 KiB
Average 0.807 s0.779 s-0.028 s4.41 MiB4.41 MiB+ 5.47 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.

JavaScript
Language % Lines of code Comment lines Files
JavaScript96.5%2,2581742
PHP3.5%83133
Total 2,341 187 5

PHP Code Analysis | More results »

Lines of code 168
Total complexity 26
Median class complexity 11.0
Median method complexity 3.0
Most complex class ntmode_options
Most complex function ntmode_options::ntmod_init()
Classes 2
Methods 6
Functions 4

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.

No new entries found.

PHP Error Log 3 lines

[28-May-2026 15:49:22 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/night-mode/change_color.php on line 33
[28-May-2026 15:49:22 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/night-mode/change_color.php on line 37
[28-May-2026 15:49:22 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/night-mode/change_color.php on line 41
See also: All tests for this plugin, How to Hide the "Night Mode" Admin Menu