Please help with "All dynamic data must be correctly escaped.."

wordpress
item-feedback

#1

Hi! I we have gotten some errors and one of these is:

All dynamic data must be correctly escaped for the context where it is rendered. Please perform a global search for “echo $” and you will see several issues. Ref: https://vip.wordpress.com/documentation/vip/best-practices/security/validating-sanitizing-escaping/

And after seach I found “echo $” in plugins “lessphp”, “rpwe”, “redux”. Should I change plugin’s file?
For example I have a code:

echo $before_widget;
if ( ! empty( $instance['title_url'] ) && ! empty( $instance['title'] ) ) {
	echo $before_title . '<a href="' . esc_url( $instance['title_url'] ) . '" title="' . esc_attr( $instance['title'] ) . '">' . apply_filters( 'widget_title',  $instance['title'], $instance, $this->id_base ) . '</a>' . $after_title;

} elseif ( ! empty( $instance['title'] ) ) {
	echo $before_title . apply_filters( 'widget_title',  $instance['title'], $instance, $this->id_base ) . $after_title;
}
echo $recent;
echo $after_widget;

What of these I must change or all?