{"id":42816,"date":"2016-03-28T01:27:39","date_gmt":"2016-03-28T01:27:39","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/mcavoy\/"},"modified":"2016-04-27T03:38:09","modified_gmt":"2016-04-27T03:38:09","slug":"mcavoy","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/mcavoy\/","author":7129452,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.3","stable_tag":"0.1.3","tested":"4.5.33","requires":"4.4","requires_php":"","requires_plugins":"","header_name":"McAvoy","header_author":"Steve Grunwell","header_description":"","assets_banners_color":"afb6b3","last_updated":"2016-04-27 03:38:09","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/stevegrunwell.com\/donate","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/mcavoy","header_author_uri":"https:\/\/stevegrunwell.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1746,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.1.3":"<p>Fixes issue with Database Logger schema that may cause searches to stop being recorded.<\/p>","0.1.2":"<p>Fixes issues that arise when McAvoy is network activated within WordPress Multisite.<\/p>","0.1.1":"<p>This release fixes a Cross-site Scripting (XSS) vulnerability and fixes a fatal error when trying to delete saved queries and is a recommended upgrade for all users.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1380440","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1380440","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500-rtl.png":{"filename":"banner-1544x500-rtl.png","revision":"1380372","resolution":"1544x500","location":"assets"},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1380372","resolution":"1544x500","location":"assets"},"banner-772x250-rtl.png":{"filename":"banner-772x250-rtl.png","revision":"1380440","resolution":"772x250","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1380440","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.1.1","0.1.2","0.1.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1380372","resolution":"1","location":"assets"}},"screenshots":{"1":"A list of recent searches made on a site \u2013\u00a0judging by the terms, it sounds like someone was hungry!"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1626,944,3541,550],"plugin_category":[36],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-42816","plugin","type-plugin","status-publish","hentry","plugin_tags-query","plugin_tags-search","plugin_tags-site-search","plugin_tags-tracking","plugin_category-analytics","plugin_committers-stevegrunwell"],"banners":{"banner":"https:\/\/ps.w.org\/mcavoy\/assets\/banner-772x250.png?rev=1380440","banner_2x":"https:\/\/ps.w.org\/mcavoy\/assets\/banner-1544x500.png?rev=1380372","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/mcavoy\/assets\/icon-128x128.png?rev=1380440","icon_2x":"https:\/\/ps.w.org\/mcavoy\/assets\/icon-256x256.png?rev=1380440","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/mcavoy\/assets\/screenshot-1.png?rev=1380372","caption":"A list of recent searches made on a site \u2013\u00a0judging by the terms, it sounds like someone was hungry!"}],"raw_content":"<!--section=description-->\n<p>McAvoy is a simple WordPress that logs site searches (and information about the people performing them) so you can get a better sense of what your audience is looking for. Is your navigation unclear? Are people regularly getting lost in your infinitely-scrolling homepage when they're just trying to find the latest news on a topic? McAvoy is there, collecting the facts you need to make informed decisions!<\/p>\n <p>Best of all, McAvoy is meant to grow with you, sending search query data anywhere you need to in order to get the most meaningful results.<\/p>\n <p><strong>Notice:<\/strong> In the interest of writing the best software possible, McAvoy requires a <em>minimum<\/em> of PHP 5.3. For more information, please see the Frequently Asked Questions.<\/p>\n <p>To keep up with the latest developments (or to contribute to ongoing development), please <a href=\"https:\/\/github.com\/stevegrunwell\/mcavoy\">keep up with McAvoy on GitHub<\/a>!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to <code>\/wp-content\/plugins\/mcavoy<\/code> or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>Eww, this plugin adds a new database table? Can't I put the data somewhere else?<\/h4>\n <p>Absolutely! Creating a new database table isn't ideal in a lot of situations, so McAvoy has been built from the ground-up to be flexible in the way the data is handled.<\/p>\n <p>For example, if you want to send the data to something like <a href=\"https:\/\/www.firebase.com\/\">Firebase<\/a>, you can easily do so by creating a new callback attached to the <code>mcavoy_save_search_query<\/code> action:<\/p>\n <pre><code>    \/**      * Save a search query to Firebase.      *      * @param string $term     The search term.      * @param array  $metadata Meta data that should be saved with the query.      *\/     function save_search_query_to_firebase( $term, $metadata ) {         \/\/ do something with this data!     }     add_action( 'mcavoy_save_search_query', 'save_search_query_to_firebase', 10, 2 ); <\/code><\/pre>\n <h4>What's all this about requiring at least PHP 5.3?<\/h4>\n <p>McAvoy has been written using <a href=\"http:\/\/php.net\/manual\/en\/language.namespaces.php\">PHP Namespaces<\/a>, which is super common in the larger PHP community but rather rare in WordPress (as WordPress strives to support as many people as possible). For most users, this minimum requirement shouldn't be of any concern (after all, <a href=\"http:\/\/php.net\/supported-versions.php\">security patches stopped being delivered for PHP 5.3 in mid-2014<\/a>).<\/p>\n <p>If you <strong>are<\/strong> affected, however, I urge you to <em>please<\/em> upgrade your server (or change hosts) as soon as humanely possible. Besides the obvious benefits of having current security patches, newer versions of PHP are more performant than ever.<\/p>\n <h4>Who the heck is McAvoy?<\/h4>\n <p>This plugin was designed to answer five questions about your site's audience, specifically those searching on it: \"who\", \"what\", \"when\", \"where\", and \"why.\" Those even somewhat familiar with journalism probably recognize the importance of those five questions, and as such I found it fitting to name the plugin after a journalist. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Edward_R._Murrow\">Edward R Murrow<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Walter_Cronkite\">Walter Cronkite<\/a>, and <a href=\"https:\/\/en.wikipedia.org\/wiki\/Dan_Rather\">Dan Rather<\/a> were all contenders, but ultimately <a href=\"https:\/\/en.wikipedia.org\/wiki\/The_Newsroom_(U.S._TV_series)\">ACN Anchor Will McAvoy<\/a> won out.<\/p>\n\n<!--section=changelog-->\n<p>For a complete changelog, please see <a href=\"https:\/\/github.com\/stevegrunwell\/mcavoy\/blob\/master\/CHANGELOG.md\">McAvoy's GitHub repository<\/a>.<\/p>\n <h4>0.1.3<\/h4>\n <ul>\n<li>Fixed the <code>mcavoy_searches<\/code> table schema to accommodate more searches.<\/li>\n<\/ul>\n <h4>0.1.2<\/h4>\n <ul>\n<li>Fixed issue with WordPress Multisite wherein McAvoy would not properly set up the <code>DatabaseLogger<\/code> dependencies when network activated.<\/li>\n<\/ul>\n <h4>0.1.1<\/h4>\n <ul>\n<li>Fixed cross-site scripting (XSS) bug where search terms weren't automatically escaped.<\/li>\n<li>Fixed fatal error (<code>Fatal error: Call to undefined function McAvoy\\Admin\\get_logger()<\/code>) when deleting saved queries that resulted as a side-effect of namespace juggling.<\/li>\n<li>Added method access modifiers to the <code>ListTable<\/code> class.<\/li>\n<\/ul>\n <h4>0.1.0<\/h4>\n <ul>\n<li>Initial public release.<\/li>\n<\/ul>","raw_excerpt":"Discover what visitors are searching for on your WordPress site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42816"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/stevegrunwell"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42816"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42816"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42816"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42816"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42816"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}