WordCamp Montreal 2010 - Aug 28-29



Lefebvre, Yannick (2010). « Plugin development best practices and troubleshooting user issues »

Sommaire

Yannick Lefebvre

Plugins

Best Practices

  • Avoiding jQuery conflicts
    • Avoid loading multiple instances
    • wp_enqueue_script( 'jquery' );
    • wp_enqueue_style( $handle, $src, $deps, $ver, $media );
  • Avoid conflicts with other plugin functions
  • Watch out for the automatic upgrade cleanup

Blog Performance

  • […]
  • Keep database access under control
  • Reduce page refresh and size of database queries

Enhance the user experience

  • Translation
    • load_plugin_textdomain( 'link-library', $llpluginpath . '/languages', 'link-library/languages' );
  • Tooltips in the plugin admin page
  • Debug mode
  • Backward compatibility
  • Think of all types of users for upgrade procedures
  • Version number

Slides

Plugin Development Best Practices and Troubleshooting User Issues