standard_wp_dirs=("wp-admin" "wp-content" "wp-includes")

# 1. Identify non-standard directories to exclude
exclude_args=()
find_exclude_args=()

for dir in */ ; do
    dir=${dir%/} # Remove trailing slash
    # Check if the folder is NOT in the standard WP list
    if [[ ! " ${standard_wp_dirs[@]} " =~ " ${dir} " ]]; then
        exclude_args+=( "--exclude=$dir" )
        find_exclude_args+=( "-path" "./$dir" "-prune" "-o" )
    fi
done

echo "--- WordPress-only Usage Report ---"
echo "Target: $(pwd)"

# 2. Check Disk Usage
echo -n "Disk Usage: "
du -sh "${exclude_args[@]}" . | cut -f1

# 3. Check Inode Usage (File Count)
echo -n "Inode Usage (Files): "
find . "${find_exclude_args[@]}" -type f -print | wc -l
