Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included)

Darkify Dark Mode adds dark mode and night mode to WordPress websites and admin dashboards using a fast, lightweight, customizable dark mode toggle.

v1.5.5ThemeAtelierUpdated Added 600 installs100% rating
38
Score
38
Errors
183
Warnings
+0
Change

Category Scores

Security0
Repo100
Performance100
Maintainability65

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

221 findings

Maintainability

154

12 issue groups

Security

58

9 issue groups

I18n

9

4 issue groups

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$admin_custom_css".134
Category
Maintainability
Occurrences
134
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$admin_custom_css".

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$darkify_mobile_unique_id'.25
Category
Security
Occurrences
25
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$darkify_mobile_unique_id'.

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.9
Category
Security
Occurrences
9
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityRequest data is not unslashed$_POST[$this->unique] not unslashed before sanitization. Use wp_unslash() or similar8
Category
Security
Occurrences
8
Severity
warning

Sample message

$_POST[$this->unique] not unslashed before sanitization. Use wp_unslash() or similar

ERRORI18nText Domain MismatchMismatched text domain. Expected 'darkify' but got 'darkify-pro'.6
Category
I18n
Occurrences
6
Severity
error

Sample message

Mismatched text domain. Expected 'darkify' but got 'darkify-pro'.

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "appsero_custom_deactivation_reasons".5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "appsero_custom_deactivation_reasons".

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST['data']5
Category
Security
Occurrences
5
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST['data']

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.4
Category
Security
Occurrences
4
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_SERVER['REMOTE_ADDR']. Check that the array index exists before using it.3
Category
Security
Occurrences
3
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_SERVER['REMOTE_ADDR']. Check that the array index exists before using it.

WARNINGMaintainabilityNot In FooterIn footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.

Show 15 more
ERRORMaintainabilityMissing direct file access protection3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

WARNINGMaintainabilityNon-prefixed class2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "Elementor_Darkify".

WARNINGSecuritywp redirect wp redirect2
Category
Security
Occurrences
2
Severity
warning

Sample message

wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.

WARNINGI18nDiscouraged text-domain loading1
Category
I18n
Occurrences
1
Severity
warning

Sample message

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.

ERRORSecurityDatabase parameter is not escaped1
Category
Security
Occurrences
1
Severity
error

Sample message

Unescaped parameter $post_type used in $wpdb->get_var()\n$post_type used without escaping.

WARNINGMaintainabilityDirect Query1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

WARNINGSecurityInterpolated SQL is not prepared1
Category
Security
Occurrences
1
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $post_type at "SELECT count(ID) FROM $wpdb->posts WHERE post_type = '$post_type' and post_status = 'publish'"

WARNINGMaintainabilityDynamic hook name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$this->client->slug . '_tracker_data'".

WARNINGMaintainabilityMissing Version1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Resource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.

ERRORI18nNo Empty Strings1
Category
I18n
Occurrences
1
Severity
error

Sample message

The $text text string should have translatable content. Found: ''

WARNINGI18nNo Html Wrapped Strings1
Category
I18n
Occurrences
1
Severity
warning

Sample message

Translatable string should not be wrapped in HTML. Found: '<i>Enjoying %1$sDarkify?%2$s Please rate us %3$sWordPress.org%4$s. Your positive feedback will help us grow more. Thank you! 😊</i>'

ERRORMaintainabilityblock api version too low1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Editor blocks must define "apiVersion" 3 or higher in block.json for WordPress 7.0+ iframe editor compatibility.

WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included)" is different from the name declared in plugin header "Darkify".

ERRORMaintainabilitywp function not compatible with requires wp1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Function "register_block_type_from_metadata()" requires WordPress 5.5.0, but your plugin minimum supported version is WordPress 5.0.0.

External Connections

Potential connections found in static code analysis.

29 domains

Outbound calls

113

External assets

3

Incoming endpoints

8

Notable Domains

themeatelier.net21 · outbound
youtu.be11 · outbound
darkifywp.com9 · outbound
appsero.com2 · outbound
icofont.com2 · outbound
php-fig.org2 · outbound

Platform / Reference Domains

w3.org25 · platform/reference
github.com10 · platform/reference
wordpress.org6 · platform/reference
ps.w.org3 · platform/reference
api.wordpress.org1 · platform/reference
codex.wordpress.org1 · platform/reference
gnu.org1 · platform/reference
profiles.wordpress.org1 · platform/reference

External Asset Domains

youtube.com5 · asset + outbound
secure.gravatar.com3 · asset + outbound

Incoming Endpoints

No public endpoints detected.

Admin AJAX endpoints8
wp_ajax_darkify_authenticated

wp_ajax

wp_ajax_darkify-chosenauthenticated

wp_ajax

wp_ajax_darkify-exportauthenticated

wp_ajax

wp_ajax_darkify-get-iconsauthenticated

wp_ajax

wp_ajax_darkify-importauthenticated

wp_ajax

wp_ajax_darkify-never-show-review-noticeauthenticated

wp_ajax

wp_ajax_darkify-resetauthenticated

wp_ajax

wp_ajax_themeatelier_dismiss_offer_bannerauthenticated

wp_ajax

Score History

First score snapshot

v1.5.5

38

Latest

Findings
221
Errors
38
Warnings
183
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

37 nodes

Related Plugins