Material Design for WordPress

The official Material Design plugin for WordPress. Customize your site’s navigation, colors, typography, and shapes, use Material Components, and choo …

v0.7.0XWPUpdated Added 800 installs82% rating
60
Score
51
Errors
207
Warnings
+0
Change

Category Scores

Security50
Repo83
Performance100
Maintainability50

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

258 findings

Maintainability

242

12 issue groups

Security

12

4 issue groups

Repo Compliance

4

4 issue groups

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

Sample message

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

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;26
Category
Maintainability
Occurrences
26
Severity
error

Sample message

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

ERRORMaintainabilityblock api version too lowEditor blocks must define "apiVersion" 3 or higher in block.json for WordPress 7.0+ iframe editor compatibility.19
Category
Maintainability
Occurrences
19
Severity
error

Sample message

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

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "_material_design_activation".8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "_material_design_activation".

WARNINGSecurityRequest data is not unslashed$_GET['materialParamContext'][$context] not unslashed before sanitization. Use wp_unslash() or similar8
Category
Security
Occurrences
8
Severity
warning

Sample message

$_GET['materialParamContext'][$context] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGMaintainabilityDynamic hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$this->slug . '_customizer_control_args'".7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

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

WARNINGMaintainabilityslow db query meta keyDetected usage of meta_key, possible slow query.3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Detected usage of meta_key, possible slow query.

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

Sample message

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

WARNINGSecurityDatabase parameter is not escapedUnescaped parameter $post_types used in $wpdb->get_col()\n$post_types assigned unsafely at line 89.1
Category
Security
Occurrences
1
Severity
warning

Sample message

Unescaped parameter $post_types used in $wpdb->get_col()\n$post_types assigned unsafely at line 89.

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

Sample message

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

Show 10 more
ERRORSecurityUnsafe printing function1
Category
Security
Occurrences
1
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

WARNINGMaintainabilityDeprecated function: get_page_by_title1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

get_page_by_title() has been deprecated since WordPress version 6.2.0. Use WP_Query instead.

ERRORMaintainabilityDeprecated parameter: get_terms parameter 21
Category
Maintainability
Occurrences
1
Severity
error

Sample message

The parameter "[ 'hide_empty' => true ]" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.

WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "Material Design for WordPress" is different from the name declared in plugin header "Material Design".

ERRORRepo Complianceoutdated tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 6.0 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

ERRORRepo Complianceplugin header invalid requires php1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

The "Requires PHP" header in the plugin file should only contain a PHP version such as "5.2.4" or "7.0".

WARNINGRepo Compliancereadme parser warnings too many tags1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

One or more tags were ignored. Please limit your plugin to 5 tags.

WARNINGRepo Compliancereadme parser warnings trimmed short description1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

The "Short Description" section is too long and was truncated. A maximum of 150 characters is supported.

WARNINGMaintainabilitytrademarked term1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "Material Design for WordPress" - contains the restricted term "wordpress" which cannot be used at all in your plugin name.

WARNINGMaintainabilityupdate modification detected1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin Updater detected. Detected code which may be altering WordPress update routines. Detected: auto_update_plugin

External Connections

Potential connections found in static code analysis.

21 domains

Outbound calls

153

External assets

4

Incoming endpoints

6

Notable Domains

apache.org75 · outbound
images.unsplash.com23 · outbound
material.io19 · outbound
fonts.google.com2 · outbound
json-schema.org2 · outbound

Platform / Reference Domains

w3.org9 · platform/reference
developer.wordpress.org3 · platform/reference
wordpress.org2 · platform/reference
core.trac.wordpress.org1 · platform/reference
github.com1 · platform/reference

External Asset Domains

fonts.googleapis.com4 · asset + outbound
google.com3 · asset + outbound
unpkg.com2 · asset + outbound

Incoming Endpoints

wp_ajax_nopriv_material_design_submit_contact_formpublic

wp_ajax

Admin AJAX endpoints5
wp_ajax_m3_migrate_colorsauthenticated

wp_ajax

wp_ajax_material_design_manage_recaptcha_api_credentialsauthenticated

wp_ajax

wp_ajax_material_design_notification_dismissauthenticated

wp_ajax

wp_ajax_material_design_submit_contact_formauthenticated

wp_ajax

wp_ajax_material_m3_noticeauthenticated

wp_ajax

Score History

First score snapshot

v0.7.0

60

Latest

Findings
258
Errors
51
Warnings
207
Check
2.0.0

Relationship Map

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

37 nodes

Related Plugins

Breadcrumb Block

3k+ active installs

100
Counting Number Block

2k+ active installs

100
Crowdsignal Forms

200k+ active installs

100
Events Block

600 active installs

100