Network analysis identified 5 core compounds (Quercetin, Kaempferol, beta-Sitosterol, Isocorypalmine, Stigmasterol) and 8 core proteins (AKT1, ESR1, TP53, IL6, JUN, MYC, TNF, EGFR) that play pivotal roles in the treatment of UC and T2DM by WMP. This evidence concerns the gene TNF and type 2 diabetes mellitus.