The simplest way: Go to
https://gtmetrix.com/ and test your website. Now don't look at the speed measurements! They will fluctuate randomly depending on server load, network congestion, etc., and you will not learn anything actionable from them. Instead, look at the YSlow (created by Yahoo!) and Page Speed (created by Google) scores.
You should aim to get an A on both, and the report will even tell you exactly which performance best practices you need to work on. Findecanor mentioned several of the typical ones, but the gtmetrix report will tell you exactly what bottlenecks your site has (on the front end -- the scanner can't see your server side code, so gtmetrix can't give you tips about database queries etc., but you should absolutely still go over your backend code once your frontend is tuned).
If you want to go deeper down the rabbithole of Web Performance Optimization tricks, follow
Steve Souders,
Stoyan Stefanov and
Ilya Grigorik. They are the best in the business and Steve Souders in particular lead both the Yahoo! team that built YSlow and the Google team that creeated Page Speed.
And read up on
Accelerated Mobile Pages.
For small personal web sites, getting performance scores in the 90s is absolutely doable with fairly simple tweaks. For larger/business sites, it will take a bit more effort. And for large community/social network sites with users in the hundreds of thousands, you're going to want to hire a dedicated specialist full time, who will spend months analyzing your architecture's bottlenecks, most likely rewriting your frontend stack dramatically, improving caching in every step, optimizing or eliminating critical API endpoints, rebuilding your static asset server(s), and training your developers in performance best practices.
(Full disclosure: I am that kind of specialist)
But for anything like a personal site or a hobby project, or even a small business site, just use the gtmetrix scanner (or the standalone YSlow and Page Speed browser extensions) and follow the advice one best practice at a time.
And have fun with it!
