Why product is not showing on a frontend category page?

Hello ,
i am trying to display the product in product category page and i also assigned the product to category programmatically, so back-end is working but product is not showing on front-end.

The product could be:

  • out of stock
  • is not assigned to the current store
  • has an improper visibility

Thanks for reply Dmitry Fedyuk.