WP Dark Mode 4.0.2

Does WP Dark Mode work with WordPress 6.1.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 367.88 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.134 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.1.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 20,000+
WordPress.org page https://wordpress.org/plugins/wp-dark-mode/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 9

WP Dark Mode Settings ‹ Test site — WordPress

Page screenshot: WP Dark Mode Settings ‹ Test site — WordPress
URL /wp-admin/admin.php?page=wp-dark-mode-settings
Requested URL /wp-admin/plugins.php?action=activate&plugin=wp-dark-mode%2Fplugin.php&plugin_status=all&paged=1&s&_wpnonce=50ef2a8e68
Aspect after-activation
HTTP status 200
Load time 2.075 s
Memory usage 3.45 MiB
JS errors None
Resource errors None

WP Dark Mode

Page screenshot: WP Dark Mode
URL /wp-admin/admin.php?page=wp-dark-mode-settings
Aspect menu-item
HTTP status 200
Load time 0.666 s
Memory usage 3.4 MiB
JS errors None
Resource errors None

WP Dark Mode → Get Started

Page screenshot: WP Dark Mode → Get Started
URL /wp-admin/admin.php?page=wp-dark-mode-get-started
Aspect menu-item
HTTP status 200
Load time 2.727 s
Memory usage 3.39 MiB
JS errors None
Resource errors None

WP Dark Mode → Social Share New

Page screenshot: WP Dark Mode → Social Share 
				
				 New
URL /wp-admin/admin.php?page=wp-dark-mode-social-share
Aspect menu-item
HTTP status 200
Load time 1.075 s
Memory usage 3.45 MiB
JS errors None
Resource errors None

WP Dark Mode → Tools

Page screenshot: WP Dark Mode → Tools
URL /wp-admin/admin.php?page=wp-dark-mode-tools
Aspect menu-item
HTTP status 200
Load time 0.325 s
Memory usage 3.38 MiB
JS errors None
Resource errors None

WP Dark Mode → Recommended Plugins

Page screenshot: WP Dark Mode → Recommended Plugins
URL /wp-admin/admin.php?page=wp-dark-mode-recommended-plugins
Aspect menu-item
HTTP status 200
Load time 1.238 s
Memory usage 3.69 MiB
JS errors None
Resource errors None

WP Dark Mode → Upgrade Now

Page screenshot: WP Dark Mode → Upgrade Now
URL /wp-admin/
Aspect menu-item
HTTP status 200
Load time 0.487 s
Memory usage 3.43 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.247 s
Memory usage 3.07 MiB
JS errors None
Resource errors None

Dashboard ‹ Test site — WordPress

Page screenshot: Dashboard ‹ Test site — WordPress
URL /wp-admin/index.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.603 s
Memory usage 3.43 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.296 s0.371 s+0.075 s3.05 MiB3.43 MiB+ 391.87 KiB
/wp-admin/edit.php0.189 s0.558 s+0.369 s3.07 MiB3.46 MiB+ 396.13 KiB
/wp-admin/post-new.php1.019 s1.099 s+0.080 s4.97 MiB5.32 MiB+ 365.78 KiB
/wp-admin/upload.php0.558 s0.473 s-0.085 s2.99 MiB3.36 MiB+ 380.48 KiB
/wp-admin/options-writing.php0.174 s0.330 s+0.156 s2.99 MiB3.37 MiB+ 391.09 KiB
/wp-admin/media-new.php0.268 s0.349 s+0.081 s2.97 MiB3.36 MiB+ 402.28 KiB
/wp-admin/edit-tags.php?taxonomy=category0.180 s0.384 s+0.204 s2.98 MiB3.39 MiB+ 418.53 KiB
/wp-admin/post-new.php?post_type=page0.632 s0.762 s+0.130 s4.96 MiB5.32 MiB+ 364.85 KiB
/wp-admin/options-discussion.php0.202 s0.488 s+0.286 s2.97 MiB3.37 MiB+ 405.24 KiB
/wp-admin/edit-comments.php0.216 s0.421 s+0.205 s3 MiB3.39 MiB+ 398.62 KiB
/0.277 s0.249 s-0.028 s2.94 MiB3.07 MiB+ 131.81 KiB
Average 0.365 s0.499 s+0.134 s3.35 MiB3.71 MiB+ 367.88 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
Language % Lines of code Comment lines Files
PHP75.3%9,1023,22567
CSS11.2%1,3573614
SVG8.0%961046
Markdown3.9%47202
XML0.6%75531
JavaScript0.6%6802
JSON0.4%4602
Total 12,081 3,314 134

PHP Code Analysis | More results »

Lines of code 6,932
Total complexity 961
Median class complexity 30.0
Median method complexity 2.0
Most complex class Appsero\Insights
Most complex function WP_Dark_Mode_Settings::settings_fields()
Classes 23
Methods 294
Functions 17

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 1

Options wp_options 36

Meta Boxes

{
    "dashboard": {
        "wp_dark_mode": {
            "title": "WP Dark Mode Usage",
            "context": "normal"
        }
    }
}

PHP Error Log 2 lines

[22-Jan-2023 10:53:25 UTC] PHP Deprecated:  Optional parameter $new_name declared before required parameter $old_theme is implicitly treated as a required parameter in /wp-content/plugins/wp-dark-mode/includes/appsero/src/Insights.php on line 1052
[22-Jan-2023 10:53:25 UTC] PHP Deprecated:  Optional parameter $new_theme declared before required parameter $old_theme is implicitly treated as a required parameter in /wp-content/plugins/wp-dark-mode/includes/appsero/src/Insights.php on line 1052
See also: All tests for this plugin, How to Hide WP Dark Mode Admin Menus and Widgets