=== Topirank Integration ===
Contributors: topirank
Tags: seo, posts, parsing
Requires at least: 6.0
Tested up to: 6.8
Stable tag: 2.0.2
Requires PHP: 7.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This plugin parses and imports posts generated by external applications into your WordPress site.

== Description ==

Save time and streamline the process of managing automatically generated content. Import structured data such as ZIP archives and convert them into posts effortlessly.

== Features ==
- Parses structured data (ZIP).
- Saves time by automating content imports.
- Seamlessly integrates with WordPress posts.
- Supports manual and API-based imports.
- Dynamically connects to external applications for data exchange.

== How to use ==
1. Install and activate the plugin.
2. Configure and generate a token.
3. Upload archives manually or connect to your application's data source.
4. Start the parsing process manually or trigger it from the external application.

== External Services ==

This plugin provides API endpoints for interacting with the Topirank application. All operations are initiated by the application or through manual uploads.

### Integration with the Topirank application:
1. **Availability Check**:
   - The Topirank application can send a request to the `/ping` endpoint to check if the plugin is active and functioning.

2. **Post Import**:
   - The application sends a ZIP archive with post data through an API endpoint. Alternatively, users can download the archive from the application and upload it manually via the WordPress admin panel.

3. **Local Processing**:
   - The plugin temporarily stores the archive in `uploads/topirank-import-files`.
   - After extraction, the files are organized into `uploads/topirank` with separate directories for `CSS`, `JS`, and `Font`.
   - The original archive is deleted after successful processing.

4. **Frontend Integration**:
   - The extracted files are dynamically linked to WordPress posts for styling and functionality.

### Data Handling:
- **Sent Data**: The plugin does not send any data to the Topirank application.
- **Received Data**: ZIP archives containing post data and an authentication token.

### Privacy:
- The plugin does not initiate any outgoing requests.
- All data is processed locally on the WordPress server.
- Temporary archives are automatically deleted after processing.

== Frequently Asked Questions ==

= Is it compatible with caching plugins? =
Yes, tested and verified with:
- LiteSpeed Cache
- WP Rocket
- W3 Total Cache
- LWS Optimize

== Changelog ==

= 2.0.2 =
- The plugin structure has been changed.
- Parsing optimized.
- Changes to admin page.

= 2.0.1 =
- Added version display.
- Fixed problem with internal links.
- Fixed problem with API requests.

= 2.0 =
- Refactored data upload functionality (manual and via API).
- Improved process logging.
- Added server availability check for new requests.
- Resolved timeout() handling issue.
- Updated parser behavior.
- Fixed HTML parsing errors.
- Enhanced CPT selection functionality.
- Redesigned admin UI with visual controls.
- Rebuilt post skip and update logic.
- Improved error logging.
- Tested with WordPress version 6.8


= 1.1.6 =
* Fixed PHP Warning messages under certain server configurations.
* Optimized the frontend JavaScript script (reduced size and improved loading).
* Successfully tested for compatibility with caching plugins:
  - LiteSpeed Cache
  - WP Rocket
  - W3 Total Cache
  - LWS Optimize

= 1.1.5 =
* Bug fixing.

= 1.1.4 =
* Fixed an issue with the progress bar display.
* Fixed SEO image rendering.
* Fixed JS file loading.
* Improved support for two page types.
* Improved rendering of new widgets on pages.

= 1.1.3 =
* Added distribution functionality to 2 post types.

= 1.1.2 =
* Adding a new page type.
* Optimizing the performance of a new type of page.

= 1.1.1 =
* Optimize JS file inclusion.

= 1.1 =
* Optimized parsing.
* Improved compatibility with themes.
* Fixed issues with JS file inclusion.
* Enhanced font integration.
* Optimized theme style integration in posts.

= 1.0.8 =
* Improved article styling.
* Enhanced performance in parsing.
* Improved style selection functionality.

= 1.0.7 =
* Improved work with media.

= 1.0.6 =
* Improved update posts functionality.

= 1.0.5 =
* Minor admin panel style fixes.
* Minor post style fixes.
* Improved template handling.

= 1.0.4 =
* Improved large file upload functionality via the application.
* Fixed parsing issues with HTML pages.
* Resolved timeout error issues.
* Optimized parsing speed for better performance.
* Fixed various SEO-related bugs.

= 1.0.3 =

* Optimized the archive processing speed for faster imports.
* Tested and verified compatibility with PHP versions 7.3 to 8.3.

= 1.0.2 =
* Optimized the archive processing speed for faster imports.
* Improved the style selection mechanism for better flexibility.
* Enhanced admin interface for easier editing and management.

= 1.0.1 =
* Added automatic deletion of associated media when posts are deleted.

= 1.0 =
* Initial release.
