1. Avoiding JS Exceptions
JavaScript exceptions may prevent the program's interactions from proceeding. We should aim for zero exceptions to ensure high robustness and high availability of the program.
Scoring Condition: No JS exceptions occur
2. Avoid Network Request Exceptions
Failed requests may prevent program interactions from proceeding, so it is essential to ensure that all requests succeed.
Scoring Criteria: All authorized network requests return successfully; unauthorized network requests must return either a 401 or 403 status code
3. Do Not Use Deprecated Interfaces
Using interfaces that are slated for deprecation or have already been deprecated may cause Mini Program to malfunction. Generally, interfaces are not removed immediately, but to be safe, it is recommended to avoid using them to prevent sudden Mini Program failures in the future.
Scoring Criteria: Do not use any interfaces marked as deprecated in the documentation
4. Using HTTPS
By using HTTPS, your Mini Program is kept more secure. HTTP, on the other hand, transmits data in plaintext, posing a risk of content tampering.
Scoring Criteria: All network requests use HTTPS
5. Avoid setData Data Redundancy
The setData operation triggers the framework to perform tasks related to UI rendering. An unbound variable implies it is irrelevant to interface rendering, and passing it to setData causes unnecessary performance overhead.
Scoring Condition: All data passed to setData must have relevant dependencies in template rendering
6. Minimum Base Library Version
If the supported version of the components/APIs you use is greater than the configured minimum base library version for online release, the corresponding features may become unavailable. Developers can resolve this issue by adjusting the minimum base library version or by ensuring code compatibility.
Since users can resolve this issue through code compatibility, this metric serves only as a reminder in the scoring and is not included in the total score.
Criterion: The supported version of the components/APIs you use is not greater than the configured minimum base library version for online release
7. Remove Inaccessible Pages
The package size of Mini Program affects load time. You should minimize the package size as much as possible and avoid bundling unused files.
Since this metric depends on the developer's operation path, it serves only as a reminder for scoring and is not included in the total score.
Criteria: No inaccessible pages are bundled into Mini Program
8. WXSS Usage Rate
You should import WXSS resources on demand. If Mini Program contains a large number of unused styles, it will increase the size of the Mini Program package, thereby affecting the loading speed to some extent.
Since this metric depends on the developer's operation path, it is only used as a reminder in the score and is not included in the total score.
Criteria: The unused portion of each WXSS resource does not exceed 2KB
9. Timely timer reclamation
Timers are global and are not bound to specific pages. After Mini Program routes from one page to another, you should manually reclaim the timers on the previous page.
Since this metric depends on the developer's operation path, it serves only as a reminder for scoring and is not included in the total score.
Criteria: The page where all timer callbacks execute must be the same as the page where the timers were set