Classes

Coverage Distribution

Complexity

Methods

Coverage Distribution

Complexity

Insufficient Coverage

Method Coverage
__construct0%
destroyStaging0%
error0%
warning0%
info0%
success0%
bold_heading0%
table0%
get_admin_user_id0%
render0%
__invoke0%
switchTo0%
getContentCopyStatus0%
new_line0%
advanceContentCopy0%
getDeployStatus0%
deployToProduction0%
cloneProductionToStaging0%
createStaging0%
render_staging_repair_notice0%
should_run_health_check_on_this_request0%
run_staging_health_check0%
clean_log0%
render_log_admin_page0%
add_log_admin_page0%
colorize_log0%
log_to_json0%
destroyStaging0%
repair_staging_site0%
select_staging_directory0%
discover_staging_directories0%
handle_staging_redirect0%
tools_staging0%
add_management_page0%
add_staging_toolbar_items0%
add_nfd_subnav0%
init0%
update_environment0%
merge_config_with_expected0%
initialize0%
confirm0%
releaseIfOurs0%
pidIsRunning0%
heldByOwnLiveProcess0%
refresh0%
heldByOther0%
holds0%
isValidToken0%
parse0%
read0%
path0%
__construct0%
check_bootstrap0%
switchTo0%
unscheduleContentCopyCron0%
loadTextDomain0%
isProduction0%
isStaging0%
isEnvironment0%
getStagingScreenshotUrl0%
getProductionScreenshotUrl0%
getEnvironment0%
getCreationDate0%
getStagingUrl0%
getInstance0%
register_staging_assets0%
cloneProductionToStaging0%
initialize_staging_app0%
confirm_jetpack_safe_mode0%
isIgnorable0%
delete0%
exists0%
cleanup0%
isDone0%
toArray0%
delete0%
isInProgress0%
stagingExists0%
getProductionUrl0%
compatibilityCheck0%
runContentCopyCron0%
createStaging0%
scheduleContentCopyCron0%
maybeScheduleContentCopyCron0%
build_config_for_production_site0%
deployToProduction0%
getContentCopyStatus0%
redeclare_message27%
persist_auth_token27%
randomToken33%
verbMessage40%
log_directory40%
create_function_message41%
advance46%
advanceContentCopy50%
build_config_for_staging_site51%
acquireDeployLock52%
spawnDetachedStagingScript55%
repair_production_site57%
advance58%
save60%
saveState63%
ensureDirectory64%
startAsyncDeploy66%
is_valid_staging_config66%
is_staging_abspath66%
__construct68%
getDeployCommandStatus68%
resolveProductionTablePrefix69%
generic_message70%
copyOne72%
getProductionDir75%
__construct75%
parseLogLineTimestamp75%
runCopyPhase75%
parseStagingScriptResponse77%
fix_swapped_urls77%
runCommand78%
isDeployInProgress80%
load80%
phaseStatus80%
writeDeployResult80%
getContentCopyController83%
log83%
applyDirModeFromSource83%
openAt83%
runBurst85%
maybe_repair85%
parseLine85%
config_has_swapped_urls85%
getScriptEnvironment85%
isDeployLockHeld85%
extract_components86%
readDeployResult87%
getDeployStatusFromLog88%
getDeployTypeArgs88%
parse_staging_from_url89%
walk89%

Project Risks

Method CRAP
__invoke506
merge_config_with_expected210
repair_staging_site182
render_log_admin_page110
copyOne95
refresh90
parse90
pidIsRunning72
confirm72
render72
repair_production_site55
advance49
should_run_health_check_on_this_request42
releaseIfOurs42
switchTo42
runCommand39
runCopyPhase34
get_admin_user_id30
register_staging_assets30
build_config_for_production_site30
colorize_log30
run_staging_health_check30
discover_staging_directories30
select_staging_directory30
walk29
redeclare_message25
maybeScheduleContentCopyCron20
table20
heldByOther20
cloneProductionToStaging20
handle_staging_redirect20
isStaging20
heldByOwnLiveProcess20
getDeployCommandStatus18
ensureDirectory16
parseStagingScriptResponse13
parseLine13
runBurst13
build_config_for_staging_site12
save12
holds12
error12
log_to_json12
render_staging_repair_notice12
add_staging_toolbar_items12
read12
check_bootstrap12
__construct12
createStaging12
confirm_jetpack_safe_mode12
isInProgress12
deployToProduction12
getDeployStatusFromLog11
is_valid_staging_config10
resolveProductionTablePrefix9
fix_swapped_urls8
advance8
saveState7
acquireDeployLock7
verbMessage7
log_directory7
isDeployInProgress7
spawnDetachedStagingScript7
create_function_message7
parse_staging_from_url7
persist_auth_token6
config_has_swapped_urls6
clean_log6
cleanup6
destroyStaging6
isValidToken6
getProductionUrl6
isProduction6
stagingExists6
getContentCopyStatus6
success6
delete6
runContentCopyCron6
delete6
scheduleContentCopyCron6
createStaging6
unscheduleContentCopyCron6
initialize6
load5
getScriptEnvironment5
extract_components5
generic_message4
phaseStatus4
log4
readDeployResult4
randomToken3
parseLogLineTimestamp3
openAt3
applyDirModeFromSource3
maybe_repair3
isDeployLockHeld3
advanceContentCopy2
is_staging_abspath2
startAsyncDeploy2
getProductionDir2
__construct2
writeDeployResult2
getContentCopyController2