In the google search console detection, these two problems appeared, but my website has these two functions（I installed the comment plugin）, but why is it still warning?
Hope someone can answer it, thank you
Those warnings show up when you have product schema, but no aggregateRating or review defined within.
There's a few schema apps that can take care of it for you, otherwise edit the theme code and manually edit schema. Depends on how your theme is coded as to how to go about this.
The reason you should fix this isn't to remove the "warnings" in GSC. The actual benefit to having product reviews correctly setup in schema is that you can get organic ratings displayed which can help organic CTR.