Background: Food safety of locally processed agro-food products is a major public health concern in resource-limited settings; in Burkina Faso’s Mouhoun Loop, shea butter, soumbala, honey and other traditional products are key income and nutrition sources for thousands of households, yet their sanitary quality has remained largely undocumented at the production-unit level. Methods: This cross-sectional study assessed microbiological and physicochemical quality across nine commodity chains in 107 production units in six provinces, alongside socio-economic profiling. Parameters included moisture, free acidity, peroxide index, total aerobic mesophilic count, total coliforms, and yeasts/moulds, assessed against the Codex Regional Standard for Unrefined Shea Butter (CXS 325R-2017) and other applicable Codex standards. Statistical analysis included Mann-Whitney U tests with rank-biserial effect sizes, Kruskal-Wallis tests, Spearman correlation, PCA, Random Forest variable-importance modelling, Firth penalised logistic regression and leave-one-out cross-validated ROC analysis. Results: Overall compliance was 73.8% (79/107). Non-compliance (26.2%, n = 28) was exclusive to shea butter (84.8%; 28/33) and driven almost entirely by residual moisture exceeding the Category II regional limit (non-compliant mean 0.37% vs. compliant mean 0.17%; Mann-Whitney U = 140, p < 0.0001, rank-biserial r = − 1.00); free acidity and peroxide index were fully compliant across all 33 units. Random Forest confirmed moisture’s dominance (Gini importance = 59.1%), and Firth logistic regression identified it as the sole significant determinant of non-compliance (OR = 17.5 per SD; p = 0.020). Leave-one-out ROC analysis achieved AUC = 1.00, reflecting internal consistency (compliance is itself defined by a moisture cut-off) rather than independent predictive validity; the empirical 0.22% Youden cut-point, being above the 0.20% regulatory limit, is not proposed as an operational threshold. Non-compliance was widespread across provinces (50–100% of units) rather than geographically confined, and affected the chain receiving the largest programme investment share (37%); funded-unit members were predominantly women (78.1%) and youth (50.3%). Conclusions: Sanitary non-compliance is concentrated in a specific, addressable aspect of shea-butter drying and clarification practice rather than distributed evenly across chains; this cross-sectional study did not assess hygiene practices directly or include a comparison group, so no claim is made about prior training effectiveness. Continued use of the existing 0.20% regulatory moisture limit, alongside targeted drying and packaging interventions for shea butter, is recommended.Keywords: shea butter; residual moisture; sanitary compliance; Random Forest; Burkina Faso.