- replace print statements with logging module
- refactor BASE_URL to be reusable and construct endpoint via f-string
- remove hardcoded comment status filter to rely on WordPress defaults
- improve error handling messages
- minor code cleanup and readability improvements