WP Dark Mode 5.0.4

Does WP Dark Mode work with WordPress 6.5.3 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.056 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.5.3
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=0aa8b8175a
Aspect after-activation
HTTP status 200
Load time 0.916 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.862 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.569 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.626 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.885 s
Memory usage 5.27 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.348 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.4: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.4:72:6245)\n    at Tt.reactiveSwitches (/wp-content/plugins/wp-dark-mode/assets/js/app.min.js?ver=5.0.4:72:7646)\n    at Tt.ready (/wp-content/plugins/wp-dark-mode/assets/js/app.min.js?ver=5.0.4:72:6955)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-dark-mode/assets/js/app.min.js?ver=5.0.4: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.409 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.328 s0.512 s+0.184 s3.44 MiB3.68 MiB+ 251.06 KiB
/wp-admin/edit.php0.185 s0.283 s+0.098 s3.46 MiB3.7 MiB+ 241.36 KiB
/wp-admin/post-new.php0.847 s0.700 s-0.147 s5.59 MiB5.86 MiB+ 271.75 KiB
/wp-admin/upload.php0.559 s0.610 s+0.051 s3.38 MiB3.63 MiB+ 255.55 KiB
/wp-admin/options-writing.php0.190 s0.313 s+0.123 s3.37 MiB3.61 MiB+ 241.45 KiB
/wp-admin/media-new.php0.282 s0.320 s+0.038 s3.35 MiB3.6 MiB+ 253.75 KiB
/wp-admin/edit-tags.php?taxonomy=category0.202 s0.266 s+0.064 s3.37 MiB3.63 MiB+ 266.84 KiB
/wp-admin/post-new.php?post_type=page0.509 s0.640 s+0.131 s5.58 MiB5.85 MiB+ 271.68 KiB
/wp-admin/options-discussion.php0.345 s0.439 s+0.094 s3.36 MiB3.6 MiB+ 249.59 KiB
/wp-admin/edit-comments.php0.241 s0.246 s+0.005 s3.39 MiB3.63 MiB+ 243.71 KiB
/0.289 s0.260 s-0.029 s3.42 MiB3.47 MiB+ 55.16 KiB
Average 0.362 s0.417 s+0.056 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,6883,12747
Markdown2.4%19101
SVG2.0%16006
XML0.8%66211
CSS0.1%10311
JavaScript0.0%111
Total 8,116 3,152 67

PHP Code Analysis | More results »

Lines of code 6,902
Total complexity 855
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

[08-May-2024 05:33:53 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
[08-May-2024 05:34:01 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
[08-May-2024 05:34: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
[08-May-2024 05:34:11 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