Suppose, we have the following function $f(x)$:
Is there any way, without searching, we can test if this function has local optima or not?
Can we, say, test any property of this function, or, do some calculation to know this beforehand?
Note: Searching means applying some searching algorithms like the Bisection method, Newton's method, and so on.

It is a very well-known and often used fact that a differentiable function $g(x)$ satisfies
$g'(y) = \dfrac{dg(y)}{dy} = 0 \tag 1$
at any local maximum or minimum $y$; see this wikipedia page. If we apply this principle to the function at hand, which is a fourth-degree polynomial
$f(x) = ax^4 + bx^3 + cx^2 + dx + e \in \Bbb R[x], \tag 2$
we see that the extrema occur at those $y \in \Bbb R$ such that
$4ay^3 + 3by^2 + 2cy + d = f'(y) = 0; \tag 3$
since $f'(x)$ is a cubic, there is available to us an explicit method for finding its roots; therefore we can find the extrema of any quartic, real polynomial. Similarly, given a quintic polynomial $q(x)$, $q'(x)$ is a quartic to which we can apply algebraic methods; but if
$\deg f(x) \ge 6 \tag 4$
then
$\deg f'(x) \ge 5, \tag 5$
and there is in general no "algebraic method" for finding the zeroes of $f'(x)$. In the absence of such procedures, we are forced to turn to iterative techniques such as Newton's method, regula falsi, bisection, and so forth to find the zeroes of $f'(x)$. And having found them, we can of course evaluate $f''(x)$ to try and discover if they are maxima, minima, or inflection points.