Reconfigurable intelligent surface (RIS) for wireless networks has emerged as a promising future transmission technique to create smart radio environments that improve the system performance by turning the wireless channel into an adjustable system block. However, transceivers come with various hardware impairments, such as phase noise and in-phase/quadrature-phase imbalance (IQI). Hence, for robust configuration of RIS-based communication under practical conditions, assuming the identical performance analysis when subject to IQI, will lead to inaccurate analysis. In this paper, the implementation of this novel transmission technique is thoroughly investigated under intensive realistic circumstances. For this purpose, based on the maximum likelihood (ML) detector, a novel analytical expression of average pairwise error probability under IQI is proposed and compared to the standard ML detector. Further, the proposed analytical approaches are confirmed by numerical simulations.