Big Silicon Valley tech companies may soon need to offer more than free food and ping-pong tables to keep their workers happy, according to a new report.

Ten of the 31 tech companies on Glassdoor’s latest list of the nation’s 100 best places to work saw their positions slide from last year.

Social media giant Facebook slid from its perch at No. 7 to the 23rd slot despite its cushy Silicon Valley campus, while Google fell out of the top 10, dropping 3 spots to No. 11.

San Francisco-based software provider Salesforce — known for its “Ohana” corporate culture emphasizing trust and equality — fell 23 spots to No. 34 on the 2020 ranking released Tuesday night. Accounting software firm Intuit fell 32 spots to No. 70, while business software giant SAP dropped 21 spots to No. 48.

Tech still ended up at the top of Glassdoor’s ranking, however, thanks to Massachusetts-based marketing software firm HubSpot, which climbed 15 spots to snag the No. 1 honor for the first time this year.

Second place went to Boston consulting firm Bain & Co., followed by DocuSign and In-N-Out Burger.

The tech industry’s overall drop may stem from its rapid growth, which has led to a jump in public scrutiny in recent years, according to Amanda Stansell, a senior economic research analyst at Glassdoor.

“Especially for these tech giants, as they continue to grow we’ve seen that sometimes culture can get diluted,” Stansell said. “And while the culture at these companies is still really strong, there are some growing pains.”

Google faces a complaint to the National Labor Relations Board after firing four workers who were involved in labor organizing. The company is also facing antitrust probes in the US and the European Union over its advertising and data collection practices, respectively.

Facebook has faced criticism since revelations that the consulting firm Cambridge Analytica used millions of users’ data for political ads. And CEO Mark Zuckerberg recently caught heat from employees over his decision to keep false and misleading ads on the platform.

Tech employees have had to grapple with company politics and layers of approvals as they try to address problems that have surfaced in the public arena, Stansell said. But she noted that many tech firms are still among the nation’s best large workplaces despite their issues.

“Culture is a thing that can easily deteriorate, so while they may have dropped a little bit this year, their employees and their culture are something that they continually invest in,” Stansell said.

Glassdoor’s annual ranking is based on anonymous reviews employees submit to the No. 2 US job site. Large companies that make the list must have at least 1,000 employees at the end of the eligibility period and at least 75 ratings across eight workplace attributes, according to Glassdoor.

Facebook, Google, Salesforce, SAP and Intuit did not immediately respond to requests for comment.