Piwik is free open source software for recording the use of Web sites and analysing the results. I tested Piwik 2.13.1 with Drupal 7 Web sites.
Drupal code efficiency? There is some. Open source projects gather code of various designs. Drupal emphasises long development times, fashion, and politics over efficiency of code. Occasionally there are attempts at retrofitting efficiency. Expect a Drupal Web site to chew up more computer resources and less human resources, with the saving in human resources far outweighing the slight extra cost of processing a page request.
One $(document).ready() is faster than multiple uses of $(document).ready() but do not believe me, see the proof.
How far can Apple drift out of reality before the media starts to question the lies? Apple did not invent the smartphone or thin notebooks or tablets or a healthy watch. Due to Apple's hundreds of millions of advertising dollars, Apple can say anything it likes and not be questioned by anyone in the media.