/wp-checklist

Primary LanguageJavaScript

Wordpress Performance & Security Checklist

Theme checklist

Javascript

  • Don't add scripts directly to the page header. Use wp_enqueue_script and wp_enqueue_style instead (See wordpress docs)
  • Remove Emoji script
  • Remove Embeded script
  • Load jQuery from CDN (See enqueue.php#59)
  • Prevent blocking scripts using defer (See enqueue.php#27)
  • Use automation tools (such as gulp.js) to compress and minify scripts and stylesheets (See gulpfile.js, gulpconfig.json and package.json)

CSS

  • Minify CSS removes whitespace and comments to reduce the file size.
  • Combining Google Fonts will reduce the number of HTTP requests.

Images

  • Use native post thumbnails for responsive utilities: add_theme_support( 'post-thumbnails' );
  • Use LazyLoad

Security

Template tags