Title: Improve coding standards and performance?
Last modified: February 17, 2020

---

# Improve coding standards and performance?

 *  [drywallbmb](https://wordpress.org/support/users/drywallbmb/)
 * (@drywallbmb)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/improve-coding-standards-and-performance/)
 * Trying to decide which (of many) cookie notice plugins like this one to use. 
   Have to say this seems like probably the best option, but I have a few suggestions/
   requests:
    1. It doesn’t fare well when the PHP is linted to conform with WordPress’s PHP 
       coding standards. For example, the main `cookie-notice.php` file generates 433
       errors and 16 warnings according to my PHPCS test. Any chance those can be addressed?
    2. The theme-facing JS and CSS for this plugin are both pretty small; since it’s
       still probably too soon to assume whatever site it’s running on is serving via
       HTTP/2 I would ask if it’s possible (maybe with an admin option?) to get both
       the CSS and JS output inline rather than enqueued as separate files? The JS 
       file in particular has a performance cost according to tools like Y!Slow and
       PageSpeed/Lighthouse
 * Thanks!
    -  This topic was modified 6 years, 3 months ago by [drywallbmb](https://wordpress.org/support/users/drywallbmb/).
    -  This topic was modified 6 years, 3 months ago by [drywallbmb](https://wordpress.org/support/users/drywallbmb/).

The topic ‘Improve coding standards and performance?’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [drywallbmb](https://wordpress.org/support/users/drywallbmb/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/improve-coding-standards-and-performance/)
 * Status: not resolved