WP Hotelier

WP Hotelier is a powerful WordPress hotel booking plugin allows you to manage hotel, hostel, b&b reservations with ease.

v2.19.0benitolopezUpdated Added 2k+ installs94% rating
23
Score
693
Errors
1,635
Warnings
+0
Change

Category Scores

Security0
Repo88
Performance97
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

2,328 findings

Maintainability

1,338

14 issue groups

Security

694

8 issue groups

I18n

258

3 issue groups

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

Sample message

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

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"{$name} cookie cannot be set - headers already sent by {$file} on line {$line}"'.371
Category
Security
Occurrences
371
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"{$name} cookie cannot be set - headers already sent by {$file} on line {$line}"'.

ERRORI18nMissing Translators CommentA function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.229
Category
I18n
Occurrences
229
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

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

Sample message

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

WARNINGSecurityRequest data is not unslashed$_COOKIE[$this->_cookie] not unslashed before sanitization. Use wp_unslash() or similar97
Category
Security
Occurrences
97
Severity
warning

Sample message

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

WARNINGMaintainabilityNon-prefixed classClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "HTL_API".86
Category
Maintainability
Occurrences
86
Severity
warning

Sample message

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

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

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_COOKIE[$this->_cookie]64
Category
Security
Occurrences
64
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_COOKIE[$this->_cookie]

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

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.54
Category
Maintainability
Occurrences
54
Severity
warning

Sample message

Use of a direct database call is discouraged.

Show 15 more
WARNINGMaintainabilityNo Caching49
Category
Maintainability
Occurrences
49
Severity
warning

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wp36
Category
Maintainability
Occurrences
36
Severity
error

Sample message

Function "get_term_meta()" requires WordPress 4.4.0, but your plugin minimum supported version is WordPress 4.0.0.

WARNINGSecurityInput is not validated25
Category
Security
Occurrences
25
Severity
warning

Sample message

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

ERRORI18nUnordered Placeholders Text24
Category
I18n
Occurrences
24
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1$d, %2$d", but got "%d, %d" in 'Please select a date range between %d and %d nights'.

WARNINGMaintainabilityNon-prefixed hook name16
Category
Maintainability
Occurrences
16
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'htl_ajax_' . sanitize_text_field( $action )".

WARNINGMaintainabilityNon-prefixed constant13
Category
Maintainability
Occurrences
13
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DOING_AJAX".

WARNINGMaintainabilityslow db query meta query10
Category
Maintainability
Occurrences
10
Severity
warning

Sample message

Detected usage of meta_query, possible slow query.

WARNINGMaintainabilityslow db query tax query8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

Detected usage of tax_query, possible slow query.

WARNINGMaintainabilityNot In Footer8
Category
Maintainability
Occurrences
8
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.

WARNINGMaintainabilitySchema Change7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

Attempting a database schema change is discouraged.

ERRORSecuritySQL query is not prepared7
Category
Security
Occurrences
7
Severity
error

Sample message

Use placeholders and $wpdb->prepare(); found $get_items_sql

ERRORMaintainabilitydate date5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

ERRORI18nMissing Arg Domain5
Category
I18n
Occurrences
5
Severity
error

Sample message

Missing $domain parameter in function call to esc_html__().

WARNINGSecuritywp redirect wp redirect4
Category
Security
Occurrences
4
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.

WARNINGMaintainabilityDiscouraged PHP function3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

The use of function ini_set() is discouraged

External Connections

Not analyzed yet.

Score History

First score snapshot

v2.19.0

23

Latest

Findings
2,328
Errors
693
Warnings
1,635
Check
2.0.0

Relationship Map

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

29 nodes

Related Plugins