{"id":7149,"date":"2009-11-03T22:42:37","date_gmt":"2009-11-03T22:42:37","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/sj-hook-profiler\/"},"modified":"2011-07-04T17:24:46","modified_gmt":"2011-07-04T17:24:46","slug":"sj-hook-profiler","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/sj-hook-profiler\/","author":1064655,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2.1","stable_tag":"0.2.1","tested":"3.2.1","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"SJ Hook Profiler","header_author":"Vladimir Kolesnikov","header_description":"","assets_banners_color":"","last_updated":"2011-07-04 17:24:46","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/blog.sjinks.pro\/feedback\/","header_plugin_uri":"http:\/\/blog.sjinks.pro\/wordpress-plugins\/sj-hook-profiler\/","header_author_uri":"http:\/\/blog.sjinks.pro\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1569,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1444476","resolution":"1","location":"plugin"}},"screenshots":{"1":"Sample output"}},"plugin_section":[],"plugin_tags":[2770,187,247,435,794],"plugin_category":[43,52,54],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-7149","plugin","type-plugin","status-closed","hentry","plugin_tags-bbpress","plugin_tags-optimization","plugin_tags-performance","plugin_tags-profile","plugin_tags-speed","plugin_category-customization","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_committers-vladimir_kolesnikov"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/sj-hook-profiler.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/sj-hook-profiler\/trunk\/screenshot-1.png?rev=1444476","caption":"Sample output"}],"raw_content":"<!--section=description-->\n<p>WordPress and bbPress plugin developers use two functions to extend WordPress\/bbPress functionalty. These are <code>add_action()<\/code> and <code>add_filter()<\/code>. They are used to set up a <em>hook<\/em> which is triggered by some event.<\/p>\n <p>The experience shows that hook execution takes signifacnt part of the page generation time. When there are few queries but the page generation is high, this plugin comes to the rescue.<\/p>\n <p>Unlike WP Tuner, which needs to specify the events to profile explicitly, SJ Hook Profiler automatically detects <em>all<\/em> used hooks and sets up the handlers to measure their execution time.<\/p>\n <p>By default the plugin is active only for the Administrator (WordPress) or Key Master (bbPress). This behavior can be changed by setting up a handler for <code>enable_hook_profiler<\/code> filter. The handler should return <code>true<\/code> if the hook profiler should be activated, or <code>false<\/code> otherwise.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>sj-hook-profiler<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>That's all :-)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>None yet. Be the first to ask.<\/p>\n\n<!--section=changelog-->\n<h4>0.2.1<\/h4>\n <ul>\n<li>Compatibility with WP 2.7.x<\/li>\n<\/ul>\n <h4>0.2<\/h4>\n <ul>\n<li>Got rid of a PHP Warning in SjProfiler::end_profile().<\/li>\n<li>Improved performance a bit by using <a href=\"http:\/\/blog.sjinks.pro\/php\/651-php-code-beauty-impacts-performance-part-2\/\" title=\"PHP Code Beauty Impacts Performance\">PHP code optimization<\/a><\/li>\n<\/ul>\n <h4>0.1<\/h4>\n <ul>\n<li>First public release<\/li>\n<\/ul>","raw_excerpt":"WordPress and bbPress plugin developers use two functions to extend WordPress\/bbPress functionalty.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/7149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=7149"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/vladimir_kolesnikov"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=7149"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=7149"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=7149"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=7149"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=7149"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=7149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}