A plain simple plugin which allows you to add a custom CSS class the HTML body tag.
Prioritized issue groups from the latest Plugin Check scan
Maintainability
94
12 issue groups
Security
39
7 issue groups
I18n
3
2 issue groups
Supply Chain
2
1 issue group
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$attrs".
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$conf'.
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "CustomBodyClassFormFieldImpl".
Sample message
Interfaces declared by a theme/plugin should start with the theme/plugin prefix. Found: "CustomBodyClassForm".
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "EXT".
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$key'.
Sample message
Detected usage of a non-sanitized input variable: $_POST['custom_body_class_meta_box_nonce']
Sample message
$_POST['custom_body_class_meta_box_nonce'] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
Simple placeholders should not be quoted in the query string in $wpdb->prepare(). Found: '%s'.
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "init_custom_body_class_plugin".
Sample message
Processing form data without nonce verification.
Sample message
Missing $domain parameter in function call to esc_html__().
Sample message
Hidden files are not permitted.
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.
Sample message
Use of a direct database call is discouraged.
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "plugin_locale".
Sample message
error_reporting() can lead to full path disclosure.
Sample message
Detected usage of a possibly undefined superglobal array index: $_SERVER['REQUEST_METHOD']. Check that the array index exists before using it.
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.
Sample message
Tested up to: 6.8 < 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.
Sample message
The "Domain Path" header in the plugin file must point to an existing folder. Found: "lang"
Sample message
The plugin slug includes a restricted term. Your plugin slug - "wp-custom-body-class" - contains the restricted term "wp" which cannot be used at all in your plugin slug.
Not analyzed yet.
First score snapshot
v0.7.5
35
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 35 | 140 | 39 | 101 | v0.7.5 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.