WP Dark Mode 4.0.3

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: 360.53 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.140 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=02f8954cd5
Aspect after-activation
HTTP status 200
Load time 1.605 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.532 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.818 s
Memory usage 3.38 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.052 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.344 s
Memory usage 3.37 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.195 s
Memory usage 3.68 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.467 s
Memory usage 3.42 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.268 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.594 s
Memory usage 3.42 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.282 s0.413 s+0.131 s3.05 MiB3.42 MiB+ 384.36 KiB
/wp-admin/edit.php0.177 s0.562 s+0.385 s3.07 MiB3.45 MiB+ 388.3 KiB
/wp-admin/post-new.php0.746 s1.051 s+0.305 s4.97 MiB5.32 MiB+ 358.27 KiB
/wp-admin/upload.php0.533 s0.329 s-0.204 s2.99 MiB3.36 MiB+ 372.97 KiB
/wp-admin/options-writing.php0.133 s0.319 s+0.186 s2.99 MiB3.36 MiB+ 383.58 KiB
/wp-admin/media-new.php0.261 s0.327 s+0.066 s2.97 MiB3.36 MiB+ 397.59 KiB
/wp-admin/edit-tags.php?taxonomy=category0.180 s0.374 s+0.194 s2.98 MiB3.37 MiB+ 403.02 KiB
/wp-admin/post-new.php?post_type=page0.723 s0.860 s+0.137 s4.96 MiB5.31 MiB+ 357.34 KiB
/wp-admin/options-discussion.php0.216 s0.412 s+0.196 s2.97 MiB3.36 MiB+ 397.42 KiB
/wp-admin/edit-comments.php0.197 s0.376 s+0.179 s3 MiB3.38 MiB+ 391.11 KiB
/0.277 s0.239 s-0.038 s2.94 MiB3.07 MiB+ 131.81 KiB
Average 0.339 s0.478 s+0.140 s3.35 MiB3.71 MiB+ 360.53 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.2%9,0613,20067
CSS11.3%1,3573614
SVG8.0%961046
Markdown3.9%47202
XML0.6%78541
JavaScript0.6%6802
JSON0.4%4602
Total 12,043 3,290 134

PHP Code Analysis | More results »

Lines of code 13,786
Total complexity 1,910
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 46
Methods 582
Functions 34

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

[24-Jan-2023 15:12:23 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
[24-Jan-2023 15:12:23 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