WP Dark Mode 5.0.5

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

Summary

Errors
4Database errors
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

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

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

Environment
WordPress version6.5.4
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 7

Get Started ‹ Test site — WordPress

Page screenshot: Get Started ‹ Test site — WordPress
URL /wp-admin/admin.php?page=wp-dark-mode-get-started#/
Requested URL /wp-admin/plugins.php?action=activate&plugin=wp-dark-mode%2Fplugin.php&plugin_status=all&paged=1&s&_wpnonce=686240e7ae
Aspect after-activation
HTTP status 200
Load time 0.970 s
Memory usage 3.65 MiB
JS errors None
Resource errors None

WP Dark Mode

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

WP Dark Mode → Social Share

Page screenshot: WP Dark Mode → Social Share
URL /wp-admin/admin.php?page=wp-dark-mode-social-share
Aspect menu-item
HTTP status 200
Load time 0.534 s
Memory usage 3.69 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#/
Requested URL /wp-admin/admin.php?page=wp-dark-mode-get-started
Aspect menu-item
HTTP status 200
Load time 0.370 s
Memory usage 3.62 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 0.880 s
Memory usage 5.32 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.334 s
Memory usage 3.54 MiB
JS errors
[
    {
        "message": "DOMException: Failed to execute 'querySelector' on 'Element': '& > div:not(.light):not(.dark)' is not a valid selector.\n    at /wp-content/plugins/wp-dark-mode/assets/js/app.min.js?ver=5.0.5:72:6469\n    at NodeList.forEach (<anonymous>)\n    at Tt.updateSwitches (/wp-content/plugins/wp-dark-mode/assets/js/app.min.js?ver=5.0.5:72:6245)\n    at Tt.reactiveSwitches (/wp-content/plugins/wp-dark-mode/assets/js/app.min.js?ver=5.0.5:72:7646)\n    at Tt.ready (/wp-content/plugins/wp-dark-mode/assets/js/app.min.js?ver=5.0.5:72:6955)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-dark-mode/assets/js/app.min.js?ver=5.0.5:1:2872)",
        "trace": null,
        "code": null
    }
]
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.587 s
Memory usage 3.68 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.337 s0.528 s+0.191 s3.44 MiB3.68 MiB+ 251.06 KiB
/wp-admin/edit.php0.206 s0.309 s+0.103 s3.46 MiB3.7 MiB+ 241.36 KiB
/wp-admin/post-new.php0.792 s0.873 s+0.081 s5.59 MiB5.86 MiB+ 271.75 KiB
/wp-admin/upload.php0.571 s0.321 s-0.250 s3.38 MiB3.63 MiB+ 255.55 KiB
/wp-admin/options-writing.php0.193 s0.223 s+0.030 s3.37 MiB3.61 MiB+ 241.45 KiB
/wp-admin/media-new.php0.258 s0.426 s+0.168 s3.35 MiB3.6 MiB+ 253.75 KiB
/wp-admin/edit-tags.php?taxonomy=category0.168 s0.271 s+0.103 s3.37 MiB3.63 MiB+ 266.84 KiB
/wp-admin/post-new.php?post_type=page0.496 s0.617 s+0.121 s5.59 MiB5.85 MiB+ 271.68 KiB
/wp-admin/options-discussion.php0.282 s0.365 s+0.083 s3.36 MiB3.6 MiB+ 249.59 KiB
/wp-admin/edit-comments.php0.261 s0.243 s-0.018 s3.39 MiB3.63 MiB+ 243.71 KiB
/0.278 s0.254 s-0.024 s3.42 MiB3.47 MiB+ 55.16 KiB
Average 0.349 s0.403 s+0.053 s3.79 MiB4.02 MiB+ 236.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
Language % Lines of code Comment lines Files
PHP94.7%7,6913,12847
Markdown2.4%19101
SVG2.0%16006
XML0.8%66211
CSS0.1%10311
JavaScript0.0%111
Total 8,119 3,153 67

PHP Code Analysis | More results »

Lines of code 6,905
Total complexity 856
Median class complexity 11.0
Median method complexity 1.0
Most complex class WP_Dark_Mode\Appsero\Insights
Most complex function WP_Dark_Mode\Admin\Recommended_Plugins::render_recommended_plugins_page()
Classes 32
Methods 288
Functions 2

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 27

Meta Boxes

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

PHP Error Log 4 lines

[06-Jun-2024 07:05:02 UTC] WordPress database error Table 'wordpress.wp_wpdm_visitors' doesn't exist for query SELECT * FROM wp_wpdm_visitors WHERE ID >= 0 ORDER BY created_at DESC made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_Dark_Mode\Admin\REST->get_visitors, WP_Dark_Mode\Model\Visitor->get_all
[06-Jun-2024 07:05:10 UTC] WordPress database error Table 'wordpress.wp_wpdm_visitors' doesn't exist for query SELECT * FROM wp_wpdm_visitors WHERE ID >= 0 ORDER BY created_at DESC made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_Dark_Mode\Admin\REST->get_visitors, WP_Dark_Mode\Model\Visitor->get_all
[06-Jun-2024 07:05:18 UTC] WordPress database error Table 'wordpress.wp_wpdm_visitors' doesn't exist for query SELECT * FROM wp_wpdm_visitors WHERE ID >= 0 ORDER BY created_at DESC made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_Dark_Mode\Admin\REST->get_visitors, WP_Dark_Mode\Model\Visitor->get_all
[06-Jun-2024 07:05:19 UTC] WordPress database error Table 'wordpress.wp_wpdm_visitors' doesn't exist for query SELECT * FROM wp_wpdm_visitors WHERE ID >= 0 ORDER BY created_at DESC made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WP_Dark_Mode\Admin\REST->get_visitors, WP_Dark_Mode\Model\Visitor->get_all
See also: All tests for this plugin, How to Hide WP Dark Mode Admin Menus and Widgets