Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid - Version 1.13.5

Version Description

Release date: May 28th, 2020

  • Update: Create a restore log (like the backup log).
  • Update: Updated dependencies.
  • Bug fix: Avoid fatals on library issues.
  • Bug fix: Be more specific with data-toggle-target attribute.
Download this release

Release Info

Developer boldgrid
Plugin Icon 128x128 Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid
Version 1.13.5
Comparing to
See all releases

Code changes from version 1.13.5-alpha.4 to 1.13.5

admin/class-boldgrid-backup-admin-archive-fail.php CHANGED
@@ -150,11 +150,6 @@ class Boldgrid_Backup_Admin_Archive_Fail {
150
 
151
  $last_error = error_get_last();
152
 
153
- // Add a message to the log.
154
- if ( ! empty( $last_error ) ) {
155
- $this->core->logger->add( 'PHP shutdown - Error found: ' . print_r( $last_error, 1 ) ); // phpcs:ignore
156
- }
157
-
158
  /*
159
  * If there's no error or this is not fatal, abort.
160
  *
150
 
151
  $last_error = error_get_last();
152
 
 
 
 
 
 
153
  /*
154
  * If there's no error or this is not fatal, abort.
155
  *
admin/class-boldgrid-backup-admin-core.php CHANGED
@@ -540,6 +540,16 @@ class Boldgrid_Backup_Admin_Core {
540
  */
541
  public $restore_helper;
542
 
 
 
 
 
 
 
 
 
 
 
543
  /**
544
  * The scheduler class object.
545
  *
@@ -2224,27 +2234,29 @@ class Boldgrid_Backup_Admin_Core {
2224
  * @return array An array of archive file information.
2225
  */
2226
  public function restore_archive_file( $dryrun = false ) {
 
 
2227
  $this->logger->init( 'restore-' . time() . '.log' );
2228
  $this->logger->add( 'Restoration process initialized.' );
2229
  $this->logger->add_memory();
2230
 
 
2231
  Boldgrid_Backup_Admin_Utility::bump_memory_limit( '1G' );
2232
 
2233
- // If we have an error, add it to the log.
2234
- add_action( 'shutdown', array( $this->logger, 'add_last_error' ) );
2235
-
2236
  $restore_ok = true;
2237
 
2238
  // If a restoration was not requested, then abort.
2239
  if ( empty( $_POST['restore_now'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
2240
- $this->logger->add( 'Error: Restoration not requested.' );
2241
- return [ 'error' => esc_html__( 'Invalid restore_now value.', 'boldgrid-backup' ) ];
 
2242
  }
2243
 
2244
  // Check if functional.
2245
  if ( ! $this->test->run_functionality_tests() ) {
2246
- $this->logger->add( 'Error: Functionality tests fail.' );
2247
- return [ 'error' => esc_html__( 'Functionality tests fail.', 'boldgrid-backup' ) ];
 
2248
  }
2249
 
2250
  // Initialize variables.
@@ -2255,16 +2267,18 @@ class Boldgrid_Backup_Admin_Core {
2255
  if ( isset( $_POST['archive_key'] ) && is_numeric( $_POST['archive_key'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
2256
  $archive_key = (int) $_POST['archive_key'];
2257
  } else {
2258
- $this->logger->add( 'Error: Invalid key for the selected archive file.' );
2259
- return [ 'error' => esc_html__( 'Invalid key for the selected archive file.', 'boldgrid-backup' ) ];
 
2260
  }
2261
 
2262
  // Validate archive_filename.
2263
  if ( ! empty( $_POST['archive_filename'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
2264
  $archive_filename = sanitize_file_name( $_POST['archive_filename'] );
2265
  } else {
2266
- $this->logger->add( 'Error: Invalid filename for the selected archive file.' );
2267
- return [ 'error' => esc_html__( 'Invalid filename for the selected archive file.', 'boldgrid-backup' ) ];
 
2268
  }
2269
 
2270
  // Close any PHP session, so that another session can open during this restore operation.
@@ -2272,15 +2286,17 @@ class Boldgrid_Backup_Admin_Core {
2272
 
2273
  $archives = $this->get_archive_list( $archive_filename );
2274
  if ( empty( $archives ) ) {
2275
- $this->logger->add( 'Error: No archive files were found.' );
2276
- return [ 'error' => esc_html__( 'No archive files were found.', 'boldgrid-backup' ) ];
 
2277
  }
2278
 
2279
  $filename = ! empty( $archives[ $archive_key ]['filename'] ) ? $archives[ $archive_key ]['filename'] : null;
2280
 
2281
  if ( $archive_filename !== $filename ) {
2282
- $this->logger->add( 'Error: The selected archive file was not found.' );
2283
- return [ 'error' => esc_html__( 'The selected archive file was not found.', 'boldgrid-backup' ) ];
 
2284
  }
2285
 
2286
  $filepath = ! empty( $archives[ $archive_key ]['filepath'] ) ? $archives[ $archive_key ]['filepath'] : null;
@@ -2288,8 +2304,9 @@ class Boldgrid_Backup_Admin_Core {
2288
  if ( ! empty( $filepath ) && $this->wp_filesystem->exists( $filepath ) ) {
2289
  $filesize = $this->wp_filesystem->size( $filepath );
2290
  } else {
2291
- $this->logger->add( 'Error: The selected archive file is empty.' );
2292
- return [ 'error' => esc_html__( 'The selected archive file is empty.', 'boldgrid-backup' ) ];
 
2293
  }
2294
 
2295
  // Populate $info.
@@ -2320,12 +2337,13 @@ class Boldgrid_Backup_Admin_Core {
2320
 
2321
  /*
2322
  * Attempt to fix any permissions related issues before the restoration begins. If we're
2323
- * unable to, the restoration will not continue.
2324
  */
2325
  if ( class_exists( 'ZipArchive' ) ) {
2326
  if ( ! $this->restore_helper->set_writable_permissions( $info['filepath'] ) ) {
2327
- $this->logger->add( 'Failed to fix permissions related issues.' );
2328
- return [ 'error' => $this->restore_helper->get_last_error() ];
 
2329
  }
2330
  } else {
2331
  $this->logger->add( 'ZipArchive not available. Unable to set_writable_permissions. Trying restore anyways...' );
@@ -2376,7 +2394,8 @@ class Boldgrid_Backup_Admin_Core {
2376
  * will contain a database dump, so we may be able to skip this step.
2377
  */
2378
  $db_dump_filepath = $this->get_dump_file( $filepath );
2379
- $this->logger->add( '$db_dump_filepath = ' . $db_dump_filepath );
 
2380
  if ( ! $dryrun && ! empty( $db_dump_filepath ) ) {
2381
  $db_prefix = null;
2382
 
@@ -2403,13 +2422,13 @@ class Boldgrid_Backup_Admin_Core {
2403
 
2404
  // Display notice of deletion status.
2405
  if ( ! $restore_ok ) {
2406
- $this->logger->add( 'Error: Could not restore database.' );
2407
- return [
2408
- 'error' => esc_html__( 'Could not restore database.', 'boldgrid-backup' ),
2409
- ];
2410
  }
2411
  }
2412
  $this->logger->add( 'Database restoration complete.' );
 
2413
 
2414
  // Clear rollback information and restoration cron jobs that may be present.
2415
  $this->auto_rollback->cancel();
@@ -2419,12 +2438,16 @@ class Boldgrid_Backup_Admin_Core {
2419
 
2420
  // If enabled, send email notification for restoration completed.
2421
  if ( ! empty( $settings['notifications']['restore'] ) ) {
 
 
2422
  // Include the mail template.
2423
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-mail-restore.php';
2424
 
2425
  // Send the notification.
2426
  // Parameters come from the included mail template file.
2427
  $info['mail_success'] = $this->email->send( $subject, $body );
 
 
2428
  }
2429
 
2430
  // Update status.
@@ -2433,6 +2456,10 @@ class Boldgrid_Backup_Admin_Core {
2433
  // Check backup directory.
2434
  $info['backup_directory_set'] = $this->backup_dir->get();
2435
 
 
 
 
 
2436
  // Return info array.
2437
  return $info;
2438
  }
540
  */
541
  public $restore_helper;
542
 
543
+ /**
544
+ * Whether or not we are in the middle of restoring an archive.
545
+ *
546
+ * @since 1.13.5
547
+ * @var bool
548
+ *
549
+ * @see self::archiving_files
550
+ */
551
+ public $restoring_archive_file = false;
552
+
553
  /**
554
  * The scheduler class object.
555
  *
2234
  * @return array An array of archive file information.
2235
  */
2236
  public function restore_archive_file( $dryrun = false ) {
2237
+ $this->restoring_archive_file = true;
2238
+
2239
  $this->logger->init( 'restore-' . time() . '.log' );
2240
  $this->logger->add( 'Restoration process initialized.' );
2241
  $this->logger->add_memory();
2242
 
2243
+ // Using pcl_zip (ZipArchive unavailable), a 400MB+ zip used over 500MB+ of memory to restore.
2244
  Boldgrid_Backup_Admin_Utility::bump_memory_limit( '1G' );
2245
 
 
 
 
2246
  $restore_ok = true;
2247
 
2248
  // If a restoration was not requested, then abort.
2249
  if ( empty( $_POST['restore_now'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
2250
+ $error_message = esc_html__( 'Invalid restore_now value.', 'boldgrid-backup' );
2251
+ $this->logger->add( $error_message );
2252
+ return [ 'error' => $error_message ];
2253
  }
2254
 
2255
  // Check if functional.
2256
  if ( ! $this->test->run_functionality_tests() ) {
2257
+ $error_message = esc_html__( 'Functionality tests fail.', 'boldgrid-backup' );
2258
+ $this->logger->add( $error_message );
2259
+ return [ 'error' => $error_message ];
2260
  }
2261
 
2262
  // Initialize variables.
2267
  if ( isset( $_POST['archive_key'] ) && is_numeric( $_POST['archive_key'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
2268
  $archive_key = (int) $_POST['archive_key'];
2269
  } else {
2270
+ $error_message = esc_html__( 'Invalid key for the selected archive file.', 'boldgrid-backup' );
2271
+ $this->logger->add( $error_message );
2272
+ return [ 'error' => $error_message ];
2273
  }
2274
 
2275
  // Validate archive_filename.
2276
  if ( ! empty( $_POST['archive_filename'] ) ) { // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification
2277
  $archive_filename = sanitize_file_name( $_POST['archive_filename'] );
2278
  } else {
2279
+ $error_message = esc_html__( 'Invalid filename for the selected archive file.', 'boldgrid-backup' );
2280
+ $this->logger->add( $error_message );
2281
+ return [ 'error' => $error_message ];
2282
  }
2283
 
2284
  // Close any PHP session, so that another session can open during this restore operation.
2286
 
2287
  $archives = $this->get_archive_list( $archive_filename );
2288
  if ( empty( $archives ) ) {
2289
+ $error_message = esc_html__( 'No archive files were found.', 'boldgrid-backup' );
2290
+ $this->logger->add( $error_message );
2291
+ return [ 'error' => $error_message ];
2292
  }
2293
 
2294
  $filename = ! empty( $archives[ $archive_key ]['filename'] ) ? $archives[ $archive_key ]['filename'] : null;
2295
 
2296
  if ( $archive_filename !== $filename ) {
2297
+ $error_message = esc_html__( 'The selected archive file was not found.', 'boldgrid-backup' );
2298
+ $this->logger->add( $error_message );
2299
+ return [ 'error' => $error_message ];
2300
  }
2301
 
2302
  $filepath = ! empty( $archives[ $archive_key ]['filepath'] ) ? $archives[ $archive_key ]['filepath'] : null;
2304
  if ( ! empty( $filepath ) && $this->wp_filesystem->exists( $filepath ) ) {
2305
  $filesize = $this->wp_filesystem->size( $filepath );
2306
  } else {
2307
+ $error_message = esc_html__( 'The selected archive file is empty.', 'boldgrid-backup' );
2308
+ $this->logger->add( $error_message );
2309
+ return [ 'error' => $error_message ];
2310
  }
2311
 
2312
  // Populate $info.
2337
 
2338
  /*
2339
  * Attempt to fix any permissions related issues before the restoration begins. If we're
2340
+ * unable to, the restoration may not continue.
2341
  */
2342
  if ( class_exists( 'ZipArchive' ) ) {
2343
  if ( ! $this->restore_helper->set_writable_permissions( $info['filepath'] ) ) {
2344
+ $error_message = $this->restore_helper->get_last_error();
2345
+ $this->logger->add( $error_message );
2346
+ return [ 'error' => $error_message ];
2347
  }
2348
  } else {
2349
  $this->logger->add( 'ZipArchive not available. Unable to set_writable_permissions. Trying restore anyways...' );
2394
  * will contain a database dump, so we may be able to skip this step.
2395
  */
2396
  $db_dump_filepath = $this->get_dump_file( $filepath );
2397
+ $this->logger->add( 'Attempting database restoration... $db_dump_filepath = ' . $db_dump_filepath );
2398
+ $this->logger->add_memory();
2399
  if ( ! $dryrun && ! empty( $db_dump_filepath ) ) {
2400
  $db_prefix = null;
2401
 
2422
 
2423
  // Display notice of deletion status.
2424
  if ( ! $restore_ok ) {
2425
+ $error_message = esc_html__( 'Could not restore database.', 'boldgrid-backup' );
2426
+ $this->logger->add( $error_message );
2427
+ return [ 'error' => $error_message ];
 
2428
  }
2429
  }
2430
  $this->logger->add( 'Database restoration complete.' );
2431
+ $this->logger->add_memory();
2432
 
2433
  // Clear rollback information and restoration cron jobs that may be present.
2434
  $this->auto_rollback->cancel();
2438
 
2439
  // If enabled, send email notification for restoration completed.
2440
  if ( ! empty( $settings['notifications']['restore'] ) ) {
2441
+ $this->logger->add( 'Sending "restoration complete" email notification...' );
2442
+
2443
  // Include the mail template.
2444
  include BOLDGRID_BACKUP_PATH . '/admin/partials/boldgrid-backup-admin-mail-restore.php';
2445
 
2446
  // Send the notification.
2447
  // Parameters come from the included mail template file.
2448
  $info['mail_success'] = $this->email->send( $subject, $body );
2449
+
2450
+ $this->logger->add( 'Email sent. Status: ' . ( empty( $info['mail_success'] ) ? 'Fail' : 'Success' ) );
2451
  }
2452
 
2453
  // Update status.
2456
  // Check backup directory.
2457
  $info['backup_directory_set'] = $this->backup_dir->get();
2458
 
2459
+ $this->logger->add( 'Restoration complete!' );
2460
+
2461
+ $this->restoring_archive_file = false;
2462
+
2463
  // Return info array.
2464
  return $info;
2465
  }
admin/class-boldgrid-backup-admin-email.php CHANGED
@@ -257,7 +257,7 @@ class Boldgrid_Backup_Admin_Email {
257
  */
258
  public function wp_mail_failed( $wp_error ) {
259
  // If in the middle of archiving files and an email failed, add info about it to the log.
260
- if ( $this->core->archiving_files ) {
261
  $errors = array(
262
  'wp_error' => $wp_error,
263
  'last_error' => error_get_last(),
257
  */
258
  public function wp_mail_failed( $wp_error ) {
259
  // If in the middle of archiving files and an email failed, add info about it to the log.
260
+ if ( $this->core->archiving_files || $this->core->restoring_archive_file ) {
261
  $errors = array(
262
  'wp_error' => $wp_error,
263
  'last_error' => error_get_last(),
admin/class-boldgrid-backup-admin-log.php CHANGED
@@ -45,6 +45,15 @@ class Boldgrid_Backup_Admin_Log {
45
  */
46
  private $filepath;
47
 
 
 
 
 
 
 
 
 
 
48
  /**
49
  * Constructor.
50
  *
@@ -61,9 +70,20 @@ class Boldgrid_Backup_Admin_Log {
61
  *
62
  * @since 1.12.5
63
  *
64
- * @param string $message The message to add to the log.
 
 
65
  */
66
- public function add( $message ) {
 
 
 
 
 
 
 
 
 
67
  // Add a timestamp to the message.
68
  $message = date( '[Y-m-d H:i:s e]' ) . ' ' . $message;
69
 
@@ -94,12 +114,20 @@ class Boldgrid_Backup_Admin_Log {
94
  /**
95
  * Add the last error to the log.
96
  *
97
- * @since SINCEVERSION
 
 
98
  */
99
  public function add_last_error() {
100
- $last_error = error_get_last();
101
 
102
- $this->add( 'Last error: ' . print_r( $last_error, 1 ) ); // phpcs:ignore
 
 
 
 
 
 
103
  }
104
 
105
 
@@ -230,6 +258,21 @@ class Boldgrid_Backup_Admin_Log {
230
  }
231
  }
232
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
  /**
234
  * Signal handler.
235
  *
45
  */
46
  private $filepath;
47
 
48
+ /**
49
+ * The last error, as per error_get_last().
50
+ *
51
+ * @since 1.13.5
52
+ * @var array
53
+ * @access private
54
+ */
55
+ private $last_error;
56
+
57
  /**
58
  * Constructor.
59
  *
70
  *
71
  * @since 1.12.5
72
  *
73
+ * @param string $message The message to add to the log.
74
+ * @param bool $log_last_error Whether or not to log the last error. Most useful for self::add_last_error
75
+ * to avoid infinite loop when calling this method.
76
  */
77
+ public function add( $message, $log_last_error = true ) {
78
+ /*
79
+ * Before we do anything, log the last error. This is important to go first because when looking
80
+ * at the log, the error should come first because it was triggered before whatever it is we're
81
+ * adding a message about right now.
82
+ */
83
+ if ( $log_last_error ) {
84
+ $this->add_last_error();
85
+ }
86
+
87
  // Add a timestamp to the message.
88
  $message = date( '[Y-m-d H:i:s e]' ) . ' ' . $message;
89
 
114
  /**
115
  * Add the last error to the log.
116
  *
117
+ * The error is only added to the log if it hasn't been logged before.
118
+ *
119
+ * @since 1.13.5
120
  */
121
  public function add_last_error() {
122
+ $current_error = error_get_last();
123
 
124
+ // Only new errors are logged.
125
+ if ( $current_error !== $this->last_error ) {
126
+ $this->add( 'Last error: ' . print_r( $current_error, 1 ), false ); // phpcs:ignore
127
+ }
128
+
129
+ // This method will be called often, so keep track of errors to avoid logging duplicates.
130
+ $this->last_error = $current_error;
131
  }
132
 
133
 
258
  }
259
  }
260
 
261
+ /**
262
+ * Hook into shutdown.
263
+ *
264
+ * @since 1.13.5
265
+ */
266
+ public function shutdown() {
267
+ /*
268
+ * This method is always added to the shutdown. Only log errors if we've initialized and are
269
+ * using this logging system (IE don't log errors unrelated to this plugin).
270
+ */
271
+ if ( ! empty( $this->filename ) ) {
272
+ $this->add_last_error();
273
+ }
274
+ }
275
+
276
  /**
277
  * Signal handler.
278
  *
admin/class-boldgrid-backup-admin-support.php CHANGED
@@ -48,13 +48,17 @@ class Boldgrid_Backup_Admin_Support {
48
  }
49
 
50
  /**
51
- * Deactivate and show an error.
 
 
 
 
52
  *
53
  * @since 1.7.0
54
  *
55
  * @param string $error Error message.
56
  */
57
- public function deactivate( $error ) {
58
  add_action(
59
  'admin_notices', function () use ( $error ) {
60
  $allowed_html = [
@@ -62,16 +66,32 @@ class Boldgrid_Backup_Admin_Support {
62
  'strong' => [],
63
  'br' => [],
64
  'em' => [],
 
 
 
 
 
65
  ];
66
 
67
  $error = '<p>' . sprintf(
68
  // translators: 1: HTML opening strong tags, 2: HTML closing strong tag, 3: Plugin title.
69
- __( '%1$s%3$s%2$s has been deactivated due to the following error:', 'boldgrid-backup' ),
70
  '<strong>',
71
  '</strong>',
72
  BOLDGRID_BACKUP_TITLE
73
  ) . '<br /><br />' . $error . '</p>';
74
 
 
 
 
 
 
 
 
 
 
 
 
75
  // Echo our admin notice. Hide the "plugin activated" notice.
76
  echo '
77
  <div class="notice notice-error is-dismissible">' . wp_kses( $error, $allowed_html ) . '</div>
@@ -81,12 +101,6 @@ class Boldgrid_Backup_Admin_Support {
81
  ';
82
  }
83
  );
84
-
85
- add_action(
86
- 'admin_init', function() {
87
- deactivate_plugins( 'boldgrid-backup/boldgrid-backup.php', true );
88
- }
89
- );
90
  }
91
 
92
  /**
@@ -114,6 +128,21 @@ class Boldgrid_Backup_Admin_Support {
114
  return version_compare( PHP_VERSION, self::PHP_MIN_VER, '>=' );
115
  }
116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  /**
118
  * Whether or not this version of the Backup Plugin is compatible with the premium extension.
119
  *
@@ -126,9 +155,43 @@ class Boldgrid_Backup_Admin_Support {
126
  version_compare( BOLDGRID_BACKUP_VERSION, BOLDGRID_BACKUP_MIN_VERSION_FOR_PREMIUM, '>=' );
127
  }
128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  /**
130
  * Run tests.
131
  *
 
 
 
132
  * @since 1.7.1
133
  *
134
  * @see has_compatible_php()
@@ -138,8 +201,13 @@ class Boldgrid_Backup_Admin_Support {
138
  * @return bool
139
  */
140
  public function run_tests() {
 
 
 
 
 
141
  if ( ! $this->has_compatible_php() ) {
142
- $this->deactivate(
143
  sprintf(
144
  // Translators: 1: Current PHP version, 2: Minimum supported PHP version.
145
  __(
@@ -155,7 +223,7 @@ class Boldgrid_Backup_Admin_Support {
155
  }
156
 
157
  if ( ! $this->has_composer_installed() ) {
158
- $this->deactivate(
159
  __(
160
  'The vendor folder is missing. Please run "composer install", or contact your host for further assistance.',
161
  'boldgrid-backup'
48
  }
49
 
50
  /**
51
+ * Add an admin notice.
52
+ *
53
+ * This method use to be "deactivate". Users only have 1 chance to see the message we're showing
54
+ * if we deactivate the plugin. If we instead just show an admin message, the user has more than
55
+ * once chance to see the notice and take action to resolve the issue.
56
  *
57
  * @since 1.7.0
58
  *
59
  * @param string $error Error message.
60
  */
61
+ public function add_admin_notice( $error ) {
62
  add_action(
63
  'admin_notices', function () use ( $error ) {
64
  $allowed_html = [
66
  'strong' => [],
67
  'br' => [],
68
  'em' => [],
69
+ 'pre' => [],
70
+ 'a' => [
71
+ 'href' => [],
72
+ 'target' => [],
73
+ ],
74
  ];
75
 
76
  $error = '<p>' . sprintf(
77
  // translators: 1: HTML opening strong tags, 2: HTML closing strong tag, 3: Plugin title.
78
+ __( '%1$s%3$s%2$s is unable to load due to the following error:', 'boldgrid-backup' ),
79
  '<strong>',
80
  '</strong>',
81
  BOLDGRID_BACKUP_TITLE
82
  ) . '<br /><br />' . $error . '</p>';
83
 
84
+ // Inform the user how to get help.
85
+ $error .= '<p>' . sprintf(
86
+ // translators: 1 Plugin title, 2 opening anchor tag linking to plugin page, 3 url to plugin page, 4 closing anchor tag.
87
+ __( 'Please deactivate / reactivate Total Upkeep as this often resolves issues. If you are installing %1$s from .zip, ensure you downloaded it from %2$s%3$s%4$s. For additional help, please post a question in the %5$sWordPress Support Forums.%4$s', 'boldgrid-backup' ),
88
+ BOLDGRID_BACKUP_TITLE,
89
+ '<a href="https://wordpress.org/plugins/boldgrid-backup/" target="_blank">',
90
+ 'https://wordpress.org/plugins/boldgrid-backup/',
91
+ '</a>',
92
+ '<a href="https://wordpress.org/support/plugin/boldgrid-backup/#new-topic-0" target="_blank">'
93
+ ) . '</p>';
94
+
95
  // Echo our admin notice. Hide the "plugin activated" notice.
96
  echo '
97
  <div class="notice notice-error is-dismissible">' . wp_kses( $error, $allowed_html ) . '</div>
101
  ';
102
  }
103
  );
 
 
 
 
 
 
104
  }
105
 
106
  /**
128
  return version_compare( PHP_VERSION, self::PHP_MIN_VER, '>=' );
129
  }
130
 
131
+ /**
132
+ * Verify appropriate library is available.
133
+ *
134
+ * This is a very basic test. It could be more exhaustive. However, a missing library is rare and
135
+ * exhaustive tests are not needed.
136
+ *
137
+ * @since 1.13.5
138
+ *
139
+ * @return bool
140
+ */
141
+ public function has_library() {
142
+ // This can be updated to the newest library classes to check for a more recent version.
143
+ return class_exists( 'Boldgrid\Library\Library\Usage\Notice' );
144
+ }
145
+
146
  /**
147
  * Whether or not this version of the Backup Plugin is compatible with the premium extension.
148
  *
155
  version_compare( BOLDGRID_BACKUP_VERSION, BOLDGRID_BACKUP_MIN_VERSION_FOR_PREMIUM, '>=' );
156
  }
157
 
158
+ /**
159
+ * Do a basic test and ensure we have access to the library.
160
+ *
161
+ * In theory, we should never have an issue with the library loading. This method should never
162
+ * be needed, and any issues with the library should be troubleshooted and resolved. However,
163
+ * we cannot have a library issue cause a fatal error, hence this check.
164
+ *
165
+ * @since 1.13.5
166
+ *
167
+ * @return bool
168
+ */
169
+ public function run_library_tests() {
170
+ // Total Upkeep's library is only registered after activation, hence the is_active() check below.
171
+ if ( Boldgrid_Backup_Admin_Utility::is_active() && ! $this->has_library() ) {
172
+ $boldgrid_settings = get_option( 'boldgrid_settings', array() );
173
+
174
+ $this->add_admin_notice( sprintf(
175
+ // translators: 1 A list of library versions that are registered. It will be within a <pre> tag.
176
+ __(
177
+ 'One or more library files are missing. Registered libraries: %1$s',
178
+ 'boldgrid-backup'
179
+ ),
180
+ ! empty( $boldgrid_settings['library'] ) ? '<pre>' . print_r( $boldgrid_settings['library'], 1 ) . '</pre>' : __( 'None', 'boldgrid-backup' ) // phpcs:ignore
181
+ ));
182
+
183
+ return false;
184
+ }
185
+
186
+ return true;
187
+ }
188
+
189
  /**
190
  * Run tests.
191
  *
192
+ * These tests are triggered by the main class-boldgrid-backup.php file. If these tests fail, the
193
+ * rest of the plugin will not load.
194
+ *
195
  * @since 1.7.1
196
  *
197
  * @see has_compatible_php()
201
  * @return bool
202
  */
203
  public function run_tests() {
204
+ // Utility method required in this method.
205
+ if ( ! class_exists( 'Boldgrid_Backup_Admin_Utility' ) ) {
206
+ require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-utility.php';
207
+ }
208
+
209
  if ( ! $this->has_compatible_php() ) {
210
+ $this->add_admin_notice(
211
  sprintf(
212
  // Translators: 1: Current PHP version, 2: Minimum supported PHP version.
213
  __(
223
  }
224
 
225
  if ( ! $this->has_composer_installed() ) {
226
+ $this->add_admin_notice(
227
  __(
228
  'The vendor folder is missing. Please run "composer install", or contact your host for further assistance.',
229
  'boldgrid-backup'
admin/class-boldgrid-backup-admin-utility.php CHANGED
@@ -496,6 +496,26 @@ class Boldgrid_Backup_Admin_Utility {
496
  return true;
497
  }
498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
499
  /**
500
  * Determine whether or not the given $page is the current.
501
  *
496
  return true;
497
  }
498
 
499
+ /**
500
+ * Determine whether or not Total Upkeep is active.
501
+ *
502
+ * The fact that Total Upkeep is calling this method shows that it is installed and activated.
503
+ * However, it we are not listed in the "active_plugins" option, then we are in the middle of
504
+ * activation.
505
+ *
506
+ * Because the library may not be available until activation, this method can help us determine
507
+ * whether or not we should instantiate library classes at a certain time.
508
+ *
509
+ * @since 1.13.5
510
+ *
511
+ * @return bool
512
+ */
513
+ public static function is_active() {
514
+ $active_plugins = get_option( 'active_plugins', array() );
515
+
516
+ return in_array( 'boldgrid-backup/boldgrid-backup.php', $active_plugins, true );
517
+ }
518
+
519
  /**
520
  * Determine whether or not the given $page is the current.
521
  *
admin/js/boldgrid-backup-admin.js CHANGED
@@ -52,9 +52,9 @@ BoldGrid.Backup = function( $ ) {
52
  /**
53
  * @summary Handle the clicking of a show / hide toggle.
54
  *
55
- * In the example below, the show / hide link has a data-toggle-target attr
56
  * that helps to identify the element to toggle.
57
- * # <a href="" data-toggle-target="#more_info">Show</a>
58
  * # <div id="more_info" class="hidden">
59
  *
60
  * @since 1.6.0
@@ -63,7 +63,7 @@ BoldGrid.Backup = function( $ ) {
63
  var $e = $( this ),
64
  show = 'Show',
65
  hide = 'Hide',
66
- target = $e.attr( 'data-toggle-target' ),
67
  $target = $( target ),
68
  isVisible = $target.is( ':visible' );
69
 
@@ -117,7 +117,7 @@ BoldGrid.Backup = function( $ ) {
117
  self.hideBackupNotice();
118
  self.updatePremiumLink();
119
 
120
- $( 'body' ).on( 'click', '[data-toggle-target]', self.onClickToggle );
121
  $( 'body' ).on( 'make_notices_dismissible', self.makeNoticesDismissible );
122
 
123
  /*
52
  /**
53
  * @summary Handle the clicking of a show / hide toggle.
54
  *
55
+ * In the example below, the show / hide link has a data-bgbkup-toggle-target attr
56
  * that helps to identify the element to toggle.
57
+ * # <a href="" data-bgbkup-toggle-target="#more_info">Show</a>
58
  * # <div id="more_info" class="hidden">
59
  *
60
  * @since 1.6.0
63
  var $e = $( this ),
64
  show = 'Show',
65
  hide = 'Hide',
66
+ target = $e.attr( 'data-bgbkup-toggle-target' ),
67
  $target = $( target ),
68
  isVisible = $target.is( ':visible' );
69
 
117
  self.hideBackupNotice();
118
  self.updatePremiumLink();
119
 
120
+ $( 'body' ).on( 'click', '[data-bgbkup-toggle-target]', self.onClickToggle );
121
  $( 'body' ).on( 'make_notices_dismissible', self.makeNoticesDismissible );
122
 
123
  /*
admin/partials/boldgrid-backup-admin-archive-details.php CHANGED
@@ -76,7 +76,7 @@ if ( ! $archive_found ) {
76
  $more_info = empty( $details ) ? '' : sprintf(
77
  '
78
  <div class="misc-pub-section">
79
- More info <a href="" data-toggle-target="#more_info">Show</a>
80
  <div id="more_info" class="hidden">
81
  <hr />
82
  %1$s
76
  $more_info = empty( $details ) ? '' : sprintf(
77
  '
78
  <div class="misc-pub-section">
79
+ More info <a href="" data-bgbkup-toggle-target="#more_info">Show</a>
80
  <div id="more_info" class="hidden">
81
  <hr />
82
  %1$s
boldgrid-backup.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: Total Upkeep
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19
- * Version: 1.13.4
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
@@ -118,6 +118,11 @@ function load_boldgrid_backup() {
118
  )
119
  );
120
 
 
 
 
 
 
121
  register_activation_hook( __FILE__, 'activate_boldgrid_backup' );
122
  register_deactivation_hook( __FILE__, 'deactivate_boldgrid_backup' );
123
 
16
  * Plugin Name: Total Upkeep
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19
+ * Version: 1.13.5
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
118
  )
119
  );
120
 
121
+ // Make sure we have necessary library files.
122
+ if ( ! $support->run_library_tests() ) {
123
+ return false;
124
+ }
125
+
126
  register_activation_hook( __FILE__, 'activate_boldgrid_backup' );
127
  register_deactivation_hook( __FILE__, 'deactivate_boldgrid_backup' );
128
 
coverage.xml CHANGED
@@ -1,10 +1,10 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1590177287">
3
- <project timestamp="1590177287">
4
  <package name="Boldgrid\Backup\Admin\Card">
5
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-amazon-s3.php">
6
  <class name="Amazon_S3" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Amazon">
7
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
8
  </class>
9
  <line num="29" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
10
  <line num="30" type="stmt" count="1"/>
@@ -18,10 +18,9 @@
18
  <line num="43" type="stmt" count="1"/>
19
  <line num="44" type="stmt" count="1"/>
20
  <line num="45" type="stmt" count="1"/>
21
- <line num="46" type="stmt" count="1"/>
22
  <line num="48" type="stmt" count="1"/>
23
  <line num="49" type="stmt" count="1"/>
24
- <metrics loc="50" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
25
  </file>
26
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-backups.php">
27
  <class name="Backups" namespace="Boldgrid\Backup\Admin\Card">
@@ -44,7 +43,7 @@
44
  </file>
45
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-database-encryption.php">
46
  <class name="Database_Encryption" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Database">
47
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
48
  </class>
49
  <line num="29" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
50
  <line num="30" type="stmt" count="1"/>
@@ -58,14 +57,13 @@
58
  <line num="43" type="stmt" count="1"/>
59
  <line num="44" type="stmt" count="1"/>
60
  <line num="45" type="stmt" count="1"/>
61
- <line num="46" type="stmt" count="1"/>
62
  <line num="48" type="stmt" count="1"/>
63
  <line num="49" type="stmt" count="1"/>
64
- <metrics loc="50" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
65
  </file>
66
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-dream-objects.php">
67
  <class name="Dream_Objects" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Dream">
68
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
69
  </class>
70
  <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
71
  <line num="31" type="stmt" count="1"/>
@@ -79,10 +77,9 @@
79
  <line num="44" type="stmt" count="1"/>
80
  <line num="45" type="stmt" count="1"/>
81
  <line num="46" type="stmt" count="1"/>
82
- <line num="47" type="stmt" count="1"/>
83
  <line num="49" type="stmt" count="1"/>
84
  <line num="50" type="stmt" count="1"/>
85
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
86
  </file>
87
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-find-modified-files.php">
88
  <class name="Find_Modified_Files" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Find.Modified">
@@ -102,7 +99,7 @@
102
  </file>
103
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-google-drive.php">
104
  <class name="Google_Drive" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Google">
105
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
106
  </class>
107
  <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
108
  <line num="31" type="stmt" count="1"/>
@@ -117,13 +114,12 @@
117
  <line num="46" type="stmt" count="1"/>
118
  <line num="47" type="stmt" count="1"/>
119
  <line num="48" type="stmt" count="1"/>
120
- <line num="49" type="stmt" count="1"/>
121
  <line num="50" type="stmt" count="1"/>
122
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
123
  </file>
124
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-historical-versions.php">
125
  <class name="Historical_Versions" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Historical">
126
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
127
  </class>
128
  <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
129
  <line num="31" type="stmt" count="1"/>
@@ -138,13 +134,12 @@
138
  <line num="46" type="stmt" count="1"/>
139
  <line num="47" type="stmt" count="1"/>
140
  <line num="48" type="stmt" count="1"/>
141
- <line num="49" type="stmt" count="1"/>
142
  <line num="50" type="stmt" count="1"/>
143
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
144
  </file>
145
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-history.php">
146
  <class name="History" namespace="Boldgrid\Backup\Admin\Card">
147
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
148
  </class>
149
  <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
150
  <line num="31" type="stmt" count="1"/>
@@ -159,13 +154,12 @@
159
  <line num="46" type="stmt" count="1"/>
160
  <line num="47" type="stmt" count="1"/>
161
  <line num="48" type="stmt" count="1"/>
162
- <line num="49" type="stmt" count="1"/>
163
  <line num="50" type="stmt" count="1"/>
164
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
165
  </file>
166
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-one-click-restoration.php">
167
  <class name="One_Click_Restoration" namespace="Boldgrid\Backup\Admin\Card" fullPackage="One.Click">
168
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
169
  </class>
170
  <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
171
  <line num="31" type="stmt" count="1"/>
@@ -180,13 +174,12 @@
180
  <line num="46" type="stmt" count="1"/>
181
  <line num="47" type="stmt" count="1"/>
182
  <line num="48" type="stmt" count="1"/>
183
- <line num="49" type="stmt" count="1"/>
184
  <line num="50" type="stmt" count="1"/>
185
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
186
  </file>
187
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-plugin-editor-tools.php">
188
  <class name="Plugin_Editor_Tools" namespace="Boldgrid\Backup\Admin\Card" fullPackage="Plugin.Editor">
189
- <metrics complexity="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
190
  </class>
191
  <line num="30" type="method" name="init" visibility="public" complexity="1" crap="1" count="1"/>
192
  <line num="31" type="stmt" count="1"/>
@@ -201,9 +194,8 @@
201
  <line num="46" type="stmt" count="1"/>
202
  <line num="47" type="stmt" count="1"/>
203
  <line num="48" type="stmt" count="1"/>
204
- <line num="49" type="stmt" count="1"/>
205
  <line num="50" type="stmt" count="1"/>
206
- <metrics loc="51" ncloc="27" classes="1" methods="1" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="14" coveredstatements="14" elements="15" coveredelements="15"/>
207
  </file>
208
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/card/class-premium.php">
209
  <class name="Premium" namespace="Boldgrid\Backup\Admin\Card">
@@ -553,7 +545,7 @@
553
  </package>
554
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-actions.php">
555
  <class name="Boldgrid_Backup_Admin_Archive_Actions" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
556
- <metrics complexity="15" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="107" coveredstatements="2" elements="114" coveredelements="3"/>
557
  </class>
558
  <line num="38" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
559
  <line num="39" type="stmt" count="20"/>
@@ -563,10 +555,11 @@
563
  <line num="49" type="stmt" count="0"/>
564
  <line num="50" type="stmt" count="0"/>
565
  <line num="51" type="stmt" count="0"/>
 
566
  <line num="53" type="stmt" count="0"/>
567
  <line num="56" type="stmt" count="0"/>
568
  <line num="57" type="stmt" count="0"/>
569
- <line num="59" type="stmt" count="0"/>
570
  <line num="61" type="stmt" count="0"/>
571
  <line num="62" type="stmt" count="0"/>
572
  <line num="63" type="stmt" count="0"/>
@@ -574,17 +567,17 @@
574
  <line num="65" type="stmt" count="0"/>
575
  <line num="66" type="stmt" count="0"/>
576
  <line num="67" type="stmt" count="0"/>
577
- <line num="69" type="stmt" count="0"/>
578
  <line num="70" type="stmt" count="0"/>
579
  <line num="71" type="stmt" count="0"/>
580
- <line num="73" type="stmt" count="0"/>
581
  <line num="75" type="stmt" count="0"/>
582
  <line num="77" type="stmt" count="0"/>
583
  <line num="78" type="stmt" count="0"/>
584
  <line num="79" type="stmt" count="0"/>
585
  <line num="80" type="stmt" count="0"/>
586
  <line num="81" type="stmt" count="0"/>
587
- <line num="83" type="stmt" count="0"/>
588
  <line num="86" type="stmt" count="0"/>
589
  <line num="87" type="stmt" count="0"/>
590
  <line num="88" type="stmt" count="0"/>
@@ -596,7 +589,6 @@
596
  <line num="94" type="stmt" count="0"/>
597
  <line num="95" type="stmt" count="0"/>
598
  <line num="96" type="stmt" count="0"/>
599
- <line num="97" type="stmt" count="0"/>
600
  <line num="99" type="stmt" count="0"/>
601
  <line num="100" type="stmt" count="0"/>
602
  <line num="102" type="stmt" count="0"/>
@@ -605,57 +597,48 @@
605
  <line num="114" type="stmt" count="0"/>
606
  <line num="116" type="stmt" count="0"/>
607
  <line num="117" type="stmt" count="0"/>
608
- <line num="118" type="stmt" count="0"/>
609
  <line num="119" type="stmt" count="0"/>
610
- <line num="128" type="stmt" count="0"/>
611
  <line num="129" type="stmt" count="0"/>
612
  <line num="130" type="stmt" count="0"/>
613
  <line num="131" type="stmt" count="0"/>
614
  <line num="132" type="stmt" count="0"/>
615
  <line num="133" type="stmt" count="0"/>
616
- <line num="134" type="stmt" count="0"/>
617
  <line num="137" type="stmt" count="0"/>
618
  <line num="148" type="method" name="get_download_button" visibility="public" complexity="2" crap="6" count="0"/>
619
  <line num="149" type="stmt" count="0"/>
620
  <line num="151" type="stmt" count="0"/>
621
  <line num="152" type="stmt" count="0"/>
622
- <line num="153" type="stmt" count="0"/>
623
  <line num="154" type="stmt" count="0"/>
624
- <line num="164" type="stmt" count="0"/>
625
  <line num="165" type="stmt" count="0"/>
626
  <line num="166" type="stmt" count="0"/>
627
  <line num="167" type="stmt" count="0"/>
628
  <line num="168" type="stmt" count="0"/>
629
- <line num="169" type="stmt" count="0"/>
630
  <line num="172" type="stmt" count="0"/>
631
  <line num="184" type="method" name="get_restore_button" visibility="public" complexity="2" crap="6" count="0"/>
632
  <line num="186" type="stmt" count="0"/>
633
- <line num="187" type="stmt" count="0"/>
634
  <line num="189" type="stmt" count="0"/>
635
  <line num="191" type="stmt" count="0"/>
636
  <line num="193" type="stmt" count="0"/>
637
  <line num="194" type="stmt" count="0"/>
638
- <line num="195" type="stmt" count="0"/>
639
  <line num="196" type="stmt" count="0"/>
640
- <line num="207" type="stmt" count="0"/>
641
  <line num="208" type="stmt" count="0"/>
642
  <line num="209" type="stmt" count="0"/>
643
  <line num="210" type="stmt" count="0"/>
644
  <line num="211" type="stmt" count="0"/>
645
  <line num="212" type="stmt" count="0"/>
646
- <line num="213" type="stmt" count="0"/>
647
  <line num="216" type="stmt" count="0"/>
648
  <line num="227" type="method" name="get_download_link_button" visibility="public" complexity="2" crap="6" count="0"/>
649
  <line num="228" type="stmt" count="0"/>
650
  <line num="229" type="stmt" count="0"/>
651
  <line num="231" type="stmt" count="0"/>
652
  <line num="232" type="stmt" count="0"/>
653
- <line num="243" type="stmt" count="0"/>
654
  <line num="244" type="stmt" count="0"/>
655
  <line num="245" type="stmt" count="0"/>
656
  <line num="246" type="stmt" count="0"/>
657
- <line num="247" type="stmt" count="0"/>
658
- <line num="248" type="stmt" count="0"/>
659
  <line num="250" type="stmt" count="0"/>
660
  <line num="267" type="method" name="wp_ajax_generate_download_link" visibility="public" complexity="5" crap="30" count="0"/>
661
  <line num="268" type="stmt" count="0"/>
@@ -664,16 +647,14 @@
664
  <line num="272" type="stmt" count="0"/>
665
  <line num="273" type="stmt" count="0"/>
666
  <line num="274" type="stmt" count="0"/>
667
- <line num="276" type="stmt" count="0"/>
668
- <line num="277" type="stmt" count="0"/>
669
- <line num="278" type="stmt" count="0"/>
670
  <line num="279" type="stmt" count="0"/>
671
  <line num="281" type="stmt" count="0"/>
672
- <metrics loc="282" ncloc="180" classes="1" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="107" coveredstatements="2" elements="114" coveredelements="3"/>
673
  </file>
674
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-browser.php">
675
  <class name="Boldgrid_Backup_Admin_Archive_Browser" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
676
- <metrics complexity="40" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="153" coveredstatements="2" elements="160" coveredelements="3"/>
677
  </class>
678
  <line num="43" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
679
  <line num="44" type="stmt" count="20"/>
@@ -681,10 +662,8 @@
681
  <line num="55" type="method" name="authorize" visibility="public" complexity="3" crap="12" count="0"/>
682
  <line num="56" type="stmt" count="0"/>
683
  <line num="57" type="stmt" count="0"/>
684
- <line num="58" type="stmt" count="0"/>
685
  <line num="60" type="stmt" count="0"/>
686
  <line num="61" type="stmt" count="0"/>
687
- <line num="62" type="stmt" count="0"/>
688
  <line num="63" type="stmt" count="0"/>
689
  <line num="79" type="method" name="get_sql_details" visibility="public" complexity="10" crap="110" count="0"/>
690
  <line num="80" type="stmt" count="0"/>
@@ -692,9 +671,9 @@
692
  <line num="82" type="stmt" count="0"/>
693
  <line num="83" type="stmt" count="0"/>
694
  <line num="84" type="stmt" count="0"/>
695
- <line num="97" type="stmt" count="0"/>
696
  <line num="98" type="stmt" count="0"/>
697
- <line num="100" type="stmt" count="0"/>
698
  <line num="103" type="stmt" count="0"/>
699
  <line num="104" type="stmt" count="0"/>
700
  <line num="105" type="stmt" count="0"/>
@@ -702,7 +681,6 @@
702
  <line num="110" type="stmt" count="0"/>
703
  <line num="112" type="stmt" count="0"/>
704
  <line num="113" type="stmt" count="0"/>
705
- <line num="114" type="stmt" count="0"/>
706
  <line num="116" type="stmt" count="0"/>
707
  <line num="118" type="stmt" count="0"/>
708
  <line num="120" type="stmt" count="0"/>
@@ -710,9 +688,7 @@
710
  <line num="123" type="stmt" count="0"/>
711
  <line num="124" type="stmt" count="0"/>
712
  <line num="125" type="stmt" count="0"/>
713
- <line num="126" type="stmt" count="0"/>
714
  <line num="127" type="stmt" count="0"/>
715
- <line num="128" type="stmt" count="0"/>
716
  <line num="130" type="stmt" count="0"/>
717
  <line num="132" type="stmt" count="0"/>
718
  <line num="134" type="stmt" count="0"/>
@@ -720,27 +696,22 @@
720
  <line num="137" type="stmt" count="0"/>
721
  <line num="138" type="stmt" count="0"/>
722
  <line num="139" type="stmt" count="0"/>
723
- <line num="140" type="stmt" count="0"/>
724
  <line num="141" type="stmt" count="0"/>
725
- <line num="142" type="stmt" count="0"/>
726
  <line num="144" type="stmt" count="0"/>
727
  <line num="145" type="stmt" count="0"/>
728
  <line num="148" type="stmt" count="0"/>
729
  <line num="150" type="stmt" count="0"/>
730
  <line num="152" type="stmt" count="0"/>
731
  <line num="153" type="stmt" count="0"/>
732
- <line num="155" type="stmt" count="0"/>
733
  <line num="156" type="stmt" count="0"/>
734
- <line num="157" type="stmt" count="0"/>
735
  <line num="159" type="stmt" count="0"/>
736
  <line num="161" type="stmt" count="0"/>
737
  <line num="162" type="stmt" count="0"/>
738
- <line num="167" type="stmt" count="0"/>
739
  <line num="168" type="stmt" count="0"/>
740
  <line num="169" type="stmt" count="0"/>
741
  <line num="170" type="stmt" count="0"/>
742
- <line num="171" type="stmt" count="0"/>
743
- <line num="172" type="stmt" count="0"/>
744
  <line num="175" type="stmt" count="0"/>
745
  <line num="177" type="stmt" count="0"/>
746
  <line num="178" type="stmt" count="0"/>
@@ -749,7 +720,6 @@
749
  <line num="183" type="stmt" count="0"/>
750
  <line num="184" type="stmt" count="0"/>
751
  <line num="185" type="stmt" count="0"/>
752
- <line num="186" type="stmt" count="0"/>
753
  <line num="188" type="stmt" count="0"/>
754
  <line num="198" type="method" name="wp_ajax_browse_archive" visibility="public" complexity="8" crap="72" count="0"/>
755
  <line num="199" type="stmt" count="0"/>
@@ -758,28 +728,24 @@
758
  <line num="204" type="stmt" count="0"/>
759
  <line num="205" type="stmt" count="0"/>
760
  <line num="206" type="stmt" count="0"/>
761
- <line num="207" type="stmt" count="0"/>
762
  <line num="209" type="stmt" count="0"/>
763
  <line num="211" type="stmt" count="0"/>
764
  <line num="219" type="stmt" count="0"/>
765
  <line num="220" type="stmt" count="0"/>
766
- <line num="221" type="stmt" count="0"/>
767
  <line num="223" type="stmt" count="0"/>
768
  <line num="225" type="stmt" count="0"/>
769
  <line num="227" type="stmt" count="0"/>
770
  <line num="229" type="stmt" count="0"/>
771
  <line num="230" type="stmt" count="0"/>
772
  <line num="232" type="stmt" count="0"/>
773
- <line num="245" type="stmt" count="0"/>
774
  <line num="246" type="stmt" count="0"/>
775
  <line num="247" type="stmt" count="0"/>
776
  <line num="248" type="stmt" count="0"/>
777
- <line num="249" type="stmt" count="0"/>
778
  <line num="251" type="stmt" count="0"/>
779
  <line num="252" type="stmt" count="0"/>
780
  <line num="253" type="stmt" count="0"/>
781
  <line num="256" type="stmt" count="0"/>
782
- <line num="257" type="stmt" count="0"/>
783
  <line num="259" type="stmt" count="0"/>
784
  <line num="261" type="stmt" count="0"/>
785
  <line num="263" type="stmt" count="0"/>
@@ -791,11 +757,9 @@
791
  <line num="279" type="stmt" count="0"/>
792
  <line num="280" type="stmt" count="0"/>
793
  <line num="281" type="stmt" count="0"/>
794
- <line num="282" type="stmt" count="0"/>
795
  <line num="285" type="stmt" count="0"/>
796
  <line num="287" type="stmt" count="0"/>
797
  <line num="288" type="stmt" count="0"/>
798
- <line num="289" type="stmt" count="0"/>
799
  <line num="299" type="stmt" count="0"/>
800
  <line num="301" type="stmt" count="0"/>
801
  <line num="302" type="stmt" count="0"/>
@@ -806,19 +770,15 @@
806
  <line num="317" type="stmt" count="0"/>
807
  <line num="318" type="stmt" count="0"/>
808
  <line num="319" type="stmt" count="0"/>
809
- <line num="320" type="stmt" count="0"/>
810
  <line num="322" type="stmt" count="0"/>
811
  <line num="323" type="stmt" count="0"/>
812
  <line num="325" type="stmt" count="0"/>
813
  <line num="326" type="stmt" count="0"/>
814
  <line num="328" type="stmt" count="0"/>
815
  <line num="329" type="stmt" count="0"/>
816
- <line num="330" type="stmt" count="0"/>
817
- <line num="331" type="stmt" count="0"/>
818
  <line num="332" type="stmt" count="0"/>
819
  <line num="334" type="stmt" count="0"/>
820
  <line num="335" type="stmt" count="0"/>
821
- <line num="336" type="stmt" count="0"/>
822
  <line num="338" type="stmt" count="0"/>
823
  <line num="348" type="method" name="wp_ajax_view_db" visibility="public" complexity="7" crap="56" count="0"/>
824
  <line num="349" type="stmt" count="0"/>
@@ -827,19 +787,17 @@
827
  <line num="353" type="stmt" count="0"/>
828
  <line num="354" type="stmt" count="0"/>
829
  <line num="355" type="stmt" count="0"/>
830
- <line num="356" type="stmt" count="0"/>
831
  <line num="358" type="stmt" count="0"/>
832
  <line num="360" type="stmt" count="0"/>
833
  <line num="361" type="stmt" count="0"/>
834
  <line num="362" type="stmt" count="0"/>
835
- <line num="363" type="stmt" count="0"/>
836
  <line num="364" type="stmt" count="0"/>
837
  <line num="366" type="stmt" count="0"/>
838
- <metrics loc="367" ncloc="239" classes="1" methods="7" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="153" coveredstatements="2" elements="160" coveredelements="3"/>
839
  </file>
840
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-details.php">
841
  <class name="Boldgrid_Backup_Admin_Archive_Details" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
842
- <metrics complexity="20" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="86" coveredstatements="2" elements="92" coveredelements="3"/>
843
  </class>
844
  <line num="48" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
845
  <line num="49" type="stmt" count="20"/>
@@ -852,23 +810,22 @@
852
  <line num="72" type="stmt" count="0"/>
853
  <line num="73" type="stmt" count="0"/>
854
  <line num="74" type="stmt" count="0"/>
855
- <line num="76" type="stmt" count="0"/>
856
  <line num="78" type="stmt" count="0"/>
857
  <line num="79" type="stmt" count="0"/>
858
  <line num="80" type="stmt" count="0"/>
859
  <line num="81" type="stmt" count="0"/>
860
- <line num="83" type="stmt" count="0"/>
861
  <line num="85" type="stmt" count="0"/>
862
  <line num="86" type="stmt" count="0"/>
863
  <line num="87" type="stmt" count="0"/>
864
- <line num="88" type="stmt" count="0"/>
865
  <line num="89" type="stmt" count="0"/>
866
  <line num="90" type="stmt" count="0"/>
867
  <line num="92" type="stmt" count="0"/>
868
  <line num="93" type="stmt" count="0"/>
869
  <line num="94" type="stmt" count="0"/>
870
  <line num="95" type="stmt" count="0"/>
871
- <line num="97" type="stmt" count="0"/>
872
  <line num="98" type="stmt" count="0"/>
873
  <line num="100" type="stmt" count="0"/>
874
  <line num="101" type="stmt" count="0"/>
@@ -877,7 +834,6 @@
877
  <line num="104" type="stmt" count="0"/>
878
  <line num="105" type="stmt" count="0"/>
879
  <line num="106" type="stmt" count="0"/>
880
- <line num="107" type="stmt" count="0"/>
881
  <line num="108" type="stmt" count="0"/>
882
  <line num="109" type="stmt" count="0"/>
883
  <line num="111" type="stmt" count="0"/>
@@ -888,7 +844,6 @@
888
  <line num="129" type="method" name="render_archive" visibility="public" complexity="5" crap="30" count="0"/>
889
  <line num="130" type="stmt" count="0"/>
890
  <line num="131" type="stmt" count="0"/>
891
- <line num="132" type="stmt" count="0"/>
892
  <line num="134" type="stmt" count="0"/>
893
  <line num="135" type="stmt" count="0"/>
894
  <line num="137" type="stmt" count="0"/>
@@ -902,10 +857,8 @@
902
  <line num="149" type="stmt" count="0"/>
903
  <line num="150" type="stmt" count="0"/>
904
  <line num="151" type="stmt" count="0"/>
905
- <line num="152" type="stmt" count="0"/>
906
  <line num="154" type="stmt" count="0"/>
907
  <line num="155" type="stmt" count="0"/>
908
- <line num="156" type="stmt" count="0"/>
909
  <line num="160" type="stmt" count="0"/>
910
  <line num="161" type="stmt" count="0"/>
911
  <line num="162" type="stmt" count="0"/>
@@ -916,28 +869,24 @@
916
  <line num="188" type="method" name="wp_ajax_update" visibility="public" complexity="11" crap="132" count="0"/>
917
  <line num="189" type="stmt" count="0"/>
918
  <line num="190" type="stmt" count="0"/>
919
- <line num="191" type="stmt" count="0"/>
920
  <line num="193" type="stmt" count="0"/>
921
  <line num="194" type="stmt" count="0"/>
922
  <line num="195" type="stmt" count="0"/>
923
  <line num="197" type="stmt" count="0"/>
924
  <line num="198" type="stmt" count="0"/>
925
- <line num="199" type="stmt" count="0"/>
926
  <line num="201" type="stmt" count="0"/>
927
  <line num="203" type="stmt" count="0"/>
928
  <line num="204" type="stmt" count="0"/>
929
- <line num="205" type="stmt" count="0"/>
930
  <line num="208" type="stmt" count="0"/>
931
  <line num="210" type="stmt" count="0"/>
932
  <line num="211" type="stmt" count="0"/>
933
- <line num="212" type="stmt" count="0"/>
934
  <line num="214" type="stmt" count="0"/>
935
  <line num="215" type="stmt" count="0"/>
936
- <metrics loc="216" ncloc="122" classes="1" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="86" coveredstatements="2" elements="92" coveredelements="3"/>
937
  </file>
938
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-fail.php">
939
  <class name="Boldgrid_Backup_Admin_Archive_Fail" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
940
- <metrics complexity="10" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="45" coveredstatements="3" elements="50" coveredelements="4"/>
941
  </class>
942
  <line num="56" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
943
  <line num="57" type="stmt" count="20"/>
@@ -955,45 +904,36 @@
955
  <line num="113" type="stmt" count="0"/>
956
  <line num="114" type="stmt" count="0"/>
957
  <line num="115" type="stmt" count="0"/>
958
- <line num="116" type="stmt" count="0"/>
959
  <line num="118" type="stmt" count="0"/>
960
  <line num="121" type="stmt" count="0"/>
961
  <line num="123" type="stmt" count="0"/>
962
- <line num="124" type="stmt" count="0"/>
963
  <line num="125" type="stmt" count="0"/>
964
- <line num="126" type="stmt" count="0"/>
965
  <line num="128" type="stmt" count="0"/>
966
  <line num="129" type="stmt" count="0"/>
967
- <line num="136" type="method" name="shutdown" visibility="public" complexity="6" crap="42" count="0"/>
968
  <line num="138" type="stmt" count="0"/>
969
  <line num="141" type="stmt" count="0"/>
970
  <line num="147" type="stmt" count="0"/>
971
  <line num="148" type="stmt" count="0"/>
972
- <line num="149" type="stmt" count="0"/>
973
  <line num="151" type="stmt" count="0"/>
974
- <line num="154" type="stmt" count="0"/>
975
- <line num="155" type="stmt" count="0"/>
976
- <line num="156" type="stmt" count="0"/>
977
  <line num="163" type="stmt" count="0"/>
978
  <line num="164" type="stmt" count="0"/>
 
 
979
  <line num="167" type="stmt" count="0"/>
980
- <line num="168" type="stmt" count="0"/>
981
- <line num="169" type="stmt" count="0"/>
982
  <line num="170" type="stmt" count="0"/>
983
- <line num="171" type="stmt" count="0"/>
984
  <line num="172" type="stmt" count="0"/>
985
  <line num="173" type="stmt" count="0"/>
986
- <line num="175" type="stmt" count="0"/>
987
- <line num="177" type="stmt" count="0"/>
988
- <line num="178" type="stmt" count="0"/>
989
- <line num="179" type="stmt" count="0"/>
990
- <line num="180" type="stmt" count="0"/>
991
- <line num="181" type="stmt" count="0"/>
992
- <metrics loc="182" ncloc="76" classes="1" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="45" coveredstatements="3" elements="50" coveredelements="4"/>
993
  </file>
994
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive-log.php">
995
  <class name="Boldgrid_Backup_Admin_Archive_Log" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archive">
996
- <metrics complexity="20" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="27" elements="63" coveredelements="29"/>
997
  </class>
998
  <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
999
  <line num="38" type="stmt" count="20"/>
@@ -1036,7 +976,7 @@
1036
  <line num="153" type="stmt" count="0"/>
1037
  <line num="154" type="stmt" count="0"/>
1038
  <line num="156" type="stmt" count="0"/>
1039
- <line num="169" type="method" name="write" visibility="public" complexity="7" crap="8.81" count="4"/>
1040
  <line num="170" type="stmt" count="4"/>
1041
  <line num="171" type="stmt" count="0"/>
1042
  <line num="174" type="stmt" count="4"/>
@@ -1048,7 +988,6 @@
1048
  <line num="183" type="stmt" count="0"/>
1049
  <line num="187" type="stmt" count="4"/>
1050
  <line num="188" type="stmt" count="0"/>
1051
- <line num="189" type="stmt" count="0"/>
1052
  <line num="192" type="stmt" count="4"/>
1053
  <line num="193" type="stmt" count="4"/>
1054
  <line num="194" type="stmt" count="0"/>
@@ -1058,11 +997,11 @@
1058
  <line num="208" type="stmt" count="0"/>
1059
  <line num="212" type="stmt" count="4"/>
1060
  <line num="214" type="stmt" count="4"/>
1061
- <metrics loc="216" ncloc="104" classes="1" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="56" coveredstatements="27" elements="63" coveredelements="29"/>
1062
  </file>
1063
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archive.php">
1064
  <class name="Boldgrid_Backup_Admin_Archive" namespace="global" fullPackage="Boldgrid.Backup.Admin">
1065
- <metrics complexity="71" methods="22" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="195" coveredstatements="58" elements="217" coveredelements="64"/>
1066
  </class>
1067
  <line num="116" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
1068
  <line num="117" type="stmt" count="20"/>
@@ -1081,7 +1020,6 @@
1081
  <line num="174" type="stmt" count="0"/>
1082
  <line num="175" type="stmt" count="0"/>
1083
  <line num="176" type="stmt" count="0"/>
1084
- <line num="178" type="stmt" count="0"/>
1085
  <line num="180" type="stmt" count="0"/>
1086
  <line num="192" type="method" name="get_file" visibility="public" complexity="5" crap="30" count="0"/>
1087
  <line num="193" type="stmt" count="0"/>
@@ -1090,13 +1028,12 @@
1090
  <line num="199" type="stmt" count="0"/>
1091
  <line num="202" type="stmt" count="0"/>
1092
  <line num="203" type="stmt" count="0"/>
1093
- <line num="204" type="stmt" count="0"/>
1094
  <line num="206" type="stmt" count="0"/>
1095
  <line num="217" type="method" name="get_dump_file" visibility="public" complexity="1" crap="2" count="0"/>
1096
  <line num="223" type="stmt" count="0"/>
1097
  <line num="233" type="method" name="get_filesize" visibility="public" complexity="1" crap="2" count="0"/>
1098
  <line num="234" type="stmt" count="0"/>
1099
- <line num="244" type="method" name="init" visibility="public" complexity="7" crap="7.06" count="4"/>
1100
  <line num="245" type="stmt" count="4"/>
1101
  <line num="247" type="stmt" count="4"/>
1102
  <line num="248" type="stmt" count="2"/>
@@ -1108,11 +1045,9 @@
1108
  <line num="260" type="stmt" count="4"/>
1109
  <line num="261" type="stmt" count="4"/>
1110
  <line num="262" type="stmt" count="0"/>
1111
- <line num="263" type="stmt" count="0"/>
1112
  <line num="265" type="stmt" count="4"/>
1113
  <line num="266" type="stmt" count="4"/>
1114
  <line num="268" type="stmt" count="4"/>
1115
- <line num="269" type="stmt" count="4"/>
1116
  <line num="277" type="stmt" count="4"/>
1117
  <line num="279" type="stmt" count="4"/>
1118
  <line num="280" type="stmt" count="4"/>
@@ -1128,13 +1063,11 @@
1128
  <line num="315" type="stmt" count="1"/>
1129
  <line num="317" type="stmt" count="1"/>
1130
  <line num="318" type="stmt" count="1"/>
1131
- <line num="319" type="stmt" count="1"/>
1132
  <line num="325" type="stmt" count="1"/>
1133
  <line num="334" type="method" name="init_by_latest" visibility="public" complexity="2" crap="6" count="0"/>
1134
  <line num="335" type="stmt" count="0"/>
1135
  <line num="337" type="stmt" count="0"/>
1136
  <line num="338" type="stmt" count="0"/>
1137
- <line num="339" type="stmt" count="0"/>
1138
  <line num="340" type="stmt" count="0"/>
1139
  <line num="350" type="method" name="is_archive" visibility="public" complexity="4" crap="20" count="0"/>
1140
  <line num="351" type="stmt" count="0"/>
@@ -1143,7 +1076,6 @@
1143
  <line num="357" type="stmt" count="0"/>
1144
  <line num="358" type="stmt" count="0"/>
1145
  <line num="359" type="stmt" count="0"/>
1146
- <line num="361" type="stmt" count="0"/>
1147
  <line num="363" type="stmt" count="0"/>
1148
  <line num="377" type="method" name="is_site_archive" visibility="public" complexity="4" crap="4.18" count="5"/>
1149
  <line num="378" type="stmt" count="5"/>
@@ -1186,28 +1118,22 @@
1186
  <line num="514" type="stmt" count="0"/>
1187
  <line num="517" type="stmt" count="0"/>
1188
  <line num="518" type="stmt" count="0"/>
1189
- <line num="519" type="stmt" count="0"/>
1190
  <line num="522" type="stmt" count="0"/>
1191
  <line num="523" type="stmt" count="0"/>
1192
- <line num="524" type="stmt" count="0"/>
1193
  <line num="527" type="stmt" count="0"/>
1194
  <line num="528" type="stmt" count="0"/>
1195
  <line num="529" type="stmt" count="0"/>
1196
- <line num="531" type="stmt" count="0"/>
1197
- <line num="532" type="stmt" count="0"/>
1198
  <line num="535" type="stmt" count="0"/>
1199
  <line num="538" type="stmt" count="0"/>
1200
  <line num="539" type="stmt" count="0"/>
1201
- <line num="540" type="stmt" count="0"/>
1202
  <line num="542" type="stmt" count="0"/>
1203
  <line num="544" type="stmt" count="0"/>
1204
  <line num="545" type="stmt" count="0"/>
1205
  <line num="546" type="stmt" count="0"/>
1206
- <line num="548" type="stmt" count="0"/>
1207
- <line num="549" type="stmt" count="0"/>
1208
  <line num="551" type="stmt" count="0"/>
1209
  <line num="552" type="stmt" count="0"/>
1210
- <line num="553" type="stmt" count="0"/>
1211
  <line num="555" type="stmt" count="0"/>
1212
  <line num="571" type="method" name="generate_download_link" visibility="public" complexity="2" crap="6" count="0"/>
1213
  <line num="572" type="stmt" count="0"/>
@@ -1216,12 +1142,10 @@
1216
  <line num="576" type="stmt" count="0"/>
1217
  <line num="578" type="stmt" count="0"/>
1218
  <line num="579" type="stmt" count="0"/>
1219
- <line num="581" type="stmt" count="0"/>
1220
  <line num="583" type="stmt" count="0"/>
1221
  <line num="584" type="stmt" count="0"/>
1222
  <line num="585" type="stmt" count="0"/>
1223
- <line num="586" type="stmt" count="0"/>
1224
- <line num="587" type="stmt" count="0"/>
1225
  <line num="588" type="stmt" count="0"/>
1226
  <line num="591" type="stmt" count="0"/>
1227
  <line num="626" type="method" name="write_results_file" visibility="public" complexity="6" crap="42" count="0"/>
@@ -1247,9 +1171,8 @@
1247
  <line num="648" type="stmt" count="0"/>
1248
  <line num="649" type="stmt" count="0"/>
1249
  <line num="650" type="stmt" count="0"/>
1250
- <line num="651" type="stmt" count="0"/>
1251
  <line num="652" type="stmt" count="0"/>
1252
- <line num="654" type="stmt" count="0"/>
1253
  <line num="657" type="stmt" count="0"/>
1254
  <line num="658" type="stmt" count="0"/>
1255
  <line num="659" type="stmt" count="0"/>
@@ -1259,29 +1182,22 @@
1259
  <line num="663" type="stmt" count="0"/>
1260
  <line num="664" type="stmt" count="0"/>
1261
  <line num="665" type="stmt" count="0"/>
1262
- <line num="666" type="stmt" count="0"/>
1263
  <line num="668" type="stmt" count="0"/>
1264
  <line num="669" type="stmt" count="0"/>
1265
  <line num="670" type="stmt" count="0"/>
1266
- <line num="672" type="stmt" count="0"/>
1267
- <line num="673" type="stmt" count="0"/>
1268
  <line num="675" type="stmt" count="0"/>
1269
- <line num="687" type="method" name="delete_from_archive" visibility="public" complexity="9" crap="12.69" count="4"/>
1270
  <line num="688" type="stmt" count="4"/>
1271
  <line num="689" type="stmt" count="4"/>
1272
- <line num="690" type="stmt" count="4"/>
1273
  <line num="692" type="stmt" count="4"/>
1274
  <line num="693" type="stmt" count="4"/>
1275
  <line num="694" type="stmt" count="4"/>
1276
  <line num="695" type="stmt" count="0"/>
1277
  <line num="697" type="stmt" count="0"/>
1278
- <line num="698" type="stmt" count="0"/>
1279
- <line num="699" type="stmt" count="0"/>
1280
- <line num="700" type="stmt" count="0"/>
1281
- <line num="701" type="stmt" count="4"/>
1282
- <line num="702" type="stmt" count="4"/>
1283
  <line num="703" type="stmt" count="4"/>
1284
- <metrics loc="704" ncloc="341" classes="1" methods="22" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="195" coveredstatements="58" elements="217" coveredelements="64"/>
1285
  </file>
1286
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archiver-utility.php">
1287
  <class name="Boldgrid_Backup_Admin_Archiver_Utility" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archiver">
@@ -1304,7 +1220,7 @@
1304
  </file>
1305
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archives-all.php">
1306
  <class name="Boldgrid_Backup_Admin_Archives_All" namespace="global" fullPackage="Boldgrid.Backup.Admin.Archives">
1307
- <metrics complexity="20" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="3" elements="60" coveredelements="4"/>
1308
  </class>
1309
  <line num="97" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
1310
  <line num="98" type="stmt" count="20"/>
@@ -1315,22 +1231,17 @@
1315
  <line num="113" type="stmt" count="0"/>
1316
  <line num="114" type="stmt" count="0"/>
1317
  <line num="115" type="stmt" count="0"/>
1318
- <line num="116" type="stmt" count="0"/>
1319
  <line num="119" type="stmt" count="0"/>
1320
  <line num="120" type="stmt" count="0"/>
1321
  <line num="123" type="stmt" count="0"/>
1322
  <line num="124" type="stmt" count="0"/>
1323
- <line num="125" type="stmt" count="0"/>
1324
- <line num="126" type="stmt" count="0"/>
1325
  <line num="129" type="stmt" count="0"/>
1326
  <line num="130" type="stmt" count="0"/>
1327
- <line num="131" type="stmt" count="0"/>
1328
  <line num="132" type="stmt" count="0"/>
1329
  <line num="143" type="method" name="has_location_type" visibility="public" complexity="4" crap="20" count="0"/>
1330
  <line num="144" type="stmt" count="0"/>
1331
  <line num="145" type="stmt" count="0"/>
1332
  <line num="146" type="stmt" count="0"/>
1333
- <line num="148" type="stmt" count="0"/>
1334
  <line num="150" type="stmt" count="0"/>
1335
  <line num="158" type="method" name="init_location_count" visibility="public" complexity="6" crap="42" count="0"/>
1336
  <line num="160" type="stmt" count="0"/>
@@ -1342,10 +1253,7 @@
1342
  <line num="170" type="stmt" count="0"/>
1343
  <line num="173" type="stmt" count="0"/>
1344
  <line num="174" type="stmt" count="0"/>
1345
- <line num="175" type="stmt" count="0"/>
1346
  <line num="177" type="stmt" count="0"/>
1347
- <line num="178" type="stmt" count="0"/>
1348
- <line num="179" type="stmt" count="0"/>
1349
  <line num="180" type="stmt" count="0"/>
1350
  <line num="187" type="method" name="init" visibility="public" complexity="3" crap="12" count="0"/>
1351
  <line num="188" type="stmt" count="0"/>
@@ -1357,20 +1265,16 @@
1357
  <line num="197" type="stmt" count="0"/>
1358
  <line num="198" type="stmt" count="0"/>
1359
  <line num="201" type="stmt" count="0"/>
1360
- <line num="202" type="stmt" count="0"/>
1361
- <line num="203" type="stmt" count="0"/>
1362
- <line num="204" type="stmt" count="0"/>
1363
  <line num="207" type="stmt" count="0"/>
1364
- <line num="208" type="stmt" count="0"/>
1365
  <line num="210" type="stmt" count="0"/>
1366
  <line num="212" type="stmt" count="0"/>
1367
  <line num="214" type="stmt" count="0"/>
1368
  <line num="215" type="stmt" count="0"/>
1369
- <metrics loc="216" ncloc="108" classes="1" methods="5" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="55" coveredstatements="3" elements="60" coveredelements="4"/>
1370
  </file>
1371
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-archives.php">
1372
  <class name="Boldgrid_Backup_Admin_Archives" namespace="global" fullPackage="Boldgrid.Backup.Admin">
1373
- <metrics complexity="28" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="123" coveredstatements="2" elements="129" coveredelements="3"/>
1374
  </class>
1375
  <line num="37" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
1376
  <line num="38" type="stmt" count="20"/>
@@ -1379,14 +1283,12 @@
1379
  <line num="55" type="stmt" count="0"/>
1380
  <line num="56" type="stmt" count="0"/>
1381
  <line num="57" type="stmt" count="0"/>
1382
- <line num="59" type="stmt" count="0"/>
1383
  <line num="61" type="stmt" count="0"/>
1384
  <line num="72" type="method" name="get_location_type_title" visibility="public" complexity="3" crap="12" count="0"/>
1385
  <line num="73" type="stmt" count="0"/>
1386
  <line num="74" type="stmt" count="0"/>
1387
  <line num="75" type="stmt" count="0"/>
1388
  <line num="76" type="stmt" count="0"/>
1389
- <line num="77" type="stmt" count="0"/>
1390
  <line num="78" type="stmt" count="0"/>
1391
  <line num="81" type="stmt" count="0"/>
1392
  <line num="95" type="method" name="get_locations" visibility="public" complexity="5" crap="30" count="0"/>
@@ -1398,14 +1300,12 @@
1398
  <line num="110" type="stmt" count="0"/>
1399
  <line num="111" type="stmt" count="0"/>
1400
  <line num="112" type="stmt" count="0"/>
1401
- <line num="113" type="stmt" count="0"/>
1402
  <line num="115" type="stmt" count="0"/>
1403
  <line num="116" type="stmt" count="0"/>
1404
  <line num="117" type="stmt" count="0"/>
1405
  <line num="118" type="stmt" count="0"/>
1406
  <line num="119" type="stmt" count="0"/>
1407
- <line num="121" type="stmt" count="0"/>
1408
- <line num="122" type="stmt" count="0"/>
1409
  <line num="124" type="stmt" count="0"/>
1410
  <line num="126" type="stmt" count="0"/>
1411
  <line num="139" type="method" name="get_mine_count" visibility="public" complexity="3" crap="12" count="0"/>
@@ -1415,18 +1315,16 @@
1415
  <line num="148" type="stmt" count="0"/>
1416
  <line num="150" type="stmt" count="0"/>
1417
  <line num="152" type="stmt" count="0"/>
1418
- <line num="155" type="stmt" count="0"/>
1419
  <line num="156" type="stmt" count="0"/>
1420
  <line num="157" type="stmt" count="0"/>
1421
  <line num="158" type="stmt" count="0"/>
1422
- <line num="160" type="stmt" count="0"/>
1423
- <line num="161" type="stmt" count="0"/>
1424
  <line num="164" type="stmt" count="0"/>
1425
  <line num="166" type="stmt" count="0"/>
1426
  <line num="169" type="stmt" count="0"/>
1427
- <line num="173" type="stmt" count="0"/>
1428
  <line num="174" type="stmt" count="0"/>
1429
- <line num="175" type="stmt" count="0"/>
1430
  <line num="177" type="stmt" count="0"/>
1431
  <line num="195" type="method" name="get_table" visibility="public" complexity="12" crap="156" count="0"/>
1432
  <line num="196" type="stmt" count="0"/>
@@ -1436,14 +1334,11 @@
1436
  <line num="206" type="stmt" count="0"/>
1437
  <line num="209" type="stmt" count="0"/>
1438
  <line num="210" type="stmt" count="0"/>
1439
- <line num="211" type="stmt" count="0"/>
1440
  <line num="213" type="stmt" count="0"/>
1441
  <line num="215" type="stmt" count="0"/>
1442
  <line num="222" type="stmt" count="0"/>
1443
- <line num="223" type="stmt" count="0"/>
1444
  <line num="224" type="stmt" count="0"/>
1445
  <line num="225" type="stmt" count="0"/>
1446
- <line num="226" type="stmt" count="0"/>
1447
  <line num="228" type="stmt" count="0"/>
1448
  <line num="229" type="stmt" count="0"/>
1449
  <line num="232" type="stmt" count="0"/>
@@ -1463,29 +1358,23 @@
1463
  <line num="267" type="stmt" count="0"/>
1464
  <line num="268" type="stmt" count="0"/>
1465
  <line num="269" type="stmt" count="0"/>
1466
- <line num="271" type="stmt" count="0"/>
1467
- <line num="272" type="stmt" count="0"/>
1468
- <line num="276" type="stmt" count="0"/>
1469
- <line num="277" type="stmt" count="0"/>
1470
  <line num="289" type="stmt" count="0"/>
1471
  <line num="294" type="stmt" count="0"/>
1472
- <line num="298" type="stmt" count="0"/>
1473
  <line num="300" type="stmt" count="0"/>
1474
  <line num="301" type="stmt" count="0"/>
1475
  <line num="302" type="stmt" count="0"/>
1476
  <line num="304" type="stmt" count="0"/>
1477
  <line num="305" type="stmt" count="0"/>
1478
- <line num="307" type="stmt" count="0"/>
1479
  <line num="308" type="stmt" count="0"/>
1480
- <line num="309" type="stmt" count="0"/>
1481
- <line num="310" type="stmt" count="0"/>
1482
  <line num="311" type="stmt" count="0"/>
1483
  <line num="312" type="stmt" count="0"/>
1484
  <line num="314" type="stmt" count="0"/>
1485
  <line num="315" type="stmt" count="0"/>
1486
- <line num="317" type="stmt" count="0"/>
1487
  <line num="318" type="stmt" count="0"/>
1488
- <line num="319" type="stmt" count="0"/>
1489
  <line num="322" type="stmt" count="0"/>
1490
  <line num="324" type="stmt" count="0"/>
1491
  <line num="325" type="stmt" count="0"/>
@@ -1493,19 +1382,16 @@
1493
  <line num="327" type="stmt" count="0"/>
1494
  <line num="329" type="stmt" count="0"/>
1495
  <line num="330" type="stmt" count="0"/>
1496
- <line num="332" type="stmt" count="0"/>
1497
  <line num="333" type="stmt" count="0"/>
1498
- <line num="334" type="stmt" count="0"/>
1499
  <line num="335" type="stmt" count="0"/>
1500
- <line num="336" type="stmt" count="0"/>
1501
- <line num="340" type="stmt" count="0"/>
1502
- <line num="341" type="stmt" count="0"/>
1503
  <line num="343" type="stmt" count="0"/>
1504
- <metrics loc="345" ncloc="207" classes="1" methods="6" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="123" coveredstatements="2" elements="129" coveredelements="3"/>
1505
  </file>
1506
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-auto-rollback.php">
1507
  <class name="Boldgrid_Backup_Admin_Auto_Rollback" namespace="global" fullPackage="Boldgrid.Backup.Admin.Auto">
1508
- <metrics complexity="112" methods="26" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="425" coveredstatements="29" elements="451" coveredelements="31"/>
1509
  </class>
1510
  <line num="139" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="20"/>
1511
  <line num="140" type="stmt" count="20"/>
@@ -1545,7 +1431,7 @@
1545
  <line num="222" type="stmt" count="0"/>
1546
  <line num="223" type="stmt" count="0"/>
1547
  <line num="224" type="stmt" count="0"/>
1548
- <line num="226" type="stmt" count="0"/>
1549
  <line num="228" type="stmt" count="0"/>
1550
  <line num="229" type="stmt" count="0"/>
1551
  <line num="239" type="method" name="enqueue_customize_controls" visibility="public" complexity="1" crap="2" count="0"/>
@@ -1554,18 +1440,17 @@
1554
  <line num="243" type="stmt" count="0"/>
1555
  <line num="244" type="stmt" count="0"/>
1556
  <line num="245" type="stmt" count="0"/>
1557
- <line num="247" type="stmt" count="0"/>
1558
  <line num="249" type="stmt" count="0"/>
1559
  <line num="250" type="stmt" count="0"/>
1560
  <line num="251" type="stmt" count="0"/>
1561
  <line num="252" type="stmt" count="0"/>
1562
  <line num="253" type="stmt" count="0"/>
1563
- <line num="255" type="stmt" count="0"/>
1564
  <line num="258" type="stmt" count="0"/>
1565
  <line num="259" type="stmt" count="0"/>
1566
  <line num="260" type="stmt" count="0"/>
1567
  <line num="261" type="stmt" count="0"/>
1568
- <line num="262" type="stmt" count="0"/>
1569
  <line num="263" type="stmt" count="0"/>
1570
  <line num="264" type="stmt" count="0"/>
1571
  <line num="266" type="stmt" count="0"/>
@@ -1579,7 +1464,7 @@
1579
  <line num="283" type="stmt" count="0"/>
1580
  <line num="284" type="stmt" count="0"/>
1581
  <line num="285" type="stmt" count="0"/>
1582
- <line num="287" type="stmt" count="0"/>
1583
  <line num="290" type="stmt" count="0"/>
1584
  <line num="291" type="stmt" count="0"/>
1585
  <line num="292" type="stmt" count="0"/>
@@ -1588,7 +1473,6 @@
1588
  <line num="295" type="stmt" count="0"/>
1589
  <line num="296" type="stmt" count="0"/>
1590
  <line num="297" type="stmt" count="0"/>
1591
- <line num="298" type="stmt" count="0"/>
1592
  <line num="300" type="stmt" count="0"/>
1593
  <line num="301" type="stmt" count="0"/>
1594
  <line num="302" type="stmt" count="0"/>
@@ -1599,12 +1483,10 @@
1599
  <line num="326" type="stmt" count="0"/>
1600
  <line num="327" type="stmt" count="0"/>
1601
  <line num="328" type="stmt" count="0"/>
1602
- <line num="330" type="stmt" count="0"/>
1603
  <line num="332" type="stmt" count="0"/>
1604
  <line num="335" type="stmt" count="0"/>
1605
- <line num="336" type="stmt" count="0"/>
1606
  <line num="337" type="stmt" count="0"/>
1607
- <line num="338" type="stmt" count="0"/>
1608
  <line num="340" type="stmt" count="0"/>
1609
  <line num="346" type="stmt" count="0"/>
1610
  <line num="347" type="stmt" count="0"/>
@@ -1616,13 +1498,11 @@
1616
  <line num="366" type="stmt" count="0"/>
1617
  <line num="367" type="stmt" count="0"/>
1618
  <line num="368" type="stmt" count="0"/>
1619
- <line num="370" type="stmt" count="0"/>
1620
  <line num="374" type="stmt" count="0"/>
1621
  <line num="375" type="stmt" count="0"/>
1622
- <line num="376" type="stmt" count="0"/>
1623
  <line num="378" type="stmt" count="0"/>
1624
  <line num="380" type="stmt" count="0"/>
1625
- <line num="381" type="stmt" count="0"/>
1626
  <line num="382" type="stmt" count="0"/>
1627
  <line num="395" type="method" name="notice_countdown_show" visibility="public" complexity="13" crap="182" count="0"/>
1628
  <line num="397" type="stmt" count="0"/>
@@ -1632,7 +1512,6 @@
1632
  <line num="402" type="stmt" count="0"/>
1633
  <line num="404" type="stmt" count="0"/>
1634
  <line num="405" type="stmt" count="0"/>
1635
- <line num="406" type="stmt" count="0"/>
1636
  <line num="432" type="stmt" count="0"/>
1637
  <line num="435" type="stmt" count="0"/>
1638
  <line num="436" type="stmt" count="0"/>
@@ -1649,7 +1528,7 @@
1649
  <line num="471" type="stmt" count="0"/>
1650
  <line num="472" type="stmt" count="0"/>
1651
  <line num="473" type="stmt" count="0"/>
1652
- <line num="475" type="stmt" count="0"/>
1653
  <line num="477" type="stmt" count="0"/>
1654
  <line num="485" type="stmt" count="0"/>
1655
  <line num="486" type="stmt" count="0"/>
@@ -1660,15 +1539,12 @@
1660
  <line num="510" type="stmt" count="0"/>
1661
  <line num="512" type="stmt" count="0"/>
1662
  <line num="513" type="stmt" count="0"/>
1663
- <line num="514" type="stmt" count="0"/>
1664
- <line num="515" type="stmt" count="0"/>
1665
  <line num="517" type="stmt" count="0"/>
1666
  <line num="518" type="stmt" count="0"/>
1667
  <line num="520" type="stmt" count="0"/>
1668
  <line num="521" type="stmt" count="0"/>
1669
  <line num="523" type="stmt" count="0"/>
1670
  <line num="526" type="stmt" count="0"/>
1671
- <line num="527" type="stmt" count="0"/>
1672
  <line num="528" type="stmt" count="0"/>
1673
  <line num="530" type="stmt" count="0"/>
1674
  <line num="531" type="stmt" count="0"/>
@@ -1676,11 +1552,10 @@
1676
  <line num="538" type="stmt" count="0"/>
1677
  <line num="541" type="stmt" count="0"/>
1678
  <line num="544" type="stmt" count="0"/>
1679
- <line num="548" type="stmt" count="0"/>
1680
  <line num="549" type="stmt" count="0"/>
1681
  <line num="551" type="stmt" count="0"/>
1682
  <line num="552" type="stmt" count="0"/>
1683
- <line num="554" type="stmt" count="0"/>
1684
  <line num="555" type="stmt" count="0"/>
1685
  <line num="556" type="stmt" count="0"/>
1686
  <line num="560" type="stmt" count="0"/>
@@ -1695,30 +1570,25 @@
1695
  <line num="595" type="stmt" count="0"/>
1696
  <line num="596" type="stmt" count="0"/>
1697
  <line num="598" type="stmt" count="0"/>
1698
- <line num="612" type="method" name="get_time_data" visibility="public" complexity="6" crap="6.26" count="2"/>
1699
  <line num="613" type="stmt" count="2"/>
1700
  <line num="614" type="stmt" count="2"/>
1701
  <line num="617" type="stmt" count="1"/>
1702
  <line num="620" type="stmt" count="1"/>
1703
  <line num="623" type="stmt" count="1"/>
1704
  <line num="624" type="stmt" count="1"/>
1705
- <line num="625" type="stmt" count="1"/>
1706
  <line num="628" type="stmt" count="1"/>
1707
  <line num="630" type="stmt" count="1"/>
1708
  <line num="631" type="stmt" count="1"/>
1709
  <line num="632" type="stmt" count="1"/>
1710
  <line num="633" type="stmt" count="1"/>
1711
  <line num="634" type="stmt" count="1"/>
1712
- <line num="635" type="stmt" count="1"/>
1713
  <line num="638" type="stmt" count="1"/>
1714
  <line num="639" type="stmt" count="0"/>
1715
- <line num="640" type="stmt" count="0"/>
1716
  <line num="643" type="stmt" count="1"/>
1717
  <line num="644" type="stmt" count="0"/>
1718
- <line num="645" type="stmt" count="0"/>
1719
  <line num="648" type="stmt" count="1"/>
1720
  <line num="649" type="stmt" count="1"/>
1721
- <line num="650" type="stmt" count="1"/>
1722
  <line num="651" type="stmt" count="0"/>
1723
  <line num="654" type="stmt" count="1"/>
1724
  <line num="656" type="stmt" count="1"/>
@@ -1740,14 +1610,13 @@
1740
  <line num="697" type="stmt" count="0"/>
1741
  <line num="699" type="stmt" count="0"/>
1742
  <line num="700" type="stmt" count="0"/>
1743
- <line num="702" type="stmt" count="0"/>
1744
- <line num="704" type="stmt" count="0"/>
1745
  <line num="705" type="stmt" count="0"/>
1746
  <line num="706" type="stmt" count="0"/>
1747
  <line num="707" type="stmt" count="0"/>
1748
  <line num="708" type="stmt" count="0"/>
1749
  <line num="709" type="stmt" count="0"/>
1750
- <line num="710" type="stmt" count="0"/>
1751
  <line num="711" type="stmt" count="0"/>
1752
  <line num="712" type="stmt" count="0"/>
1753
  <line num="713" type="stmt" count="0"/>
@@ -1756,17 +1625,14 @@
1756
  <line num="717" type="stmt" count="0"/>
1757
  <line num="718" type="stmt" count="0"/>
1758
  <line num="719" type="stmt" count="0"/>
1759
- <line num="720" type="stmt" count="0"/>
1760
  <line num="721" type="stmt" count="0"/>
1761
  <line num="722" type="stmt" count="0"/>
1762
  <line num="723" type="stmt" count="0"/>
1763
- <line num="724" type="stmt" count="0"/>
1764
  <line num="726" type="stmt" count="0"/>
1765
  <line num="736" type="method" name="notice_backup_get" visibility="public" complexity="3" crap="12" count="0"/>
1766
  <line num="737" type="stmt" count="0"/>
1767
  <line num="738" type="stmt" count="0"/>
1768
  <line num="739" type="stmt" count="0"/>
1769
- <line num="740" type="stmt" count="0"/>
1770
  <line num="742" type="stmt" count="0"/>
1771
  <line num="744" type="stmt" count="0"/>
1772
  <line num="745" type="stmt" count="0"/>
@@ -1775,22 +1641,16 @@
1775
  <line num="748" type="stmt" count="0"/>
1776
  <line num="749" type="stmt" count="0"/>
1777
  <line num="750" type="stmt" count="0"/>
1778
- <line num="751" type="stmt" count="0"/>
1779
  <line num="753" type="stmt" count="0"/>
1780
  <line num="755" type="stmt" count="0"/>
1781
  <line num="757" type="stmt" count="0"/>
1782
  <line num="758" type="stmt" count="0"/>
1783
  <line num="759" type="stmt" count="0"/>
1784
  <line num="760" type="stmt" count="0"/>
1785
- <line num="761" type="stmt" count="0"/>
1786
  <line num="763" type="stmt" count="0"/>
1787
  <line num="775" type="method" name="notice_backup_show" visibility="public" complexity="14" crap="210" count="0"/>
1788
  <line num="776" type="stmt" count="0"/>
1789
  <line num="783" type="stmt" count="0"/>
1790
- <line num="784" type="stmt" count="0"/>
1791
- <line num="785" type="stmt" count="0"/>
1792
- <line num="786" type="stmt" count="0"/>
1793
- <line num="787" type="stmt" count="0"/>
1794
  <line num="790" type="stmt" count="0"/>
1795
  <line num="796" type="stmt" count="0"/>
1796
  <line num="797" type="stmt" count="0"/>
@@ -1800,15 +1660,6 @@
1800
  <line num="810" type="stmt" count="0"/>
1801
  <line num="813" type="stmt" count="0"/>
1802
  <line num="817" type="stmt" count="0"/>
1803
- <line num="818" type="stmt" count="0"/>
1804
- <line num="819" type="stmt" count="0"/>
1805
- <line num="821" type="stmt" count="0"/>
1806
- <line num="822" type="stmt" count="0"/>
1807
- <line num="823" type="stmt" count="0"/>
1808
- <line num="825" type="stmt" count="0"/>
1809
- <line num="826" type="stmt" count="0"/>
1810
- <line num="827" type="stmt" count="0"/>
1811
- <line num="828" type="stmt" count="0"/>
1812
  <line num="837" type="stmt" count="0"/>
1813
  <line num="846" type="stmt" count="0"/>
1814
  <line num="847" type="stmt" count="0"/>
@@ -1816,8 +1667,6 @@
1816
  <line num="849" type="stmt" count="0"/>
1817
  <line num="850" type="stmt" count="0"/>
1818
  <line num="851" type="stmt" count="0"/>
1819
- <line num="853" type="stmt" count="0"/>
1820
- <line num="854" type="stmt" count="0"/>
1821
  <line num="856" type="stmt" count="0"/>
1822
  <line num="857" type="stmt" count="0"/>
1823
  <line num="861" type="stmt" count="0"/>
@@ -1872,15 +1721,12 @@
1872
  <line num="998" type="stmt" count="0"/>
1873
  <line num="999" type="stmt" count="0"/>
1874
  <line num="1000" type="stmt" count="0"/>
1875
- <line num="1001" type="stmt" count="0"/>
1876
  <line num="1004" type="stmt" count="0"/>
1877
  <line num="1006" type="stmt" count="0"/>
1878
  <line num="1007" type="stmt" count="0"/>
1879
- <line num="1008" type="stmt" count="0"/>
1880
  <line num="1010" type="stmt" count="0"/>
1881
  <line num="1013" type="stmt" count="0"/>
1882
  <line num="1014" type="stmt" count="0"/>
1883
- <line num="1015" type="stmt" count="0"/>
1884
  <line num="1017" type="stmt" count="0"/>
1885
  <line num="1031" type="method" name="notice_activated_show" visibility="public" complexity="2" crap="6" count="0"/>
1886
  <line num="1037" type="stmt" count="0"/>
@@ -1892,14 +1738,12 @@
1892
  <line num="1055" type="stmt" count="0"/>
1893
  <line num="1056" type="stmt" count="0"/>
1894
  <line num="1058" type="stmt" count="0"/>
1895
- <line num="1060" type="stmt" count="0"/>
1896
- <line num="1061" type="stmt" count="0"/>
1897
  <line num="1064" type="stmt" count="0"/>
1898
  <line num="1065" type="stmt" count="0"/>
1899
  <line num="1066" type="stmt" count="0"/>
1900
  <line num="1068" type="stmt" count="0"/>
1901
- <line num="1070" type="stmt" count="0"/>
1902
- <line num="1071" type="stmt" count="0"/>
1903
  <line num="1074" type="stmt" count="0"/>
1904
  <line num="1077" type="stmt" count="0"/>
1905
  <line num="1080" type="stmt" count="0"/>
@@ -1907,21 +1751,17 @@
1907
  <line num="1090" type="method" name="wp_ajax_get_deadline" visibility="public" complexity="3" crap="12" count="0"/>
1908
  <line num="1092" type="stmt" count="0"/>
1909
  <line num="1093" type="stmt" count="0"/>
1910
- <line num="1094" type="stmt" count="0"/>
1911
  <line num="1097" type="stmt" count="0"/>
1912
  <line num="1100" type="stmt" count="0"/>
1913
  <line num="1101" type="stmt" count="0"/>
1914
- <line num="1102" type="stmt" count="0"/>
1915
  <line num="1105" type="stmt" count="0"/>
1916
  <line num="1106" type="stmt" count="0"/>
1917
  <line num="1116" type="method" name="wp_ajax_get_countdown_notice" visibility="public" complexity="3" crap="12" count="0"/>
1918
  <line num="1117" type="stmt" count="0"/>
1919
  <line num="1118" type="stmt" count="0"/>
1920
- <line num="1119" type="stmt" count="0"/>
1921
  <line num="1121" type="stmt" count="0"/>
1922
  <line num="1122" type="stmt" count="0"/>
1923
  <line num="1123" type="stmt" count="0"/>
1924
- <line num="1124" type="stmt" count="0"/>
1925
  <line num="1126" type="stmt" count="0"/>
1926
  <line num="1127" type="stmt" count="0"/>
1927
  <line num="1129" type="stmt" count="0"/>
@@ -1929,12 +1769,10 @@
1929
  <line num="1139" type="method" name="wp_ajax_get_protect_notice" visibility="public" complexity="4" crap="20" count="0"/>
1930
  <line num="1140" type="stmt" count="0"/>
1931
  <line num="1141" type="stmt" count="0"/>
1932
- <line num="1142" type="stmt" count="0"/>
1933
  <line num="1144" type="stmt" count="0"/>
1934
  <line num="1145" type="stmt" count="0"/>
1935
  <line num="1147" type="stmt" count="0"/>
1936
  <line num="1148" type="stmt" count="0"/>
1937
- <line num="1149" type="stmt" count="0"/>
1938
  <line num="1151" type="stmt" count="0"/>
1939
  <line num="1152" type="stmt" count="0"/>
1940
  <line num="1153" type="stmt" count="0"/>
@@ -1948,21 +1786,19 @@
1948
  <line num="1174" type="stmt" count="0"/>
1949
  <line num="1175" type="stmt" count="0"/>
1950
  <line num="1176" type="stmt" count="0"/>
1951
- <line num="1177" type="stmt" count="0"/>
1952
  <line num="1179" type="stmt" count="0"/>
1953
  <line num="1191" type="method" name="wp_ajax_cli_cancel" visibility="public" complexity="3" crap="12" count="0"/>
1954
  <line num="1192" type="stmt" count="0"/>
1955
  <line num="1194" type="stmt" count="0"/>
1956
  <line num="1195" type="stmt" count="0"/>
1957
  <line num="1196" type="stmt" count="0"/>
1958
- <line num="1197" type="stmt" count="0"/>
1959
  <line num="1198" type="stmt" count="0"/>
1960
  <line num="1200" type="stmt" count="0"/>
1961
- <metrics loc="1201" ncloc="662" classes="1" methods="26" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="425" coveredstatements="29" elements="451" coveredelements="31"/>
1962
  </file>
1963
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-backup-dir.php">
1964
  <class name="Boldgrid_Backup_Admin_Backup_Dir" namespace="global" fullPackage="Boldgrid.Backup.Admin.Backup">
1965
- <metrics complexity="61" methods="14" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="197" coveredstatements="123" elements="211" coveredelements="128"/>
1966
  </class>
1967
  <line num="64" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
1968
  <line num="65" type="stmt" count="20"/>
@@ -1970,7 +1806,7 @@
1970
  <line num="75" type="method" name="can_exec_write" visibility="public" complexity="1" crap="1" count="1"/>
1971
  <line num="76" type="stmt" count="1"/>
1972
  <line num="78" type="stmt" count="1"/>
1973
- <line num="89" type="method" name="create" visibility="public" complexity="11" crap="11.15" count="2"/>
1974
  <line num="90" type="stmt" count="2"/>
1975
  <line num="93" type="stmt" count="2"/>
1976
  <line num="96" type="stmt" count="2"/>
@@ -1982,22 +1818,16 @@
1982
  <line num="108" type="stmt" count="2"/>
1983
  <line num="109" type="stmt" count="2"/>
1984
  <line num="110" type="stmt" count="2"/>
1985
- <line num="111" type="stmt" count="2"/>
1986
  <line num="113" type="stmt" count="2"/>
1987
  <line num="114" type="stmt" count="2"/>
1988
  <line num="115" type="stmt" count="2"/>
1989
- <line num="116" type="stmt" count="2"/>
1990
  <line num="118" type="stmt" count="2"/>
1991
  <line num="119" type="stmt" count="2"/>
1992
  <line num="120" type="stmt" count="2"/>
1993
- <line num="121" type="stmt" count="2"/>
1994
  <line num="123" type="stmt" count="2"/>
1995
  <line num="124" type="stmt" count="2"/>
1996
- <line num="125" type="stmt" count="2"/>
1997
  <line num="127" type="stmt" count="2"/>
1998
  <line num="128" type="stmt" count="2"/>
1999
- <line num="129" type="stmt" count="2"/>
2000
- <line num="130" type="stmt" count="2"/>
2001
  <line num="140" type="stmt" count="2"/>
2002
  <line num="142" type="stmt" count="2"/>
2003
  <line num="143" type="stmt" count="2"/>
@@ -2008,7 +1838,6 @@
2008
  <line num="148" type="stmt" count="1"/>
2009
  <line num="149" type="stmt" count="0"/>
2010
  <line num="150" type="stmt" count="0"/>
2011
- <line num="152" type="stmt" count="1"/>
2012
  <line num="153" type="stmt" count="2"/>
2013
  <line num="154" type="stmt" count="2"/>
2014
  <line num="155" type="stmt" count="2"/>
@@ -2021,18 +1850,13 @@
2021
  <line num="164" type="stmt" count="1"/>
2022
  <line num="165" type="stmt" count="0"/>
2023
  <line num="166" type="stmt" count="0"/>
2024
- <line num="168" type="stmt" count="1"/>
2025
- <line num="169" type="stmt" count="1"/>
2026
  <line num="170" type="stmt" count="2"/>
2027
- <line num="171" type="stmt" count="2"/>
2028
- <line num="172" type="stmt" count="2"/>
2029
  <line num="174" type="stmt" count="2"/>
2030
  <line num="184" type="method" name="dirlist" visibility="public" complexity="2" crap="6" count="0"/>
2031
  <line num="185" type="stmt" count="0"/>
2032
  <line num="187" type="stmt" count="0"/>
2033
  <line num="189" type="stmt" count="0"/>
2034
  <line num="190" type="stmt" count="0"/>
2035
- <line num="191" type="stmt" count="0"/>
2036
  <line num="193" type="stmt" count="0"/>
2037
  <line num="204" type="method" name="dirlist_containing" visibility="public" complexity="3" crap="12" count="0"/>
2038
  <line num="205" type="stmt" count="0"/>
@@ -2040,8 +1864,6 @@
2040
  <line num="209" type="stmt" count="0"/>
2041
  <line num="210" type="stmt" count="0"/>
2042
  <line num="211" type="stmt" count="0"/>
2043
- <line num="212" type="stmt" count="0"/>
2044
- <line num="213" type="stmt" count="0"/>
2045
  <line num="215" type="stmt" count="0"/>
2046
  <line num="225" type="method" name="get" visibility="public" complexity="4" crap="4.25" count="6"/>
2047
  <line num="228" type="stmt" count="6"/>
@@ -2065,12 +1887,10 @@
2065
  <line num="279" type="stmt" count="6"/>
2066
  <line num="280" type="stmt" count="6"/>
2067
  <line num="281" type="stmt" count="6"/>
2068
- <line num="283" type="stmt" count="6"/>
2069
  <line num="293" type="stmt" count="6"/>
2070
  <line num="294" type="stmt" count="1"/>
2071
- <line num="295" type="stmt" count="1"/>
2072
  <line num="297" type="stmt" count="6"/>
2073
- <line num="306" type="method" name="get_possible_dirs" visibility="public" complexity="3" crap="4.46" count="2"/>
2074
  <line num="307" type="stmt" count="2"/>
2075
  <line num="310" type="stmt" count="2"/>
2076
  <line num="312" type="stmt" count="2"/>
@@ -2078,8 +1898,6 @@
2078
  <line num="316" type="stmt" count="0"/>
2079
  <line num="327" type="stmt" count="0"/>
2080
  <line num="328" type="stmt" count="0"/>
2081
- <line num="329" type="stmt" count="0"/>
2082
- <line num="330" type="stmt" count="0"/>
2083
  <line num="333" type="stmt" count="2"/>
2084
  <line num="335" type="stmt" count="2"/>
2085
  <line num="348" type="method" name="get_path_to" visibility="public" complexity="1" crap="1" count="3"/>
@@ -2090,9 +1908,8 @@
2090
  <line num="362" type="stmt" count="0"/>
2091
  <line num="364" type="stmt" count="0"/>
2092
  <line num="365" type="stmt" count="0"/>
2093
- <line num="366" type="stmt" count="0"/>
2094
  <line num="368" type="stmt" count="0"/>
2095
- <line num="383" type="method" name="guess_and_set" visibility="public" complexity="7" crap="7.29" count="2"/>
2096
  <line num="384" type="stmt" count="2"/>
2097
  <line num="386" type="stmt" count="2"/>
2098
  <line num="388" type="stmt" count="2"/>
@@ -2107,7 +1924,6 @@
2107
  <line num="412" type="stmt" count="2"/>
2108
  <line num="413" type="stmt" count="0"/>
2109
  <line num="417" type="stmt" count="2"/>
2110
- <line num="418" type="stmt" count="2"/>
2111
  <line num="420" type="stmt" count="2"/>
2112
  <line num="421" type="stmt" count="0"/>
2113
  <line num="424" type="stmt" count="2"/>
@@ -2119,51 +1935,45 @@
2119
  <line num="457" type="stmt" count="4"/>
2120
  <line num="458" type="stmt" count="4"/>
2121
  <line num="460" type="stmt" count="4"/>
2122
- <line num="474" type="method" name="is_valid" visibility="public" complexity="14" crap="98.54" count="2"/>
2123
  <line num="476" type="stmt" count="2"/>
2124
  <line num="477" type="stmt" count="0"/>
2125
  <line num="480" type="stmt" count="2"/>
2126
  <line num="482" type="stmt" count="2"/>
2127
  <line num="483" type="stmt" count="0"/>
2128
  <line num="485" type="stmt" count="0"/>
2129
- <line num="487" type="stmt" count="0"/>
2130
- <line num="488" type="stmt" count="0"/>
2131
  <line num="490" type="stmt" count="2"/>
2132
  <line num="491" type="stmt" count="0"/>
2133
  <line num="493" type="stmt" count="0"/>
2134
- <line num="495" type="stmt" count="0"/>
2135
- <line num="496" type="stmt" count="0"/>
2136
  <line num="498" type="stmt" count="2"/>
2137
  <line num="499" type="stmt" count="0"/>
2138
  <line num="501" type="stmt" count="0"/>
2139
  <line num="502" type="stmt" count="0"/>
2140
- <line num="504" type="stmt" count="0"/>
2141
- <line num="506" type="stmt" count="0"/>
2142
- <line num="507" type="stmt" count="0"/>
2143
  <line num="509" type="stmt" count="2"/>
2144
  <line num="510" type="stmt" count="0"/>
2145
  <line num="512" type="stmt" count="0"/>
2146
  <line num="513" type="stmt" count="0"/>
2147
- <line num="515" type="stmt" count="0"/>
2148
- <line num="517" type="stmt" count="0"/>
2149
- <line num="518" type="stmt" count="0"/>
2150
  <line num="520" type="stmt" count="2"/>
2151
  <line num="521" type="stmt" count="0"/>
2152
  <line num="523" type="stmt" count="0"/>
2153
  <line num="524" type="stmt" count="0"/>
2154
- <line num="526" type="stmt" count="0"/>
2155
- <line num="528" type="stmt" count="0"/>
2156
- <line num="529" type="stmt" count="0"/>
2157
  <line num="538" type="stmt" count="2"/>
2158
  <line num="539" type="stmt" count="2"/>
2159
  <line num="540" type="stmt" count="2"/>
2160
  <line num="541" type="stmt" count="0"/>
2161
  <line num="543" type="stmt" count="0"/>
2162
  <line num="544" type="stmt" count="0"/>
2163
- <line num="546" type="stmt" count="0"/>
2164
  <line num="547" type="stmt" count="0"/>
2165
- <line num="549" type="stmt" count="0"/>
2166
- <line num="550" type="stmt" count="0"/>
2167
  <line num="552" type="stmt" count="2"/>
2168
  <line num="564" type="method" name="set" visibility="public" complexity="3" crap="3.10" count="2"/>
2169
  <line num="566" type="stmt" count="2"/>
@@ -2175,33 +1985,25 @@
2175
  <line num="577" type="stmt" count="2"/>
2176
  <line num="578" type="stmt" count="2"/>
2177
  <line num="579" type="stmt" count="2"/>
2178
- <metrics loc="580" ncloc="322" classes="1" methods="14" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="197" coveredstatements="123" elements="211" coveredelements="128"/>
2179
  </file>
2180
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-cli.php">
2181
  <class name="Boldgrid_Backup_Admin_Cli" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2182
- <metrics complexity="24" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="94" coveredstatements="36" elements="96" coveredelements="36"/>
2183
  </class>
2184
- <line num="41" type="method" name="get_execution_functions" visibility="public" complexity="5" crap="5.10" count="7"/>
2185
  <line num="43" type="stmt" count="7"/>
2186
  <line num="44" type="stmt" count="6"/>
2187
  <line num="48" type="stmt" count="1"/>
2188
  <line num="49" type="stmt" count="0"/>
2189
  <line num="53" type="stmt" count="1"/>
2190
  <line num="57" type="stmt" count="1"/>
2191
- <line num="58" type="stmt" count="1"/>
2192
- <line num="59" type="stmt" count="1"/>
2193
- <line num="60" type="stmt" count="1"/>
2194
- <line num="61" type="stmt" count="1"/>
2195
- <line num="62" type="stmt" count="1"/>
2196
- <line num="63" type="stmt" count="1"/>
2197
  <line num="66" type="stmt" count="1"/>
2198
  <line num="67" type="stmt" count="1"/>
2199
- <line num="68" type="stmt" count="0"/>
2200
- <line num="69" type="stmt" count="0"/>
2201
- <line num="70" type="stmt" count="1"/>
2202
  <line num="73" type="stmt" count="1"/>
2203
  <line num="75" type="stmt" count="1"/>
2204
- <line num="90" type="method" name="call_command" visibility="public" complexity="19" crap="161.37" count="5"/>
2205
  <line num="91" type="stmt" count="5"/>
2206
  <line num="96" type="stmt" count="5"/>
2207
  <line num="98" type="stmt" count="5"/>
@@ -2219,7 +2021,6 @@
2219
  <line num="123" type="stmt" count="0"/>
2220
  <line num="124" type="stmt" count="0"/>
2221
  <line num="126" type="stmt" count="0"/>
2222
- <line num="128" type="stmt" count="0"/>
2223
  <line num="130" type="stmt" count="0"/>
2224
  <line num="132" type="stmt" count="5"/>
2225
  <line num="133" type="stmt" count="5"/>
@@ -2229,19 +2030,9 @@
2229
  <line num="145" type="stmt" count="5"/>
2230
  <line num="146" type="stmt" count="5"/>
2231
  <line num="148" type="stmt" count="5"/>
2232
- <line num="150" type="stmt" count="1"/>
2233
  <line num="152" type="stmt" count="1"/>
2234
  <line num="154" type="stmt" count="0"/>
2235
- <line num="158" type="stmt" count="0"/>
2236
- <line num="159" type="stmt" count="0"/>
2237
- <line num="160" type="stmt" count="0"/>
2238
- <line num="162" type="stmt" count="0"/>
2239
- <line num="163" type="stmt" count="0"/>
2240
- <line num="164" type="stmt" count="0"/>
2241
- <line num="166" type="stmt" count="0"/>
2242
- <line num="167" type="stmt" count="0"/>
2243
- <line num="168" type="stmt" count="0"/>
2244
- <line num="169" type="stmt" count="0"/>
2245
  <line num="172" type="stmt" count="0"/>
2246
  <line num="174" type="stmt" count="0"/>
2247
  <line num="176" type="stmt" count="0"/>
@@ -2252,7 +2043,6 @@
2252
  <line num="191" type="stmt" count="0"/>
2253
  <line num="192" type="stmt" count="0"/>
2254
  <line num="194" type="stmt" count="0"/>
2255
- <line num="196" type="stmt" count="0"/>
2256
  <line num="198" type="stmt" count="0"/>
2257
  <line num="200" type="stmt" count="0"/>
2258
  <line num="201" type="stmt" count="0"/>
@@ -2267,17 +2057,12 @@
2267
  <line num="220" type="stmt" count="0"/>
2268
  <line num="221" type="stmt" count="0"/>
2269
  <line num="223" type="stmt" count="0"/>
2270
- <line num="225" type="stmt" count="0"/>
2271
  <line num="227" type="stmt" count="0"/>
2272
- <line num="229" type="stmt" count="0"/>
2273
  <line num="230" type="stmt" count="0"/>
2274
- <line num="231" type="stmt" count="0"/>
2275
- <line num="232" type="stmt" count="5"/>
2276
  <line num="236" type="stmt" count="5"/>
2277
  <line num="237" type="stmt" count="5"/>
2278
- <line num="238" type="stmt" count="5"/>
2279
  <line num="240" type="stmt" count="5"/>
2280
- <metrics loc="242" ncloc="140" classes="1" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="94" coveredstatements="36" elements="96" coveredelements="36"/>
2281
  </file>
2282
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-compressor.php">
2283
  <class name="Boldgrid_Backup_Admin_Compressor" namespace="global" fullPackage="Boldgrid.Backup.Admin">
@@ -2304,13 +2089,12 @@
2304
  </file>
2305
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-compressors.php">
2306
  <class name="Boldgrid_Backup_Admin_Compressors" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2307
- <metrics complexity="17" methods="7" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="11" elements="36" coveredelements="14"/>
2308
  </class>
2309
  <line num="50" type="method" name="__construct" visibility="public" complexity="3" crap="3" count="20"/>
2310
  <line num="51" type="stmt" count="20"/>
2311
  <line num="57" type="stmt" count="20"/>
2312
  <line num="58" type="stmt" count="20"/>
2313
- <line num="59" type="stmt" count="20"/>
2314
  <line num="60" type="stmt" count="20"/>
2315
  <line num="69" type="method" name="get" visibility="public" complexity="3" crap="3.07" count="4"/>
2316
  <line num="70" type="stmt" count="4"/>
@@ -2342,53 +2126,43 @@
2342
  <line num="158" type="stmt" count="0"/>
2343
  <line num="159" type="stmt" count="0"/>
2344
  <line num="162" type="stmt" count="0"/>
2345
- <metrics loc="164" ncloc="65" classes="1" methods="7" coveredmethods="3" conditionals="0" coveredconditionals="0" statements="29" coveredstatements="11" elements="36" coveredelements="14"/>
2346
  </file>
2347
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-config.php">
2348
  <class name="Boldgrid_Backup_Admin_Config" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2349
- <metrics complexity="55" methods="13" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="71" elements="142" coveredelements="75"/>
2350
  </class>
2351
- <line num="131" type="method" name="__construct" visibility="public" complexity="3" crap="3.33" count="20"/>
2352
  <line num="133" type="stmt" count="20"/>
2353
  <line num="134" type="stmt" count="20"/>
2354
- <line num="135" type="stmt" count="20"/>
2355
  <line num="137" type="stmt" count="20"/>
2356
  <line num="138" type="stmt" count="0"/>
2357
  <line num="139" type="stmt" count="0"/>
2358
- <line num="140" type="stmt" count="0"/>
2359
  <line num="142" type="stmt" count="20"/>
2360
  <line num="143" type="stmt" count="20"/>
2361
- <line num="152" type="method" name="get_home_directory" visibility="public" complexity="18" crap="83.95" count="2"/>
2362
  <line num="154" type="stmt" count="2"/>
2363
  <line num="155" type="stmt" count="0"/>
2364
  <line num="158" type="stmt" count="2"/>
2365
  <line num="164" type="stmt" count="0"/>
2366
  <line num="165" type="stmt" count="0"/>
2367
  <line num="166" type="stmt" count="0"/>
2368
- <line num="167" type="stmt" count="0"/>
2369
  <line num="168" type="stmt" count="2"/>
2370
  <line num="170" type="stmt" count="0"/>
2371
  <line num="171" type="stmt" count="0"/>
2372
  <line num="173" type="stmt" count="0"/>
2373
  <line num="174" type="stmt" count="0"/>
2374
- <line num="175" type="stmt" count="0"/>
2375
  <line num="178" type="stmt" count="0"/>
2376
  <line num="179" type="stmt" count="0"/>
2377
- <line num="180" type="stmt" count="0"/>
2378
- <line num="181" type="stmt" count="0"/>
2379
  <line num="183" type="stmt" count="2"/>
2380
  <line num="184" type="stmt" count="2"/>
2381
  <line num="185" type="stmt" count="2"/>
2382
- <line num="186" type="stmt" count="2"/>
2383
  <line num="188" type="stmt" count="2"/>
2384
  <line num="189" type="stmt" count="0"/>
2385
- <line num="190" type="stmt" count="0"/>
2386
  <line num="193" type="stmt" count="2"/>
2387
  <line num="194" type="stmt" count="0"/>
2388
- <line num="195" type="stmt" count="0"/>
2389
  <line num="199" type="stmt" count="2"/>
2390
  <line num="200" type="stmt" count="0"/>
2391
- <line num="201" type="stmt" count="0"/>
2392
  <line num="204" type="stmt" count="2"/>
2393
  <line num="205" type="stmt" count="2"/>
2394
  <line num="208" type="stmt" count="2"/>
@@ -2426,17 +2200,15 @@
2426
  <line num="310" type="stmt" count="0"/>
2427
  <line num="311" type="stmt" count="0"/>
2428
  <line num="313" type="stmt" count="0"/>
2429
- <line num="323" type="method" name="get_admin_email" visibility="public" complexity="6" crap="9.54" count="8"/>
2430
  <line num="325" type="stmt" count="8"/>
2431
  <line num="329" type="stmt" count="8"/>
2432
  <line num="330" type="stmt" count="8"/>
2433
- <line num="331" type="stmt" count="8"/>
2434
  <line num="334" type="stmt" count="8"/>
2435
  <line num="336" type="stmt" count="0"/>
2436
  <line num="339" type="stmt" count="0"/>
2437
  <line num="340" type="stmt" count="0"/>
2438
  <line num="344" type="stmt" count="0"/>
2439
- <line num="345" type="stmt" count="0"/>
2440
  <line num="348" type="stmt" count="8"/>
2441
  <line num="349" type="stmt" count="0"/>
2442
  <line num="353" type="stmt" count="8"/>
@@ -2444,7 +2216,6 @@
2444
  <line num="365" type="stmt" count="1"/>
2445
  <line num="366" type="stmt" count="1"/>
2446
  <line num="367" type="stmt" count="1"/>
2447
- <line num="368" type="stmt" count="1"/>
2448
  <line num="369" type="stmt" count="1"/>
2449
  <line num="376" type="method" name="admin_init" visibility="public" complexity="2" crap="6" count="0"/>
2450
  <line num="377" type="stmt" count="0"/>
@@ -2458,83 +2229,69 @@
2458
  <line num="399" type="stmt" count="0"/>
2459
  <line num="403" type="stmt" count="0"/>
2460
  <line num="405" type="stmt" count="0"/>
2461
- <line num="420" type="method" name="get_available_compressors" visibility="public" complexity="13" crap="13.71" count="5"/>
2462
  <line num="422" type="stmt" count="5"/>
2463
  <line num="423" type="stmt" count="5"/>
2464
  <line num="426" type="stmt" count="1"/>
2465
  <line num="427" type="stmt" count="0"/>
2466
- <line num="428" type="stmt" count="0"/>
2467
  <line num="431" type="stmt" count="1"/>
2468
  <line num="434" type="stmt" count="1"/>
2469
  <line num="435" type="stmt" count="1"/>
2470
- <line num="436" type="stmt" count="1"/>
2471
  <line num="439" type="stmt" count="1"/>
2472
  <line num="440" type="stmt" count="1"/>
2473
- <line num="441" type="stmt" count="1"/>
2474
  <line num="444" type="stmt" count="1"/>
2475
  <line num="445" type="stmt" count="1"/>
2476
- <line num="446" type="stmt" count="1"/>
2477
  <line num="449" type="stmt" count="1"/>
2478
  <line num="450" type="stmt" count="1"/>
2479
- <line num="451" type="stmt" count="1"/>
2480
  <line num="454" type="stmt" count="1"/>
2481
  <line num="455" type="stmt" count="0"/>
2482
- <line num="456" type="stmt" count="0"/>
2483
  <line num="458" type="stmt" count="1"/>
2484
  <line num="459" type="stmt" count="0"/>
2485
  <line num="463" type="stmt" count="1"/>
2486
  <line num="464" type="stmt" count="1"/>
2487
- <line num="465" type="stmt" count="1"/>
2488
  <line num="468" type="stmt" count="1"/>
2489
  <line num="469" type="stmt" count="1"/>
2490
  <line num="470" type="stmt" count="1"/>
2491
- <line num="471" type="stmt" count="1"/>
2492
  <line num="473" type="stmt" count="1"/>
2493
- <metrics loc="475" ncloc="203" classes="1" methods="13" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="129" coveredstatements="71" elements="142" coveredelements="75"/>
2494
  </file>
2495
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core-files.php">
2496
  <class name="Boldgrid_Backup_Admin_Core_Files" namespace="global" fullPackage="Boldgrid.Backup.Admin.Core">
2497
- <metrics complexity="6" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="8" elements="11" coveredelements="9"/>
2498
  </class>
2499
  <line num="71" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="20"/>
2500
  <line num="72" type="stmt" count="20"/>
2501
  <line num="73" type="stmt" count="20"/>
2502
- <line num="83" type="method" name="is_core_file" visibility="public" complexity="5" crap="5.07" count="4"/>
2503
  <line num="84" type="stmt" count="4"/>
2504
  <line num="85" type="stmt" count="0"/>
2505
  <line num="88" type="stmt" count="4"/>
2506
  <line num="89" type="stmt" count="4"/>
2507
  <line num="90" type="stmt" count="4"/>
2508
- <line num="92" type="stmt" count="4"/>
2509
  <line num="94" type="stmt" count="4"/>
2510
- <metrics loc="96" ncloc="46" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="8" elements="11" coveredelements="9"/>
2511
  </file>
2512
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-core.php">
2513
  <class name="Boldgrid_Backup_Admin_Core" namespace="global" fullPackage="Boldgrid.Backup.Admin">
2514
- <metrics complexity="231" methods="28" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="1061" coveredstatements="517" elements="1089" coveredelements="521"/>
2515
  </class>
2516
- <line num="574" type="method" name="__construct" visibility="public" complexity="7" crap="7.03" count="20"/>
2517
- <line num="575" type="stmt" count="20"/>
2518
- <line num="576" type="stmt" count="20"/>
2519
- <line num="577" type="stmt" count="20"/>
2520
- <line num="579" type="stmt" count="20"/>
2521
- <line num="581" type="stmt" count="20"/>
2522
- <line num="582" type="stmt" count="20"/>
2523
- <line num="583" type="stmt" count="20"/>
2524
  <line num="585" type="stmt" count="20"/>
 
2525
  <line num="587" type="stmt" count="20"/>
2526
- <line num="590" type="stmt" count="20"/>
 
 
2527
  <line num="593" type="stmt" count="20"/>
2528
- <line num="596" type="stmt" count="20"/>
2529
- <line num="599" type="stmt" count="20"/>
2530
- <line num="602" type="stmt" count="20"/>
2531
- <line num="605" type="stmt" count="20"/>
2532
- <line num="608" type="stmt" count="20"/>
 
2533
  <line num="612" type="stmt" count="20"/>
2534
- <line num="614" type="stmt" count="20"/>
2535
- <line num="616" type="stmt" count="20"/>
2536
  <line num="618" type="stmt" count="20"/>
2537
- <line num="620" type="stmt" count="20"/>
2538
  <line num="622" type="stmt" count="20"/>
2539
  <line num="624" type="stmt" count="20"/>
2540
  <line num="626" type="stmt" count="20"/>
@@ -2571,1049 +2328,951 @@
2571
  <line num="688" type="stmt" count="20"/>
2572
  <line num="690" type="stmt" count="20"/>
2573
  <line num="692" type="stmt" count="20"/>
2574
- <line num="695" type="stmt" count="20"/>
2575
  <line num="696" type="stmt" count="20"/>
2576
- <line num="699" type="stmt" count="20"/>
2577
- <line num="701" type="stmt" count="20"/>
2578
- <line num="704" type="stmt" count="20"/>
2579
  <line num="705" type="stmt" count="20"/>
2580
- <line num="708" type="stmt" count="20"/>
2581
- <line num="709" type="stmt" count="0"/>
2582
- <line num="710" type="stmt" count="0"/>
2583
- <line num="713" type="stmt" count="20"/>
2584
  <line num="714" type="stmt" count="20"/>
2585
- <line num="715" type="stmt" count="0"/>
2586
- <line num="716" type="stmt" count="0"/>
2587
- <line num="717" type="stmt" count="20"/>
2588
- <line num="718" type="stmt" count="0"/>
2589
  <line num="719" type="stmt" count="0"/>
2590
- <line num="720" type="stmt" count="20"/>
2591
- <line num="729" type="method" name="get_backup_identifier" visibility="public" complexity="5" crap="5.79" count="25"/>
2592
- <line num="731" type="stmt" count="25"/>
2593
- <line num="732" type="stmt" count="6"/>
2594
- <line num="736" type="stmt" count="20"/>
2595
- <line num="739" type="stmt" count="20"/>
2596
- <line num="740" type="stmt" count="19"/>
2597
- <line num="742" type="stmt" count="19"/>
2598
- <line num="746" type="stmt" count="1"/>
2599
- <line num="748" type="stmt" count="1"/>
2600
- <line num="750" type="stmt" count="1"/>
2601
- <line num="753" type="stmt" count="1"/>
2602
- <line num="754" type="stmt" count="0"/>
2603
- <line num="756" type="stmt" count="0"/>
2604
- <line num="757" type="stmt" count="0"/>
2605
- <line num="758" type="stmt" count="0"/>
2606
- <line num="760" type="stmt" count="0"/>
2607
- <line num="761" type="stmt" count="0"/>
2608
- <line num="764" type="stmt" count="1"/>
2609
- <line num="766" type="stmt" count="1"/>
2610
- <line num="768" type="stmt" count="1"/>
2611
- <line num="780" type="method" name="get_core" visibility="public" complexity="1" crap="1" count="18"/>
2612
- <line num="781" type="stmt" count="18"/>
2613
- <line num="791" type="method" name="init_premium" visibility="public" complexity="5" crap="30" count="0"/>
2614
- <line num="792" type="stmt" count="0"/>
2615
- <line num="794" type="stmt" count="0"/>
2616
- <line num="800" type="stmt" count="0"/>
2617
- <line num="801" type="stmt" count="0"/>
2618
- <line num="809" type="stmt" count="0"/>
2619
  <line num="810" type="stmt" count="0"/>
2620
- <line num="812" type="stmt" count="0"/>
2621
- <line num="813" type="stmt" count="0"/>
2622
- <line num="815" type="stmt" count="0"/>
2623
- <line num="816" type="stmt" count="0"/>
2624
- <line num="818" type="stmt" count="0"/>
2625
  <line num="819" type="stmt" count="0"/>
2626
  <line num="820" type="stmt" count="0"/>
2627
- <line num="821" type="stmt" count="0"/>
2628
  <line num="822" type="stmt" count="0"/>
2629
  <line num="823" type="stmt" count="0"/>
2630
- <line num="824" type="stmt" count="0"/>
2631
  <line num="825" type="stmt" count="0"/>
2632
  <line num="826" type="stmt" count="0"/>
2633
- <line num="828" type="stmt" count="0"/>
 
2634
  <line num="830" type="stmt" count="0"/>
2635
  <line num="831" type="stmt" count="0"/>
 
2636
  <line num="833" type="stmt" count="0"/>
 
2637
  <line num="835" type="stmt" count="0"/>
2638
- <line num="836" type="stmt" count="0"/>
2639
- <line num="837" type="stmt" count="0"/>
2640
  <line num="838" type="stmt" count="0"/>
2641
- <line num="839" type="stmt" count="0"/>
2642
- <line num="841" type="stmt" count="0"/>
2643
- <line num="842" type="stmt" count="0"/>
2644
- <line num="843" type="stmt" count="0"/>
2645
  <line num="845" type="stmt" count="0"/>
 
 
2646
  <line num="848" type="stmt" count="0"/>
2647
- <line num="849" type="stmt" count="0"/>
2648
- <line num="850" type="stmt" count="0"/>
2649
- <line num="865" type="method" name="execute_command" visibility="public" complexity="6" crap="6.04" count="5"/>
2650
- <line num="867" type="stmt" count="5"/>
2651
- <line num="868" type="stmt" count="0"/>
2652
- <line num="872" type="stmt" count="5"/>
2653
- <line num="873" type="stmt" count="1"/>
2654
- <line num="874" type="stmt" count="1"/>
2655
  <line num="877" type="stmt" count="5"/>
2656
- <line num="878" type="stmt" count="5"/>
2657
- <line num="879" type="stmt" count="5"/>
2658
- <line num="881" type="stmt" count="5"/>
2659
- <line num="883" type="stmt" count="5"/>
2660
- <line num="893" type="method" name="add_menu_items" visibility="public" complexity="5" crap="30" count="0"/>
2661
- <line num="894" type="stmt" count="0"/>
2662
- <line num="897" type="stmt" count="0"/>
2663
- <line num="898" type="stmt" count="0"/>
2664
- <line num="899" type="stmt" count="0"/>
2665
- <line num="900" type="stmt" count="0"/>
2666
- <line num="901" type="stmt" count="0"/>
2667
- <line num="902" type="stmt" count="0"/>
2668
- <line num="903" type="stmt" count="0"/>
2669
  <line num="904" type="stmt" count="0"/>
2670
- <line num="905" type="stmt" count="0"/>
2671
- <line num="906" type="stmt" count="0"/>
2672
  <line num="909" type="stmt" count="0"/>
 
 
2673
  <line num="912" type="stmt" count="0"/>
 
 
2674
  <line num="915" type="stmt" count="0"/>
2675
- <line num="916" type="stmt" count="0"/>
2676
- <line num="918" type="stmt" count="0"/>
2677
  <line num="919" type="stmt" count="0"/>
2678
- <line num="920" type="stmt" count="0"/>
2679
  <line num="922" type="stmt" count="0"/>
2680
- <line num="923" type="stmt" count="0"/>
2681
- <line num="924" type="stmt" count="0"/>
2682
  <line num="926" type="stmt" count="0"/>
 
2683
  <line num="929" type="stmt" count="0"/>
2684
  <line num="930" type="stmt" count="0"/>
2685
- <line num="931" type="stmt" count="0"/>
2686
  <line num="932" type="stmt" count="0"/>
2687
  <line num="933" type="stmt" count="0"/>
2688
- <line num="934" type="stmt" count="0"/>
2689
- <line num="936" type="stmt" count="0"/>
2690
- <line num="937" type="stmt" count="0"/>
2691
  <line num="939" type="stmt" count="0"/>
 
 
2692
  <line num="942" type="stmt" count="0"/>
2693
  <line num="943" type="stmt" count="0"/>
2694
  <line num="944" type="stmt" count="0"/>
2695
- <line num="945" type="stmt" count="0"/>
2696
  <line num="946" type="stmt" count="0"/>
2697
  <line num="947" type="stmt" count="0"/>
2698
- <line num="949" type="stmt" count="0"/>
2699
- <line num="950" type="stmt" count="0"/>
2700
  <line num="952" type="stmt" count="0"/>
 
 
2701
  <line num="955" type="stmt" count="0"/>
2702
  <line num="956" type="stmt" count="0"/>
2703
  <line num="957" type="stmt" count="0"/>
2704
- <line num="958" type="stmt" count="0"/>
2705
  <line num="959" type="stmt" count="0"/>
2706
  <line num="960" type="stmt" count="0"/>
2707
- <line num="962" type="stmt" count="0"/>
2708
- <line num="963" type="stmt" count="0"/>
2709
  <line num="965" type="stmt" count="0"/>
 
 
2710
  <line num="968" type="stmt" count="0"/>
2711
  <line num="969" type="stmt" count="0"/>
2712
  <line num="970" type="stmt" count="0"/>
2713
- <line num="971" type="stmt" count="0"/>
2714
  <line num="972" type="stmt" count="0"/>
2715
  <line num="973" type="stmt" count="0"/>
2716
- <line num="975" type="stmt" count="0"/>
2717
- <line num="976" type="stmt" count="0"/>
2718
  <line num="978" type="stmt" count="0"/>
 
 
 
 
 
2719
  <line num="985" type="stmt" count="0"/>
2720
  <line num="986" type="stmt" count="0"/>
2721
- <line num="987" type="stmt" count="0"/>
2722
- <line num="988" type="stmt" count="0"/>
2723
- <line num="989" type="stmt" count="0"/>
2724
- <line num="990" type="stmt" count="0"/>
2725
- <line num="992" type="stmt" count="0"/>
2726
- <line num="993" type="stmt" count="0"/>
2727
  <line num="995" type="stmt" count="0"/>
 
 
2728
  <line num="998" type="stmt" count="0"/>
2729
  <line num="999" type="stmt" count="0"/>
2730
  <line num="1000" type="stmt" count="0"/>
2731
- <line num="1001" type="stmt" count="0"/>
2732
  <line num="1002" type="stmt" count="0"/>
2733
  <line num="1003" type="stmt" count="0"/>
2734
- <line num="1005" type="stmt" count="0"/>
2735
- <line num="1006" type="stmt" count="0"/>
2736
  <line num="1008" type="stmt" count="0"/>
 
 
2737
  <line num="1011" type="stmt" count="0"/>
2738
  <line num="1012" type="stmt" count="0"/>
2739
  <line num="1013" type="stmt" count="0"/>
2740
- <line num="1014" type="stmt" count="0"/>
2741
  <line num="1015" type="stmt" count="0"/>
2742
  <line num="1016" type="stmt" count="0"/>
2743
- <line num="1018" type="stmt" count="0"/>
2744
- <line num="1019" type="stmt" count="0"/>
2745
  <line num="1021" type="stmt" count="0"/>
 
 
2746
  <line num="1024" type="stmt" count="0"/>
2747
  <line num="1025" type="stmt" count="0"/>
2748
  <line num="1026" type="stmt" count="0"/>
2749
- <line num="1027" type="stmt" count="0"/>
2750
  <line num="1028" type="stmt" count="0"/>
2751
  <line num="1029" type="stmt" count="0"/>
2752
- <line num="1031" type="stmt" count="0"/>
2753
- <line num="1032" type="stmt" count="0"/>
2754
  <line num="1034" type="stmt" count="0"/>
 
 
2755
  <line num="1037" type="stmt" count="0"/>
2756
  <line num="1038" type="stmt" count="0"/>
2757
  <line num="1039" type="stmt" count="0"/>
2758
  <line num="1041" type="stmt" count="0"/>
2759
  <line num="1042" type="stmt" count="0"/>
2760
- <line num="1043" type="stmt" count="0"/>
2761
- <line num="1045" type="stmt" count="0"/>
2762
- <line num="1046" type="stmt" count="0"/>
2763
  <line num="1048" type="stmt" count="0"/>
 
 
 
 
2764
  <line num="1055" type="stmt" count="0"/>
2765
  <line num="1056" type="stmt" count="0"/>
2766
- <line num="1058" type="stmt" count="0"/>
2767
- <line num="1059" type="stmt" count="0"/>
2768
- <line num="1060" type="stmt" count="0"/>
2769
- <line num="1061" type="stmt" count="0"/>
2770
- <line num="1062" type="stmt" count="0"/>
2771
- <line num="1064" type="stmt" count="0"/>
2772
  <line num="1072" type="stmt" count="0"/>
2773
  <line num="1073" type="stmt" count="0"/>
2774
- <line num="1074" type="stmt" count="0"/>
2775
- <line num="1075" type="stmt" count="0"/>
2776
- <line num="1076" type="stmt" count="0"/>
2777
- <line num="1077" type="stmt" count="0"/>
2778
- <line num="1078" type="stmt" count="0"/>
2779
- <line num="1079" type="stmt" count="0"/>
2780
- <line num="1080" type="stmt" count="0"/>
2781
- <line num="1089" type="method" name="admin_enqueue_scripts" visibility="public" complexity="1" crap="2" count="0"/>
2782
  <line num="1090" type="stmt" count="0"/>
2783
- <line num="1091" type="stmt" count="0"/>
2784
- <line num="1092" type="stmt" count="0"/>
2785
- <line num="1093" type="stmt" count="0"/>
2786
- <line num="1095" type="stmt" count="0"/>
2787