Libscore scans the top million sites on the web to collect stats on JavaScript library usage. It has been around for a while, and this article goes into more how it works.
You can dig into individual scripts, like for this one from s0.wp.com (the most popular WordPress-only script), which is used on ~45,000 of the top million sites — a bit lower than I’d expect.