plugin-pagenotfound
v2025.12.1
Published
Page not found plugin for sitespeed.io
Readme
plugin-pagenotfound
Page not found plugin for sitespeed.io
Overview
The plugin-pagenotfound is a plugin for sitespeed.io that helps identify and log "Page Not Found" (404) errors during web performance testing. It integrates with sitespeed.io to provide detailed information about 404 errors, including status codes, response titles, headers, and language text.
Features
- Logs status codes of requested webpages.
- Handles redirects and logs the final status code.
- Rates the response based on status code, title, header, and language text.
- Integrates seamlessly with sitespeed.io.
Installation
To install the plugin, run the following command:
npm install plugin-pagenotfoundUsage
To use the plugin with sitespeed.io, add it to your sitespeed.io configuration file or command line options.
Configuration
Add the plugin to your sitespeed.io configuration file:
{
"plugins": {
"plugin-pagenotfound": {
"enabled": true
}
}
}Command Line
You can also enable the plugin via the command line:
sitespeed.io --plugins.add plugin-pagenotfoundExample
Here is an example of how to use the plugin with sitespeed.io:
sitespeed.io https://www.example.com --plugins.add plugin-pagenotfoundDevelopment
Running Tests
To run the tests, use the following command:
npm testLinting
To lint the code, use the following command:
npm run lintTo automatically fix linting issues, use the following command:
npm run lint:fixLicense
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
Author
- 7h3Rabbit - GitHub
