In your original comment
> Also, it only forces companies to list the base salary, but especially in tech, that's just a portion of one's total comp.
"Total compensation" is, to me, a way to inflate one's own value.
1. In companies with no market for stock options (privately owned, startups, companies that are just absolutely worthless), equity is hypothetical money which may never be worth anything. I worked for a company which gave me 250,000 options but the company lost 18mil a year and they ended up cancelling all stock options. Some people worked there for 15 years hoping the options would be worth something and eventually saw them cancelled outright. Unless I'm working for a publicly traded company, I don't put much value in stock options. With a startup, you're basically asking to be paid in poker chips.
2. Health insurance is something I expect to be there, regardless of the monetary value.
3. I've worked for plenty of companies that include a 10% performance-based bonus as part of the compensation only to never get that bonus (or get nowhere near 10%) regardless of my own performance because the company itself didn't profit last quarter, or they did profit and just chose not to pay out bonuses.
4. The perks that you get (free breakfast burritos, free barrista, gym membership) are tokens that can (and will) be taken away as soon as the federal reserve decides to jack up rates on your company lays off 25% of the workforce in order to pay their CEO his 300mil compensation package
"Total compensation" means "base salary plus hypothetical money in a perfect universe"