diff --git a/CHANGELOG.md b/CHANGELOG.md index 7500956..883ccaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,28 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +## 2.0 - 2018-02-26 + +### Added +- unified processing of events from arbitrary sources +- unit tests +- tracking PHP and WP core load times + +### Changed +- minimum PHP version requirement to >=5.6 +- class files names to PSR–4 +- main class into concrete instance and Pimple container +- timeline to unified processing with as necessary nesting +- directory structure to PDS skeleton +- baseline timings to float in seconds (from milliseconds) +- color scheme + +### Removed +- Thematic hook events + +### Fixed +- handling or not properly started/stopped hook events + ## 1.4.4 - 2017-07-05 ### Added diff --git a/README.md b/README.md index 3baa198..0fa5453 100644 --- a/README.md +++ b/README.md @@ -7,46 +7,36 @@ [![PHP from Packagist](https://img.shields.io/packagist/php-v/rarst/laps.svg)](https://packagist.org/packages/rarst/laps) [![PDS Skeleton](https://img.shields.io/badge/pds-skeleton-blue.svg)](https://github.com/php-pds/skeleton) -![Laps screenshot](http://i.imgur.com/zFokmkU.png) +_Make a site, make it fast._ -Laps is light WordPress profiler (in a plugin), which aims to be: +![Laps v2 screenshot](https://i.imgur.com/6n36KPE.png) - - always on and zero click (just hover on toolbar entry) away - - quick indicator of what hogs page in general or right now +Laps is a plugin that **shows performance information** about WordPress page load. -It is no match or replacement for *real* profiler, but is friendly and cute. +It provides a visual summary in toolbar that is quick and easy to inspect. -Out of the box Laps supports common stage of WordPress page life cycle: - - - plugins load - - themes load - - core init - - main loop - -And some of third party hooks conventions for themes using: - - - [Theme Hook Alliance](http://zamoose.github.io/themehookalliance/) - - [Hybrid](http://themehybrid.com/) - - [Genesis](http://my.studiopress.com/themes/genesis/) - -There are also additional optional timelines, displaying: - - - SQL queries (with [`SAVEQUERIES` constant](http://codex.wordpress.org/Editing_wp-config.php#Save_queries_for_analysis) enabled) - - HTTP requests performed +Laps tracks many events, such as: +- PHP, core, plugins, and themes load +- database queries (with [`SAVEQUERIES` constant](http://codex.wordpress.org/Editing_wp-config.php#Save_queries_for_analysis) enabled) +- network requests to other sites +- main posts loop +- events for supported theme frameworks: + - [Theme Hook Alliance](http://zamoose.github.io/themehookalliance/) + - [Hybrid](http://themehybrid.com/) + - [Genesis](http://my.studiopress.com/themes/genesis/) +- events for supported plugins: + - [Yoast SEO](https://wordpress.org/plugins/wordpress-seo/) ## Installation -Download plugin archive from [releases section](https://github.com/Rarst/laps/releases). +Require with [Composer](https://getcomposer.org/): -Or install in plugin directory via [Composer](https://getcomposer.org/): +```bash +composer require rarst/laps +``` - composer create-project rarst/laps --no-dev +Or download plugin archive from [releases section](https://github.com/Rarst/laps/releases). -## License Info +## License -Laps own code is licensed under MIT and it makes use of code from: - - - Composer Installers (MIT) - - Symfony Stopwatch (MIT) - - Mustache.php (MIT) - - Twitter Bootstrap (MIT) +MIT \ No newline at end of file diff --git a/laps.php b/laps.php index 3354268..7575a55 100644 --- a/laps.php +++ b/laps.php @@ -4,9 +4,9 @@ Plugin Name: Laps Plugin URI: https://github.com/Rarst/laps Description: Light WordPress profiler. -Author: Andrey "Rarst" Savchenko -Version: 1.4.4 -Author URI: http://www.rarst.net/ +Author: Andrey “Rarst” Savchenko +Version: 2.0 +Author URI: https://www.rarst.net/ Text Domain: laps Domain Path: /lang License: MIT