The Purcell effect is defined as a modification of the spontaneous emission rate of a quantum emitter at the presence of a resonant cavity. However, a change of the emission rate of an emitter caused by an environment has a classical counterpart. Any small antenna tuned to a resonance can be described as an oscillator with radiative losses, and the effect of the environment on its radiation can be modeled and measured in terms of the antenna radiation resistance, similar to a quantum emitter. We exploit this analogue behavior to develop a general approach for calculating the Purcell factors of different systems and various frequency ranges including both electric and magnetic Purcell factors. Our approach is illustrated by a general equivalent scheme, and it allows resenting the Purcell factor through the continuous radiation of a small antenna at the presence of an electromagnetic environment.