blog

最近構築したWordpressサイトで使っている便利なプラグイン30選

    • Ryuichi Nonaka
    この記事は書かれてから1年以上経過しており、内容が古い場合があります。

    とあるサイトの構築に利用したプラグインをまとめてみた。
    何でもプラグインでやれば良いというわけではないので、ソースを勝手に書き換える系のプラグインは負荷が高いし、入れるとしてもできるだけ小さく少なく、自分で設定できるものはテーマファイルのfunctions.phpに記述する方が良いと思ってます。

    記事・エディタ系

    JP Markdown(jetpack-markdown)

    Write in Markdown, publish in HTML.

    JP MarkdownはJetpack by WordPress.comに入っているMarkdown機能を切り出したもので記事をMarkdownで記述できるようになる。

    Wordpress: JP Markdown

    SyntaxHighlighter Evolved(syntaxhighlighter)

    Easily post syntax-highlighted code to your site without having to modify the code at all. As seen on WordPress.com.

    コードをSyntaxHighlight表示できるプラグイン。ショートコードに加え、JP Markdownのコードブロックにも対応できるので併用すると便利。ただしHTMLがエンコードされてしまうので、プラグインの微調整は必要。追々対応方法は紹介する予定。とりあえずはショートコードでSyntaxHighlightの指定をしておけば問題無い。

    Wordpress: SyntaxHighlighter Evolved

    TinyMCE Advanced(tinymce-advanced)

    Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.

    主にビジュアルエディタ使うユーザー向けにTinyMCE Advancedを入れておくとテーブルが挿入できたり使える機能を制限できるので便利。

    Wordpress: TinyMCE Advanced

    WP Emmet(wp-emmet)

    Emmet (ex-Zen Coding) for WordPress.

    HTMLエディタでEmmetを使えるようにしてくれるプラグイン。HTMLの入力を効率的に行うにはWP Emmetが必須。

    Wordpress: WP Emmet

    Duplicate Post(duplicate-post)

    Clone posts and pages.

    記事を複製できるようにするプラグイン。シリーズ物の記事を書くときに何かと便利。

    Wordpress: Duplicate Post

    Revision Control(revision-control)

    Revision Control allows finer control over the Post Revision system included with WordPress

    記事のリビジョンを細かく制御できるようにするプラグイン。 デフォルトの場合、無限にリビジョンが作られるが、このプラグインを使うことでリビジョンの上限数を指定できるのでDB上の無駄なデータを減らすことができる。

    Wordpress: Revision Control

    PS Disable Auto Formatting(ps-disable-auto-formatting)

    Stops the automatic forming and the HTML tag removal in the html mode of WordPress, and generates a natural paragraph and changing line.

    Wordpressのオートフォーマット(pタグの自動挿入等)を無効にできるプラグイン。HTMLを勝手に調整されたくない場合は入れておきたい。ただし、TinyMCE Advanced等と併用する場合は同様のオプションがあるので設定に注意すること。

    Wordpress: PS Disable Auto Formatting

    権限・アクセス管理系

    Google Authenticator(google-authenticator)

    Google Authenticator for your WordPress blog.

    WordpressにGoogle Authenticatorの2要素認証を導入できるプラグイン。簡単に導入できるのでアカウント乗っ取りなどを回避するためにも入れておきたい。

    Wordpress: Google Authenticator

    Limit Login Attempts(limit-login-attempts)

    Limit rate of login attempts, including by way of cookies, for each IP. Fully customizable.

    ログイン画面へのアタックによる不正アクセスを抑止するプラグイン。認証失敗回数をIPやcookieでカウントしアクセス制限をかけてくれる。

    Wordpress: Limit Login Attempts

    WP BASIC Auth(wp-basic-auth)

    Enabling this plugin allows you to set up Basic authentication on your site using your WordPress’s user name and password.

    Wordpressのユーザー認証と同じID,PWを使ってサイト側にベーシック認証を導入できるプラグイン。テスト運用中のWebサイトに導入しておくと便利。

    Wordpress: WP BASIC Auth

    User Role Editor(user-role-editor)

    User Role Editor WordPress plugin makes user roles and capabilities changing easy. Edit/add/delete WordPress user roles and capabilities.

    定番中の定番。権限・ユーザー毎のロール制御が行えるプラグイン。

    Wordpress: User Role Editor

    Peter’s Collaboration E-mails(peters-collaboration-e-mails)

    This plugin enables automatic e-mails to the relevant users during the collaboration workflow.

    公開承認ワークフローを行えるようにするプラグイン。レビュワーを細かくグループ分けし担当者にレビュー依頼のメールを送ることができる。

    Wordpress: Peter’s Collaboration E-mails

    WP Htaccess Editor(wp-htaccess-editor)

    Simple editor htaccess file without using FTP client.

    .htaccessをバックアップしたり管理画面上から編集できるようにするプラグイン。

    Wordpress: WP Htaccess Editor

    並び順変更系

    Category Order and Taxonomy Terms Order(taxonomy-terms-order)

    Order Categories and all custom taxonomies terms (hierarchically) and child terms using a Drag and Drop Sortable javascript capability. No Theme update.

    カテゴリ、タクソノミーの順番を調整できるようにするプラグイン。

    Wordpress: Category Order and Taxonomy Terms Order

    My Link Order(my-link-order)

    My Link Order allows you to set the order in which links and link categories will appear in the sidebar.

    Link Managerのリンクの並び替えを行えるプラグイン。

    Wordpress: My Link Order

    My Category Order(my-category-order)

    My Category Order allows you to set the order in which categories will appear in the sidebar.

    カテゴリ内の子カテゴリの並び替えも行えるプラグイン。

    Wordpress: My Category Order

    My Page Order(my-page-order)

    My Page Order allows you to set the order of pages through a drag and drop interface.

    固定ページの並び替えができるプラグイン。

    Wordpress: My Page Order

    Post Types Order(post-types-order)

    Post Order and custom Post Type Objects (posts, any custom post types) using a Drag and Drop Sortable JavaScript AJAX interface.

    投稿の並び替えができるプラグイン。

    Wordpress: Post Types Order

    サムネイル系

    Regenerate Thumbnails(regenerate-thumbnails)

    Allows you to regenerate your thumbnails after changing the thumbnail sizes.

    アップロード済みの画像のサムネイルを再生成できるプラグイン。

    Wordpress: Regenerate Thumbnails

    WPCustom Category Image(wpcustom-category-image)

    The WPCustom Category Image plugin allow users to upload their very own custom category image

    カテゴリ、タグ、タクソノミーに画像を指定できるようにするプラグイン。PHPから指定のサイズのサムネイルを呼び出せる。

    Wordpress: WPCustom Category Image

    パフォーマンス改善系

    W3 Total Cache(w3-total-cache)

    Easy Web Performance Optimization (WPO) using caching: browser, page, object, database, minify and content delivery network support.

    かなり高機能なので敷居の高いプラグインではあるけれど導入することで大きくパフォーマンスを改善できるプラグイン。CDNとの連携や各種キャッシュ機能がすばらしい。

    Wordpress: W3 Total Cache

    WP-Optimize(wp-optimize)

    Simple but effective plugin allows you to extensively clean up your WordPress database and optimize it without doing manual queries.

    データベースのクリーンナップに。

    Wordpress: WP-Optimize

    EWWW Image Optimizer(ewww-image-optimizer)

    Reduce file sizes for images in WordPress including NextGEN, GRAND FlAGallery and more using lossless/lossy methods and image format conversion.

    画像のファイルを圧縮してくれるプラグイン。

    EWWW Image Optimizer

    その他

    Disqus Comment System(disqus-comment-system)

    The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus.

    高機能なコメントシステム。WordpressのDBと同期でき、各種ソーシャル系アカウントと連携できる。

    Wordpress: Disqus Comment System

    Broken Link Checker(broken-link-checker)

    This plugin will check your posts, comments and other content for broken links and missing images, and notify you if any are found.

    定期的に死んでいるリンクがないかチェックできるプラグイン。

    Wordpress: Broken Link Checker

    Search Regex(search-regex)

    Search Regex adds a powerful set of search and replace functions to WordPress. These go beyond the standard searching capabilities, and allow you to search and replace almost any data stored on your site.

    固定ページや投稿などの内容を一括で置換できるプラグイン。

    Wordpress: Search Regex

    Link Manager(link-manager)

    Enables the Link Manager that existed in WordPress until version 3.5.

    昔のバージョンではWordpress本体にあったリンク管理機能を切り出したもの。バナーの管理なんかに使えるので今でも使っている。最新のバージョンでも問題なく動作するけれど2年間アップデートされていないので今後問題が発生する可能性もある。

    Wordpress: Link Manager

    Subscribe2(subscribe2)

    Sends a list of subscribers an email notification when new posts are published to your blog. Automate user growth through ReadyGraph integration.

    フォームを設置してメールマガジンを発行できるプラグイン。

    Subscribe2

    Contact Form 7(contact-form-7)

    Just another contact form plugin. Simple but flexible.

    Ajax型のお問い合わせフォームを設置できるプラグイン。

    Contact Form 7

    Google XML Sitemaps(google-sitemap-generator)

    This plugin will generate a special XML sitemap which will help search engines to better index your blog.

    サイトマップXMLを生成できるプラグイン。

    Google XML Sitemaps

    WP-CLIを使ってプラグインを一括インストール

    これだけプラグインが多いと、インストールするのも手間です。一括インストールができるプラグインなどもありますが余計なプラグインをインストールしたくありません。そこでWP-CLIを使ってプラグインを一括インストール・有効化します。注意点としてwp-cliはroot権限で実行できません。wp-content/pluginsのパーミッションにも注意が必要です。

    WP-CLIの使い方についてはこちらの記事VCCWでWP-CLI(A command line interface for WordPress)を試すを参照してください。

    wp-plugin-install.sh

    下記のようにシェルを実行するファイルを用意して配列にプラグインのIDをまとめておきます。

    #!/bin/sh
    PLUGINS=('wp-emmet' 'user-role-editor' 'w3-total-cache' 'jetpack-markdown' 'link-manager' 'syntaxhighlighter' 'tinymce-advanced' 'wp-basic-auth' 'wpcustom-category-image' 'wp-htaccess-editor' 'taxonomy-terms-order' 'disqus-comment-system' 'duplicate-post' 'google-authenticator' 'limit-login-attempts' 'my-category-order' 'my-link-order' 'my-page-order' 'peters-collaboration-e-mails' 'post-types-order' 'revision-control' 'wp-optimize' 'broken-link-checker' 'search-regex' 'regenerate-thumbnails' 'ps-disable-auto-formatting')
    
    for i in "${PLUGINS[@]}"
    do
      wp plugin install "${i}"
      wp plugin activate "${i}"
    done
    

    保存できたらWordpressのrootでコマンドを実行します。

    $ bash wp-plugin-install.sh
    

    これでプラグインのインストールと起動を一括で行えるようになります。

    一括アップデート

    アップデートに関してもWP_CLIを使えば一括で行えます。

    $ wp plugin update --all
    

    WP-CLIも併用することで効率的に管理できるようになりますね。
    以上、最近使ったプラグインの紹介でした。

    コメント・フィードバック