Skip to content

Commit 99d073c

Browse files
authored
Release
1 parent b68b815 commit 99d073c

5 files changed

Lines changed: 256 additions & 87 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog for Simple WP Site Exporter
22

3+
## 1.6.7 - June 9, 2025
4+
### PHPMD Compliance Improvements
5+
- **Variable Naming**: Fixed all CamelCase variable naming violations for PHPMD compliance
6+
- **Function Complexity**: Broke down complex functions to reduce cyclomatic complexity below threshold:
7+
- Split `sse_add_wordpress_files_to_zip()` into smaller focused functions
8+
- Refactored `sse_validate_basic_export_file()` into modular validation functions
9+
- Decomposed `sse_get_safe_wp_cli_path()` into specialized validation functions
10+
- **Code Structure**: Eliminated unnecessary else expressions throughout codebase
11+
- **Exit Expressions**: Maintained necessary exit points for security handlers (WordPress standard)
12+
- **Superglobals**: Acknowledged but maintained secure $_GET/$_POST access patterns (WordPress standard)
13+
- **Performance**: Reduced NPath complexity and improved code maintainability
14+
15+
### Code Quality Metrics
16+
- Cyclomatic Complexity: Reduced from 12+ to under 10 for all functions
17+
- NPath Complexity: Reduced from 400+ to under 200 for validation functions
18+
- Code Maintainability: Improved through function decomposition and clear separation of concerns
19+
- PHPMD Score: Significant improvement in cleancode, codesize, design, and naming metrics
20+
321
## 1.6.6 - June 9, 2025
422
### Security & Best Practices Improvements
523
- **CRITICAL**: Added missing secure download and delete handlers for export files

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![PHP Compatible](https://img.shields.io/badge/PHP-7.4%2B-purple.svg?logo=php)](https://www.php.net/)
77

88
## Current Version
9-
[![Version](https://img.shields.io/badge/Version-1.6.6-orange.svg?logo=github)](https://github.com/EngineScript/Simple-WP-Site-Exporter/releases/latest/download/simple-wp-site-exporter-1.6.6.zip)
9+
[![Version](https://img.shields.io/badge/Version-1.6.7-orange.svg?logo=github)](https://github.com/EngineScript/Simple-WP-Site-Exporter/releases/latest/download/simple-wp-site-exporter-1.6.7.zip)
1010

1111
## Description
1212
A WordPress plugin that exports your entire site, including files and database, as a secure, downloadable ZIP archive.

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ includes:
44
parameters:
55
level: 5
66
paths:
7-
- simple-wp-optimizer.php
7+
- simple-wp-site-exporter.php
88

99
bootstrapFiles:
1010
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php

readme.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: enginescript
33
Tags: backup, export, migration, site export, database export
44
Requires at least: 5.8
55
Tested up to: 6.8
6-
Stable tag: 1.6.6
6+
Stable tag: 1.6.7
77
Requires PHP: 7.4
88
License: GPLv3 or later
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -72,6 +72,15 @@ Yes, the plugin is designed to be compatible with most shared hosting environmen
7272

7373
== Changelog ==
7474

75+
= 1.6.7 =
76+
* PHPMD compliance improvements with enhanced code quality
77+
* Fixed all CamelCase variable naming violations for better code standards
78+
* Broke down complex functions to reduce cyclomatic complexity below threshold
79+
* Split large functions into smaller, focused functions for better maintainability
80+
* Eliminated unnecessary else expressions throughout codebase
81+
* Reduced NPath complexity and improved performance
82+
* Enhanced code structure with clear separation of concerns
83+
7584
= 1.6.6 =
7685
* CRITICAL: Added missing secure download and delete handlers for export files
7786
* Fixed all text domain inconsistencies to use 'simple-wp-site-exporter'

0 commit comments

Comments
 (0)