Rarst/laps
关于
轻量级 WordPress 性能分析器。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Laps — light WordPress profiler
Make a site, make it fast.
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
SAVEQUERIESdefined constant set to true) - 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.

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.
laps_can_see check can be filtered to relax required permissions on the plugin’s side.
Installation
| Composer (recommended) | Release archive |
|---|---|
composer require rarst/laps |
Tests
Tests require Brain Monkey (included in dependencies) and PHPUnit 8 (not included).
phpunit
License
MIT
探索相关项目
加载中…