Title: Code quality feedback
Last modified: August 31, 2016

---

# Code quality feedback

 *  [mln83](https://wordpress.org/support/users/mln83/)
 * (@mln83)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/code-quality-feedback/)
 * Investigating plugin quality using Plugin Inspector. Here are some potential 
   issues with BadgeOS:
 *     ```
       Deprecated/badgeos/includes/ajax-functions.php view source
       like_escape at line 258:
       $search = esc_sql( like_escape( $_REQUEST['q'] ) );
       Deprecated 4.0.0 Use wpdb::esc_like()
   
       like_escape at line 283:
       $search = isset( $_REQUEST['q'] ) ? like_escape( $_REQUEST['q'] ) : '';
       Deprecated 4.0.0 Use wpdb::esc_like()
   
       DeprecatedUnsafe/badgeos/includes/p2p/scb/AdminPage.php view source
       screen_icon at line 163:
       screen_icon( $this->args['screen_icon'] );
       Deprecated 3.8.0 Use get_screen_icon()
       call_user_func_array at line 289:
       $content .= call_user_func_array( array( $this, 'submit_button' ), $button_args );
       Potential risk: Low. Call any function with an array of parameters. May be used to hide facts of using unsafe system commands or to mislead code inspection.
       call_user_func_array at line 376:
       return call_user_func_array( array( 'scbForms', $method ), $args );
       Potential risk: Low. Call any function with an array of parameters. May be used to hide facts of using unsafe system commands or to mislead code inspection.
       ```
   
 * For a full report, I suggest you to install Plugin Inspector – [https://wordpress.org/plugins/plugin-inspector/](https://wordpress.org/plugins/plugin-inspector/)
 * Best regards,
    Michael
 * [https://wordpress.org/plugins/badgeos/](https://wordpress.org/plugins/badgeos/)

Viewing 1 replies (of 1 total)

 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years ago](https://wordpress.org/support/topic/code-quality-feedback/#post-7287037)
 * Added a new issue for the first 2, since that is one we can control.
 * [https://github.com/opencredit/badgeos/issues/527](https://github.com/opencredit/badgeos/issues/527)
 * The 3rd one with the screen_icon is not something that will break anything, as
   far as I’m aware, and is also from a 3rd party plugin/lib that we integrated 
   in to BadgeOS to help take care of the finer details. I’m just not that worrying
   about screen icon function uses.

Viewing 1 replies (of 1 total)

The topic ‘Code quality feedback’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/badgeos_85d3bc.svg)
 * [BadgeOS](https://wordpress.org/plugins/badgeos/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/badgeos/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/badgeos/)
 * [Active Topics](https://wordpress.org/support/plugin/badgeos/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/badgeos/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/badgeos/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/code-quality-feedback/#post-7287037)
 * Status: not resolved