Skip to content

alectejada/webpagetest

This branch is 3 commits ahead of, 319 commits behind catchpoint/WebPageTest:master.

Folders and files

NameName
Last commit message
Last commit date
Mar 28, 2023
Feb 2, 2022
Jul 18, 2022
May 2, 2023
Aug 19, 2022
Apr 20, 2023
Apr 20, 2023
Jul 19, 2023
Feb 9, 2017
Dec 20, 2022
Nov 14, 2022
Sep 30, 2022
Aug 29, 2022
Oct 5, 2022
Jan 28, 2021
Nov 2, 2020
Nov 2, 2020
Nov 18, 2022
Sep 21, 2021
Jul 15, 2016
Mar 10, 2023
Apr 19, 2023
Oct 18, 2022
Mar 22, 2023

Repository files navigation

WebPageTest

This is the official repository for the performance-testing code that runs at webpagetest.org.

Troubleshooting private instances

If your instance runs, but you’re having issues configuring agents, navigate to http://{your_instance’s_ip}/install to check for a valid configuration.

Testing

WebPageTest uses PHPUnit for unit tests. To set up and run the unit tests:

  1. Install Composer
  2. Install apcu
  3. Add the line apc.enable_cli='on' to your php.ini
  4. Run composer install
  5. Run composer test

Contributing

There are separate lines of development under different licenses (pull requests accepted to either):

Code style

WebPageTest uses PSR12 coding conventions for PHP linting and formatting. For JavaScript and CSS formatting we use Prettier with its default configuration. Additionally we use Stylelint for CSS linting.

Before you send a pull request please make sure to run: composer lint && composer format.

Alternatively you can run

  • composer lint:php && composer format:php if you only touched PHP code, or
  • composer lint:css && composer format:prettier if you only touched CSS or JavaScript code

VSCode integration

If you use VSCode you might find it helpful to install Prettier and PHP Intelephence plugins and use these in your "settings.json":

{
  "[php]": {
    "editor.tabSize": 4
  },

  // uncomment to reformat on every file save
  //"editor.formatOnSave": true,

  "phpcs.standard": "PSR12",

  "files.trimTrailingWhitespace": true,

  "files.eol": "\n",

  "files.associations": {
    "*.inc": "php"
  }
}

About

Official repository for WebPageTest

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 45.8%
  • PHP 45.2%
  • HTML 7.0%
  • CSS 1.6%
  • Blade 0.2%
  • SCSS 0.2%