Business Hours Indicator

Display opening hours and if you're currently open/closed, with countdown to next opening. Show or hide content only when open/closed & more!

v2.4.5Maarten BUpdated Added 8k+ installs98% rating
35
Score
139
Errors
106
Warnings
+0
Change

Category Scores

Security0
Repo89
Performance100
Maintainability57

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

245 findings

Maintainability

115

11 issue groups

Security

110

5 issue groups

I18n

18

3 issue groups

Repo Compliance

2

2 issue groups

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

Sample message

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

ERRORSecurityUnsafe printing functionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.44
Category
Security
Occurrences
44
Severity
error

Sample message

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

WARNINGMaintainabilityAlternative PHP tag foundPossible use of ASP style short opening tags detected; found: <%= day.Day %></th>\n41
Category
Maintainability
Occurrences
41
Severity
warning

Sample message

Possible use of ASP style short opening tags detected; found: <%= day.Day %></th>\n

WARNINGMaintainabilityAlternative PHP tag foundPossible use of ASP style opening tags detected; found: <% _.each(['Jan','Feb','Mar','Apr','May','...32
Category
Maintainability
Occurrences
32
Severity
warning

Sample message

Possible use of ASP style opening tags detected; found: <% _.each(['Jan','Feb','Mar','Apr','May','...

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

Sample message

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

ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: $base_set->day_name9
Category
I18n
Occurrences
9
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: $base_set->day_name

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

Sample message

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

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

Sample message

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

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

Sample message

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

ERRORI18nText Domain MismatchMismatched text domain. Expected 'business-hours-indicator' but got 'mabel-business-hours-indicator'.6
Category
I18n
Occurrences
6
Severity
error

Sample message

Mismatched text domain. Expected 'business-hours-indicator' but got 'mabel-business-hours-indicator'.

Show 11 more
WARNINGMaintainabilityNon-prefixed function4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

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

WARNINGSecurityNonce verification recommended4
Category
Security
Occurrences
4
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityMissing Version4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

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

WARNINGMaintainabilityNot In Footer4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_register_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.

ERRORMaintainabilitywp function not compatible with requires wp4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

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

ERRORI18nNon Singular String Literal Domain3
Category
I18n
Occurrences
3
Severity
error

Sample message

The $domain parameter must be a single text string literal. Found: $model->slug

WARNINGMaintainabilityNo PHP code found1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.

ERRORSecuritySetting is missing a sanitization callback1
Category
Security
Occurrences
1
Severity
error

Sample message

Sanitization missing for register_setting().

WARNINGMaintainabilityNon-prefixed 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: "widget_' .$this->widget_id.'_show_title".

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

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.

ERRORRepo Complianceplugin header no license1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.

External Connections

Not analyzed yet.

Score History

First score snapshot

v2.4.5

35

Latest

Findings
245
Errors
139
Warnings
106
Check
2.0.0

Relationship Map

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

29 nodes

Related Plugins

We’re Open!

5k+ active installs

36