Your phone is not rooted. You simply do not understand the analytic data as it is not intended for user interpretations. The purpose of the analytics logs is for when they are requested by an Apple Engineer after a Support Ticket has been opened for an issue reported to Apple Support.
There are many words or phrases that will mean nothing to you, and root access as referred to in the analytics is the basic access permissions used for any UNIX based operating system. The underpinnings of iOS are based on UNIX that was developed in the 1970's. Don't be surprised when you come across the Pegasus.framework. No it does not mean your phone has pegasus spyware installed, it is an Apple Framework that has been part of iOS long before there was ever any such thing as Pegasus Spyware.
My recommendation is to get rid of Avast. It cannot scan your iPhone for any virus as there is no access to your file system. That is the same reason why there are no viruses that can be installed on any of the System files. In addition, do not bother with any of the Analytic Logs. If you have an issue with your phone, describe what that problem is here.