PSModuleQuantityAnalyzer
2026.11.26.1366
PSModuleQuantityAnalyzer performs static analysis of PowerShell modules, including their nested modules, and returns metrics about size, complexity, documentation coverage, dependencies and architecture. It finds unused private functions, duplicates and refactoring candidates and exports the results as Markdown or CSV reports.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2026 Holger Zimmermann
Package Details
Author(s)
- Holger Zimmermann | zimmermann.holger@live.de
Tags
PowerShell Module Metrics StaticAnalysis AST CodeQuality Maintainability Complexity Documentation Dependencies Report
Functions
Get-PSModuleQuantity Get-PSModuleSummary Get-PSModuleMetrics Get-PSModuleHealth Get-PSModuleDuplicateFunctions Get-PSModuleLargestFunctions Get-PSModuleDocumentationCoverage Get-PSModuleDependencyGraph Get-PSModuleNestedModules Get-PSModuleNestedDependencies Get-PSModuleComplexity Get-PSModuleUsedVerbs Get-PSModuleUnusedPrivateFunctions Get-PSModuleRefactoringCandidates Get-PSModuleDependencies Export-PSModuleQuantityReport Export-PSModuleMarkdownReport Checkpoint-PSModuleVersion Set-NuGetApiKey Publish-QAModule
PSEditions
Dependencies
This module has no dependencies.
Release Notes
2026.11.26.574
- Added the Docs folder with one guide per public command.
- Get-PSModuleSummary counts files and functions in subfolders (for example Private\ASP07). Public and Private are decided by the path below the module root, so folders above the module no longer matter.
- Get-PSModuleSummary has the new properties DateOfAnalysis, HtmlFiles, MarkdownFiles and GraphicFiles, and appends every call to $env:LOCALAPPDATA\Get-PSModuleSummary.csv as a history for later evaluation.
- Get-PSModuleSummary -ShowHistory opens that history in Out-GridView. -NoHistory returns the summary without a history row; Get-PSModuleMetrics and Export-PSModuleMarkdownReport use it internally.
- Get-PSModuleQuantity has the new property RelativePath. References also count function names written as quoted text and calls in .psm1 files, which removes false unused private functions.
- Get-PSModuleDependencies was rewritten: it finds Import-Module, using module and #requires -Modules with the PowerShell parser, reads the manifest as data instead of running it, accepts a module name or a manifest path, and no longer fails on every call.
- Get-PSModuleComplexity also counts elseif, do/until, every switch case, trap, -and / -or / -xor, the ternary operator and pipeline chains, and counts nested functions separately. Scores are higher than in earlier versions.
- Get-PSModuleHealth reports UnusedFunctions for private functions only.
- Get-PSModuleRefactoringCandidates: the rules UnusedPrivateFunction and NoDocumentation work now.
- Export-PSModuleQuantityReport writes to .\ModuleAnalysis.csv by default. No more warning about -NoTypeInformation in PowerShell 7.
- A warning names files that the running PowerShell version cannot parse completely, for example PowerShell 7 code analyzed in Windows PowerShell 5.1.
- Faster module import: the manifest is read as data.
2026.11.23.479
- Checkpoint-PSModuleVersion creates a verified backup of a module working tree, raises the module version and keeps the version information in the project files consistent.
- Optionally it commits, pushes, creates a branch or builds a release folder.
- Runs in Windows PowerShell 5.1 and in PowerShell 7.
2026.10.26.1048
- Get-PSModuleSummary now returns the number of duplicate function names in DoubleFunctionPairs
v2026.10.7.652
- Added Get-PSModuleNestedModules: version, function counts and line metrics for the main module and each nested module
- Added Get-PSModuleNestedDependencies: function calls between the main module and its nested modules
- Get-PSModuleQuantity returns the new property NestedModule ((main) for the module itself)
- Verified with Windows PowerShell 5.1 and PowerShell 7
v2026.6.24.721
- Minor bug fixes and performance improvements
v2026.6.16.1201
- Added Get-PSModuleDependencies: explicit (manifest), implicit (code) and transitive module dependencies
- Optional version compatibility check, output as object, console or JSON
v2026.5.8.632
- Added Get-PSModuleUsedVerbs: verbs used by the functions of a module, with count
v2026.3.22.1040
- Minor bug fixes and performance improvements
v2026.3.14.420
- Initial release on the PowerShell Gallery
- Added Export-PSModuleQuantityReport: export function metrics to a CSV file
- Added Export-PSModuleMarkdownReport: export a full analysis report as Markdown
v2026.3.11.1221
- First version with the core analysis functions
- Added Get-PSModuleQuantity, Get-PSModuleSummary, Get-PSModuleMetrics, Get-PSModuleHealth
- Added Get-PSModuleDuplicateFunctions, Get-PSModuleLargestFunctions
FileList
- PSModuleQuantityAnalyzer.nuspec
- Assets\icon.png
- Docs\Checkpoint-PSModuleVersion.md
- Docs\Export-PSModuleMarkdownReport.md
- Docs\Export-PSModuleQuantityReport.md
- Docs\Get-PSModuleComplexity.md
- Docs\Get-PSModuleDependencies.md
- Docs\Get-PSModuleDependencyGraph.md
- Docs\Get-PSModuleDocumentationCoverage.md
- Docs\Get-PSModuleDuplicateFunctions.md
- Docs\Get-PSModuleHealth.md
- Docs\Get-PSModuleLargestFunctions.md
- Docs\Get-PSModuleMetrics.md
- Docs\Get-PSModuleNestedDependencies.md
- Docs\Get-PSModuleNestedModules.md
- Docs\Get-PSModuleQuantity.md
- Docs\Get-PSModuleRefactoringCandidates.md
- Docs\Get-PSModuleSummary.md
- Docs\Get-PSModuleUnusedPrivateFunctions.md
- Docs\Get-PSModuleUsedVerbs.md
- Docs\README.md
- Example\ModuleAnalysis_PSModuleQuantityAnalyzer_2026.3.13.420.md
- LICENSE
- PSModuleQuantityAnalyzer.psd1
- PSModuleQuantityAnalyzer.psm1
- Private\Copy-PSModuleVerifiedSnapshot.ps1
- Private\Format-PSModuleDependencyOutput.ps1
- Private\Get-PSFunctionDefinitions.ps1
- Private\Get-PSHelpTopics.ps1
- Private\Get-PSModuleAstCache.ps1
- Private\Get-PSModuleCodeDependencies.ps1
- Private\Get-PSModuleFileScope.ps1
- Private\Get-PSModuleManifestDependencies.ps1
- Private\Get-PSModuleNestedRoots.ps1
- Private\Get-PSModuleReferenceMap.ps1
- Private\Get-PSModuleSnapshotFiles.ps1
- Private\Get-PSModuleSourceFiles.ps1
- Private\Get-PSModuleTransitiveDependencies.ps1
- Private\Invoke-Output.ps1
- Private\Invoke-PSModuleGit.ps1
- Private\Measure-PSFunctionLines.ps1
- Private\Move-PSModuleLegacyBackups.ps1
- Private\New-PSModuleBackupArchives.ps1
- Private\New-PSModuleDependencyRecord.ps1
- Private\Show-PiskelFile.ps1
- Private\Write-Syntax.ps1
- Public\Checkpoint-PSModuleVersion.ps1
- Public\Export-PSModuleMarkDownReport.ps1
- Public\Export-PSModuleQuantityReport.ps1
- Public\Get-PSModuleComplexity.ps1
- Public\Get-PSModuleDependencies.ps1
- Public\Get-PSModuleDependencyGraph.ps1
- Public\Get-PSModuleDocumentationCoverage.ps1
- Public\Get-PSModuleDuplicateFunctions.ps1
- Public\Get-PSModuleHealth.ps1
- Public\Get-PSModuleLargestFunctions.ps1
- Public\Get-PSModuleMetrics.ps1
- Public\Get-PSModuleNestedDependencies.ps1
- Public\Get-PSModuleNestedModules.ps1
- Public\Get-PSModuleQuantity.ps1
- Public\Get-PSModuleRefactoringCandidates.ps1
- Public\Get-PSModuleSummary.ps1
- Public\Get-PSModuleUnusedPrivateFunctions.ps1
- Public\Get-PSModuleUsedVerbs.ps1
- Public\Publish-QAModule.ps1
- Public\Set-NuGetApiKey.ps1
- README.md
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 2026.11.26.1366 (current version) | 10 | 11/26/2026 |
| 2026.11.23.479 | 13 | 11/23/2026 |
| 2026.10.26.1048 | 34 | 10/26/2026 |
| 2026.10.7.652 | 27 | 10/7/2026 |
| 2026.5.8.632 | 79 | 5/8/2026 |
| 2026.3.22.1040 | 21 | 3/23/2026 |
| 2026.3.13.420 | 14 | 3/13/2026 |