The intrinsic fluctuations, memory effects, and long-range color interactions in high-energy nuclear collisions imply the presence of non-Markovian processes in the fireball evolution, which affects the thermalization process toward equilibrium and produces a nonextensive behavior. In order to investigate the nonequilibrium effect on the quantum chromodynamics (QCD) phase transition at finite temperature () and chemical potential (), we apply a nonextensive correction to the equation of state in the parton (hadron resonance) gas at high (low) temperature and interpolate these two equations of state with a smooth crossover. The nonextensive statistics is characterized by a nonextensivity parameter , which measures the degrees of deviation from the thermal equilibrium. It is found that the dimensionless thermodynamic quantities such as the entropy density, the pressure, the energy density, the specific heat at constant volume, and the trace anomaly are sensitive to the deviation of from unity, and they become large in both the hadronic and quark-gluon plasma phases with the increase of . Moreover, this deviation leads to nontrivial corrections of the squared speed of sound [] in the vicinity of the critical point () and at lower temperatures. Additionally, these thermodynamic quantities are sensitive to the deviation of from zero. With increasing , they become enhanced in both phases. Specifically, for , the value increases near but decreases at lower temperatures. Finally, we observe that our results with agree well with those from lattice QCD, the hadron resonance gas model, and the thermal-fist fit to the hadron yields in high-energy nuclear collisions in the low-temperature region up to .