The main criteria for determining fork fit are:
- steerer tube diameter (1" or 1 1/8")
- steerer tube length
- steerer tube type (threaded or threadless)
- wheel size
- brake type
Suspension travel can also come into play as the frame was designed for a fork of a given length. Deviating from this length by adding or subtracting suspension travel can affect the handling characteristics. How much it will affect it is a subject of much debate. I think if you stay with 20mm of stock you are most likely ok.
The fork on your bike appears in the photos to be a 1-1/8 inch steerer and at the price point it sells at it is most likely a straight steerer, (some are 1-1/2" at the crown and 1-1/8" at the top). The disc brakes are a match as is the wheel size. The XCR is a step up from the Zoom fork listed as the stock piece for your bike, but it is still considered an entry level fork. As long as you limit it to entry level abuse it should work fine.
The advantage of a spring fork over a rigid fork is you gain some compression dampening. The fork compresses to absorb impacts and vibration. You generally don't get any rebound dampening. The fork will extend at the same rate it compressed. A hydraulic fork can give you controlled compression and controlled extension.