Buld me a PHP Script & Wordpress Plugin

Job ID: 33140838

Budget: $10 – $30 USD

i need a php script that :
1- remove item if detected_lang is not "en"
2- remove item if it has "Archives" on it
3- on title tag remove the text " - Todayprimenews" and " | TPN" and " - todayprimenews"
4- extract original_path and if it has like this "/crypto-currency/gno-city-play-to-earn-game-created-the-biggest-and-most-diverse-wax-blockchain-game-sponsored-bitcoin-news/" for ex than make a new tag in item with "<category domain="category" nicename="crypto-currency"><![CDATA[Crypto Currency]]></category>"
AND IF it is like "/news/health/community-health-systems-posts-311m-profit-in-q4/" the tag will be "<category domain="category" nicename="health"><![CDATA[Health]]></category>"
so it gets only the subcategory if it exists and category if subcategory doesn't exist (if it has 4 / than it has a subcategory else not) you can use explode for this
5- for each item get the original_path and from it get the parent category and subcategory and display them in the webpage as json data, like news: health... , crypto currency:... each parent has it's own child
and a wordpress plugin that auto adds categories from a json list, the json list is the one extracted from step 5 on the xml file
Related categories: PHP XML WordPress MySQL