Method template_redirect_action
has 35 lines of code (exceeds 25 allowed). Consider refactoring.
public function template_redirect_action() {
global $wpdb;
if ( ! is_404() ) {
return;
Function template_redirect_action
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
public function template_redirect_action() {
global $wpdb;
if ( ! is_404() ) {
return;
Avoid assigning values to variables in if clauses and the like (line '89', column '18').
public function template_redirect_action() {
global $wpdb;
if ( ! is_404() ) {
return;
Avoid using static access to class '\Mi11er\Utility\Template_Tags' in method 'template_redirect_action'.
$request_url = TT::get_the_request_url();
The method template_redirect_action() contains an exit expression.
exit;
The parameter $post_type is not named in camelCase.
function add_meta_boxes_action( $post_type, $post ) {
if ( ! empty( get_post_meta( $post->ID, self::META_FIELD, false ) ) ) {
add_meta_box(
self::META_BOX,
__( 'Old URL Redirect', 'mi11er-utility' ),
Avoid variables with short names like $id. Configured minimum length is 3.
$id = (int) $wpdb->get_var( $wpdb->prepare(
The method template_redirect_action is not named in camelCase.
public function template_redirect_action() {
global $wpdb;
if ( ! is_404() ) {
return;
The method old_url_redirect_meta_box is not named in camelCase.
public function old_url_redirect_meta_box( $post ) {
?>
<ul>
<?php foreach ( get_post_meta( $post->ID, self::META_FIELD, false ) as $value ) : ?>
<li><?php echo esc_html( $value ); ?></li>
The method add_meta_boxes_action is not named in camelCase.
function add_meta_boxes_action( $post_type, $post ) {
if ( ! empty( get_post_meta( $post->ID, self::META_FIELD, false ) ) ) {
add_meta_box(
self::META_BOX,
__( 'Old URL Redirect', 'mi11er-utility' ),
There are no issues that match your filters.