remark: an open dense set of all polynomials of given degree consists of irreducible ones.
a nice criterion for irreducibility of polynomials of two variables is "non singularity".
i.e. if a polynomial f(x,y) has no roots in common with its two partials fx, and fy, and ifn this is also true for both alternative dehomogenizatrions of f, i.e. if it is also true at "infinity", then f is irreduible.
to find another dehomogenization of f, write f(x,y) as f(u/w,v/w) and multiply by w^d where d is the degree of f. this gives the homogeneous version of f, as as homogeneoius polynomial in three variables.
then to dehomogenize f again, just set either u, v, or w equal to 1. for example note that setting w equal to one gives back the original f.
it would also suffice to check that the three partials of the homogenous version have no common zeros except for (0,0,0).
the principle behind this criterion is "bezout's theorem". i.e. if a polynomial is reducible, then its set of zeroes has two components which must meet in the extended plane, at a point where the partials must vanish.
of course this criterion is not necessary and hence often fails. since many singular polynomials are also irreducible. in general irreducibility is hard to check.
example: to prove that x^3 + y^3 + 1 is irreducible, we homogeneize it as
[(u/w)^3 + (v/w)^3 + 1] w^3 = u^3 + v^3 + w^3.
The three partials are 3u^2, 3v^2, and 3w^2, which have only the common zero (0,0,0).