Scoring Method

Currently, there are 23 rules for experience scoring, divided into three categories: Performance, Experience, and Best Practices. Satisfying the rule requirements earns a score of 100 points, otherwise, the score is 0 points. Finally, the total score is calculated based on the weights of each rule and the formula.

Formula for Calculating Total Score

  1. Multiply the score of each item by its corresponding weight.
  2. Add up all the products to get the total weighted score.
  3. Add up all the weights to get the total weight.
  4. Divide the total weighted score by the total weight to get the weighted average score.

The formula can be expressed in data as:

\text{Total Score} = \frac{\sum_{i=1}^{n} Score_i \cdot Weight_i}{\sum_{i=1}^{n} Weight_i}

Notes

Rules with a weight of 0 do not participate in scoring and are only Note. Rules that are not met in the detection process will not participate in scoring. The scoring conditions for each rule may also be adjusted with the version update of the IDE.

Weights

Performance

RuleWeight
FMP(First Meaningful Paint)10
Rendering Time3
Page Minimum Frame Rate5
Script Execution Time5
setData Call Frequency6
setData Data Size8
TYML Node Count6
Network Request Duration7
Network Concurrent Requests5
Image Requests5
Image Size Detection4
Miniapp Package Size8
TTT Interaction Frequency8

Experience

RuleWeight
Whether to use APP theme variables5
Whether to adapt dark mode5
Multilingual Usage10
Clickable Element Response Area6
Security Area Compatibility5

Best Practices

RuleWeight
JS Exception Detection8
Use HTTPS1
Package Image Detection3
Image Domain Compliance1
DP Report Frequency Detection1

Rule Description

The detailed rule descriptions can be referenced in the following documents: