Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Rarst/laps
Light WordPress profiler.
https://github.com/Rarst/laps
performance wordpress wordpress-plugin
Last synced: 3 days ago
JSON representation
Light WordPress profiler.
- Host: GitHub
- URL: https://github.com/Rarst/laps
- Owner: Rarst
- License: mit
- Created: 2014-05-18T18:47:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-28T13:07:04.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T17:04:12.265Z (5 days ago)
- Topics: performance, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 316 KB
- Stars: 549
- Watchers: 22
- Forks: 37
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- stars - Rarst/laps - Light WordPress profiler. (PHP)
- awesome-wp-developer-tools - Laps - Light WordPress profiler. (WordPress Plugins)
- awesome-wordpress - Laps — light WordPress profiler - shows performance information - Free (Plugins / 7. Plugins for debug)
README
![Laps v3 toolbar screenshot](https://i.imgur.com/NtgAxhp.png)
# Laps — light WordPress profiler
_Make a site, make it fast._
[![Tests Status](https://github.com/rarst/laps/actions/workflows/tests.yml/badge.svg)](https://github.com/Rarst/laps/actions/workflows/tests.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/rarst/laps.svg)](https://packagist.org/packages/rarst/laps)
[![Latest Stable Version](https://img.shields.io/packagist/v/rarst/laps.svg?label=version)](https://packagist.org/packages/rarst/laps)
[![PHP from Packagist](https://img.shields.io/packagist/php-v/rarst/laps.svg)](https://packagist.org/packages/rarst/laps)
[![Download Laps](https://img.shields.io/badge/download-laps.zip-blue)](https://github.com/Rarst/laps/releases/latest/download/laps.zip)Laps is a plugin that **shows performance information** about WordPress page load.
It provides a visual summary in toolbar that is quick and easy to inspect.
## Page profiling
Laps automatically tracks many events, such as:
- PHP, core, plugins, and themes load, main posts loop, sidebars
- database queries (with [`SAVEQUERIES` defined constant set to true](https://wordpress.org/support/article/debugging-in-wordpress/#savequeries))
- network requests to other sites## API profiling
For Ajax and REST API — Laps outputs performance information by Server Timing API, for use with clients such as Chrome Dev Tools.
![Laps v3 dev tools screenshot](https://i.imgur.com/hkl1Qk9.png)
### API authentication
API requests need to be authenticated as admin for performance data to be sent. For Ajax requests cookies are sufficient. REST API requests also [need nonce passed](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/#cookie-authentication).
`laps_can_see` check can be filtered to relax required permissions on the plugin’s side.
## Installation
| [Composer](https://getcomposer.org/) (recommended) | Release archive |
| -------------------------------------------------- | -------- |
| `composer require rarst/laps` | [![Download Laps](https://img.shields.io/badge/download-laps.zip-blue?style=for-the-badge)](https://github.com/Rarst/laps/releases/latest/download/laps.zip)|## Tests
Tests require [Brain Monkey](https://github.com/Brain-WP/BrainMonkey) (included in dependencies) and PHPUnit 8 (not included).
```bash
phpunit
```## License
MIT