You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 309
These constants should be defined at the top of the file. Also you should check if constant was already defined or not.
Line 332 return keyword found, but phpdoc @return annotation missing. Although this behavior is strange, because later this method (launch) doesn't return any value.
Lines 338-486
The priority option should be removed as it's not supported anymore. Use (space) characters instead oftabcharacters before & after the=> sign.
Line 547
Dependencies should be required at the top of the file.
Line 548
The widget will be registered only if the TM_Real_Estate_Search_Form_Widget class was not initialized. But if it was already loaded, nothing will happen. The register_widget call should be moved outside the if statement.
Code Review: tm-real-estate.php
@author
notation should match the WordPress account name.License notation should match with the license defined on line 10
Class name should have the
__Tm_
prefix. Current prefix is invalid.These functions should be registered as the hooks.
Cherry Core should be loaded via the
after_setup_theme
hook (via theget_core
method).The shortcode name doesn't have the right prefix,
tm-
expected.New line expected before the
if
statement.The
if
statements can be joined.Missing type annotations.
URL should probably be escaped.
Line 199,
Line 211
.
(concatenation) sign.Hard coded google map api link should be escaped and SSL verification should apply (use the
is_ssl
).Line 220,
Line 227,
Line 234,
Line 241,
Line 248,
Line 255,
Line 262
Missing ',' (comma) sign after last array element.
Use absolute paths.
These constants should be defined at the top of the file. Also you should check if constant was already defined or not.
return
keyword found, butphpdoc @return
annotation missing. Although this behavior is strange, because later this method (launch
) doesn't return any value.The
priority
option should be removed as it's not supported anymore. Usetab
characters before & after the=>
sign.$data
is not defined.Limit the array looping.
Use space characters before & after the
=
sign.wp_mail
acceptheaders
asarray
and this option is preferable.Use spaces before & after the
=>
sign.No user input escaping.
Dependencies should be required at the top of the file.
The widget will be registered only if the
TM_Real_Estate_Search_Form_Widget
class was not initialized. But if it was already loaded, nothing will happen. Theregister_widget
call should be moved outside theif
statement.Too many tabs.
Missing
,
comma sign after last array element.Use the
get_query_var
function.Strange
debug
output should be removed completely.Use spaces before & after the
=>
sign.$settings['tm-properties-main-settings']
should be checked if it is an array.Use spaces before & after the
=>
sign.There should be a notice that this method is used by admin pages.
Comma
,
sign expected after last array element.Use spaces before & after the
=>
sign. Missing text domain in translations.Icon packs should not be hard coded.
The text was updated successfully, but these errors were encountered: