{"id":38759,"date":"2015-09-07T18:19:58","date_gmt":"2015-09-07T18:19:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/gentime\/"},"modified":"2025-12-03T10:33:32","modified_gmt":"2025-12-03T10:33:32","slug":"gentime","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/gentime\/","author":13791648,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.0","stable_tag":"2.0.0","tested":"6.9.4","requires":"5.3","requires_php":"7.4","requires_plugins":null,"header_name":"GenTime","header_author":"Sybre Waaijer","header_description":"","assets_banners_color":"98b0bb","last_updated":"2025-12-03 10:33:32","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/gentime","header_author_uri":"https:\/\/cyberwire.nl\/","rating":5,"author_block_rating":0,"active_installs":100,"downloads":4540,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"Cybr","date":"2015-09-16 22:21:10"},"1.0.1":{"tag":"1.0.1","author":"Cybr","date":"2015-12-12 08:23:43"},"1.0.2":{"tag":"1.0.2","author":"Cybr","date":"2016-02-28 22:50:49"},"1.0.3":{"tag":"1.0.3","author":"Cybr","date":"2016-05-03 18:51:29"},"1.0.4":{"tag":"1.0.4","author":"Cybr","date":"2020-07-17 17:09:03"},"1.1.0":{"tag":"1.1.0","author":"Cybr","date":"2025-05-05 11:05:21"},"2.0.0":{"tag":"2.0.0","author":"Cybr","date":"2025-12-03 10:33:32"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":7},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1240059,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","2.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1339,13393,247,662,1356],"plugin_category":[52,59],"plugin_contributors":[79543],"plugin_business_model":[],"class_list":["post-38759","plugin","type-plugin","status-publish","hentry","plugin_tags-admin-bar","plugin_tags-generation","plugin_tags-performance","plugin_tags-php","plugin_tags-time","plugin_category-performance","plugin_category-utilities-and-tools","plugin_contributors-cybr","plugin_committers-cybr"],"banners":{"banner":"https:\/\/ps.w.org\/gentime\/assets\/banner-772x250.jpg?rev=1240059","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/gentime_98b0bb.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<h4>GenTime<\/h4>\n\n<p>This plugin shows site administrators the time in seconds of how fast the page is generated in the WordPress top admin bar.<\/p>\n\n<p>The generation time is calculated from when the server receives the page request to when the number is printed, which is close to the end of the request.<\/p>\n\n<p>So, just PHP and the database impact this calculation. The time it takes to send the page from the server to your device is not included in this timer.<\/p>\n\n<p>That's it, pretty simple!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install GenTime either via the WordPress.org plugin directory or upload the files to your server.<\/li>\n<li>Either Network Activate this plugin or activate it on a single site.<\/li>\n<li>That's it!<\/li>\n<\/ol>\n\n<h4>Change the number of decimals<\/h4>\n\n<p>Use this filter to change the number of decimals shown by the timer. The number defaults to 3, but this filter makes it 4.<\/p>\n\n<pre><code>add_filter( 'gentime_decimals', fn( $default = 3 ) =&gt; 4 );\n<\/code><\/pre>\n\n<p>(<a href=\"https:\/\/tsf.fyi\/docs\/filters#where\">Where can I place filters?<\/a>)<\/p>\n\n<h4>Change the view capability requirement<\/h4>\n\n<p>Add this to <code>wp-config.php<\/code> to change the user capability required to view the timer:<\/p>\n\n<pre><code>define( 'GENTIME_VIEW_CAPABILITY', 'manage_options' );\n<\/code><\/pre>\n\n<p>(<a href=\"https:\/\/wordpress.org\/documentation\/article\/roles-and-capabilities\/#capabilities\">List of capabilities<\/a>)<\/p>\n\n<!--section=changelog-->\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Changed: The plugin has been rewritten to adhere to my latest coding standards \u2014 its old functions are no longer available.<\/li>\n<li>Changed: This plugin now requires PHP 7.4, from PHP 5.2.<\/li>\n<li>Changed: The default timer view capability now defaults to <code>'manage_options'<\/code> instead of <code>'install_plugins'<\/code>.<\/li>\n<li>Removed: Filter <code>'gentime_minimum_role'<\/code> is gone. Use constant <code>GENTIME_VIEW_CAPABILITY<\/code> instead.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added: Now uses WordPress 5.8's more accurate function, when available, <code>timer_float()<\/code>.<\/li>\n<li>Updated: Now uses HTML5 for the styles output.<\/li>\n<li>Other: Refactored the plugin to support PHP 5.6 or later, from 5.2 or later.<\/li>\n<li>Other: Cleaned up code.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Fixed: This plugin is now converted to UNIX line feed.<\/li>\n<li>Improved: Early sanitation of translation strings.<\/li>\n<li>Updated: POT file.<\/li>\n<li>Confirmed: WordPress 4.6 support.<\/li>\n<li>Other: The plugin license has been upgraded to GPLv3.<\/li>\n<li>Other: Cleaned up code.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Fixed: The cache now works as intended.<\/li>\n<li>Fixed\/Improved: Erroneous order of function checking. Which actually had no impact.<\/li>\n<li>Other: <code>gentime_minimum_role<\/code> filter now converts input to string.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added: POT translation file.<\/li>\n<li>Improved: Slightly improved performance (every Herz counts) by adding PHP runtime static cache earlier.<\/li>\n<li>Confirmed: WordPress 4.5+ compatibility.<\/li>\n<li>Cleaned up code.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Changed: Minimum capability from edit_plugins to install_plugins so that the generation time is still shown when the Editor has been disabled.<\/li>\n<li>Added: PHP Staticvar caching for capability.<\/li>\n<li>Confirmed: 4.4.0+ support.<\/li>\n<li>Cleaned up PHP.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"GenTime accurately shows the page generation time in your WordPress admin bar.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/38759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=38759"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/cybr"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=38759"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=38759"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=38759"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=38759"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=38759"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=38759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}