Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid - Version branch.transfer-log.202009142006

Version Description

Download this release

Release Info

Developer boldgrid
Plugin Icon 128x128 Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid
Version branch.transfer-log.202009142006
Comparing to
See all releases

Code changes from version 1.14.4 to branch.transfer-log.202009142006

admin/class-boldgrid-backup-admin-auto-updates.php CHANGED
@@ -58,11 +58,8 @@ class Boldgrid_Backup_Admin_Auto_Updates {
58
  * @since 1.14.0
59
  */
60
  public function __construct() {
61
-
62
  $this->set_settings();
63
- $plugins = new \Boldgrid\Library\Library\Plugin\Plugins();
64
- $this->plugins = $plugins->getAllPlugins();
65
- $this->themes = new \Boldgrid\Library\Library\Theme\Themes();
66
  add_filter( 'automatic_updater_disabled', '__return_false' );
67
  }
68
 
@@ -143,6 +140,8 @@ class Boldgrid_Backup_Admin_Auto_Updates {
143
  * @return bool
144
  */
145
  public function maybe_update_plugin( $slug ) {
 
 
146
  $days_to_wait = $this->get_days();
147
  $plugin = \Boldgrid\Library\Library\Plugin\Plugins::getBySlug( $this->plugins, $slug );
148
  $plugin->setUpdateData();
@@ -166,6 +165,8 @@ class Boldgrid_Backup_Admin_Auto_Updates {
166
  * @return bool
167
  */
168
  public function maybe_update_theme( $stylesheet ) {
 
 
169
  $days_to_wait = $this->get_days();
170
  $theme = $this->themes->getFromStylesheet( $stylesheet );
171
  $theme->setUpdateData();
@@ -203,6 +204,9 @@ class Boldgrid_Backup_Admin_Auto_Updates {
203
  if ( is_null( $update ) ) {
204
  return null;
205
  }
 
 
 
206
  // Array of plugin slugs to always auto-update.
207
  $plugins = array();
208
  foreach ( $this->plugins as $plugin ) {
@@ -242,6 +246,9 @@ class Boldgrid_Backup_Admin_Auto_Updates {
242
  if ( is_null( $update ) ) {
243
  return null;
244
  }
 
 
 
245
  // Array of theme stylesheets to always auto-update.
246
  $themes = array();
247
  foreach ( $this->themes->get() as $theme ) {
@@ -289,4 +296,39 @@ class Boldgrid_Backup_Admin_Auto_Updates {
289
  add_filter( 'auto_update_translation', '__return_' . $translation );
290
  add_filter( 'allow_dev_auto_core_updates', '__return_' . $dev );
291
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  }
58
  * @since 1.14.0
59
  */
60
  public function __construct() {
 
61
  $this->set_settings();
62
+
 
 
63
  add_filter( 'automatic_updater_disabled', '__return_false' );
64
  }
65
 
140
  * @return bool
141
  */
142
  public function maybe_update_plugin( $slug ) {
143
+ $this->init_plugins();
144
+
145
  $days_to_wait = $this->get_days();
146
  $plugin = \Boldgrid\Library\Library\Plugin\Plugins::getBySlug( $this->plugins, $slug );
147
  $plugin->setUpdateData();
165
  * @return bool
166
  */
167
  public function maybe_update_theme( $stylesheet ) {
168
+ $this->init_themes();
169
+
170
  $days_to_wait = $this->get_days();
171
  $theme = $this->themes->getFromStylesheet( $stylesheet );
172
  $theme->setUpdateData();
204
  if ( is_null( $update ) ) {
205
  return null;
206
  }
207
+
208
+ $this->init_plugins();
209
+
210
  // Array of plugin slugs to always auto-update.
211
  $plugins = array();
212
  foreach ( $this->plugins as $plugin ) {
246
  if ( is_null( $update ) ) {
247
  return null;
248
  }
249
+
250
+ $this->init_themes();
251
+
252
  // Array of theme stylesheets to always auto-update.
253
  $themes = array();
254
  foreach ( $this->themes->get() as $theme ) {
296
  add_filter( 'auto_update_translation', '__return_' . $translation );
297
  add_filter( 'allow_dev_auto_core_updates', '__return_' . $dev );
298
  }
299
+
300
+ /**
301
+ * Initialize our plugins.
302
+ *
303
+ * Initially, self::plugins was initialized in the constructor, which was ran on every admin page.
304
+ * Some xhprof investigation showed the constructor was adding 0.19s / 282kb memory to each page.
305
+ * During optimization, it was noticed that only two methods utilzed self::plugins. To save a few
306
+ * resources, self::plugins is now initialized within this method, which much be called prior to
307
+ * using self::plugins.
308
+ *
309
+ * @since SINCEVERSION
310
+ */
311
+ private function init_plugins() {
312
+ if ( ! empty( $this->plugins ) ) {
313
+ return;
314
+ }
315
+
316
+ $plugins = new \Boldgrid\Library\Library\Plugin\Plugins();
317
+ $this->plugins = $plugins->getAllPlugins();
318
+ }
319
+
320
+ /**
321
+ * Initialize our themes.
322
+ *
323
+ * @since SINCEVERSION
324
+ *
325
+ * @see self::init_plugins() for additional info on this method.
326
+ */
327
+ private function init_themes() {
328
+ if ( ! empty( $this->themes ) ) {
329
+ return;
330
+ }
331
+
332
+ $this->themes = new \Boldgrid\Library\Library\Theme\Themes();
333
+ }
334
  }
admin/class-boldgrid-backup-admin-environment.php ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * File: class-boldgrid-backup-admin-environment.php
4
+ *
5
+ * @link https://www.boldgrid.com
6
+ * @since SINCEVERSION
7
+ *
8
+ * @package Boldgrid_Backup
9
+ * @subpackage Boldgrid_Backup/admin
10
+ * @copyright BoldGrid
11
+ * @version $Id$
12
+ * @author BoldGrid <support@boldgrid.com>
13
+ */
14
+
15
+ /**
16
+ * Class: Boldgrid_Backup_Admin_Environment
17
+ *
18
+ * The purpose of this class is to help us get more information about our environment. It should also
19
+ * help answer questions, such as, has our environment changed?
20
+ *
21
+ * @since SINCEVERSION
22
+ */
23
+ class Boldgrid_Backup_Admin_Environment {
24
+ /**
25
+ * The option to which we'll save environment data to.
26
+ *
27
+ * For example, to know if something has changed in the environment, we'll need to know both the
28
+ * old values and the new values. The old values will be stored in this option.
29
+ *
30
+ * @since SINCEVERSION
31
+ * @var string
32
+ */
33
+ const OPTION_NAME = 'boldgrid_backup_environment';
34
+
35
+ /**
36
+ * Determine whether or not our environment has changed.
37
+ *
38
+ * @since SINCEVERSION
39
+ *
40
+ * @return bool
41
+ */
42
+ public function has_changed() {
43
+ /*
44
+ * Run all the tests.
45
+ *
46
+ * This is done instead of a simple return ! thing1_changed() and ! thing2_changed and etc...
47
+ *
48
+ * If they're not run all at the same time, it could potentionally take the same number of
49
+ * pageloads as there are tests to set all the initial values.
50
+ *
51
+ * An xhprof of the first 3 tests shows it takes 0.00065 seconds and 15.5kb
52
+ */
53
+ $has_hostname_changed = $this->has_hostname_changed();
54
+ $has_phpversion_changed = $this->has_phpversion_changed();
55
+ $has_wpversion_changed = $this->has_wpversion_changed();
56
+
57
+ return $has_hostname_changed ||
58
+ $has_phpversion_changed ||
59
+ $has_wpversion_changed;
60
+ }
61
+
62
+ /**
63
+ * Determine whether or not our hostname has changed.
64
+ *
65
+ * @since SINCEVERSION
66
+ *
67
+ * @return bool
68
+ */
69
+ public function has_hostname_changed() {
70
+ $key = 'hostname';
71
+
72
+ $current_hostname = gethostname();
73
+ $previous_hostname = $this->get_saved_value( $key );
74
+
75
+ /*
76
+ * We took the time to get the current hostname, so save it. We need to know our previous hostname,
77
+ * so it's important to only save AFTER we've retrieved the previous hostname.
78
+ */
79
+ $this->save_value( $key, $current_hostname );
80
+
81
+ return $current_hostname !== $previous_hostname;
82
+ }
83
+
84
+ /**
85
+ * Determine whether or not our php version has changed.
86
+ *
87
+ * @since SINCEVERSION
88
+ *
89
+ * @return bool
90
+ */
91
+ public function has_phpversion_changed() {
92
+ $key = 'phpversion';
93
+
94
+ $current_phpversion = phpversion();
95
+ $previous_phpversion = $this->get_saved_value( $key );
96
+
97
+ /*
98
+ * We took the time to get the current phpversion, so save it. We need to know our previous phpversion,
99
+ * so it's important to only save AFTER we've retrieved the previous phpversion.
100
+ */
101
+ $this->save_value( $key, $current_phpversion );
102
+
103
+ return $current_phpversion !== $previous_phpversion;
104
+ }
105
+
106
+ /**
107
+ * Determine whether or not our WordPress version has changed.
108
+ *
109
+ * @since SINCEVERSION
110
+ *
111
+ * @global string $wp_version The current WordPress version.
112
+ *
113
+ * @return bool
114
+ */
115
+ public function has_wpversion_changed() {
116
+ $key = 'wpversion';
117
+
118
+ global $wp_version;
119
+
120
+ $previous_wpversion = $this->get_saved_value( $key );
121
+
122
+ /*
123
+ * We took the time to get the current wpversion, so save it. We need to know our previous wpversion,
124
+ * so it's important to only save AFTER we've retrieved the previous wpversion.
125
+ */
126
+ $this->save_value( $key, $wp_version );
127
+
128
+ return $wp_version !== $previous_wpversion;
129
+ }
130
+
131
+ /**
132
+ * Get a saved environment value.
133
+ *
134
+ * @since SINCEVERSION
135
+ *
136
+ * @access private
137
+ * @see self::OPTION_NAME
138
+ *
139
+ * @param string $key The name of the value to get.
140
+ * @param mixed $default The default value to return.
141
+ * @return mixed
142
+ */
143
+ private function get_saved_value( $key, $default = false ) {
144
+ $saved_values = $this->get_saved_values();
145
+
146
+ return isset( $saved_values[ $key ] ) ? $saved_values[ $key ] : $default;
147
+ }
148
+
149
+ /**
150
+ * Get all of our saved values.
151
+ *
152
+ * @since SINCEVERSION
153
+ *
154
+ * @access private
155
+ * @see self::OPTION_NAME
156
+ *
157
+ * @return array
158
+ */
159
+ private function get_saved_values() {
160
+ return get_option( self::OPTION_NAME, array() );
161
+ }
162
+
163
+ /**
164
+ * Save a specific environment value.
165
+ *
166
+ * @since SINCEVERSION
167
+ *
168
+ * @access private
169
+ * @see self::OPTION_NAME
170
+ *
171
+ * @param string $key The environment key, like "hostname".
172
+ * @param mixed $value The value, such as "domain.com".
173
+ */
174
+ private function save_value( $key, $value ) {
175
+ $saved_values = $this->get_saved_values();
176
+
177
+ $saved_values[ $key ] = $value;
178
+
179
+ $this->save_values( $saved_values );
180
+ }
181
+
182
+ /**
183
+ * Save all of our environment values.
184
+ *
185
+ * @since SINCEVERSION
186
+ *
187
+ * @access private
188
+ * @see self::OPTION_NAME
189
+ *
190
+ * @param array $values All of our environment values.
191
+ */
192
+ private function save_values( array $values ) {
193
+ update_option( self::OPTION_NAME, $values );
194
+ }
195
+ }
admin/class-boldgrid-backup-admin-test.php CHANGED
@@ -532,10 +532,26 @@ class Boldgrid_Backup_Admin_Test {
532
  * @return bool
533
  */
534
  public function run_functionality_tests() {
 
535
  if ( null !== $this->is_functional ) {
536
  return $this->is_functional;
537
  }
538
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
539
  $available_compressors = $this->core->config->get_available_compressors();
540
  $compressor = $this->core->compressors->get();
541
 
@@ -559,6 +575,9 @@ class Boldgrid_Backup_Admin_Test {
559
  $this->is_functional = true;
560
  }
561
 
 
 
 
562
  return $this->is_functional;
563
  }
564
 
532
  * @return bool
533
  */
534
  public function run_functionality_tests() {
535
+ // If we've already run the logic in this method, we can return right now.
536
  if ( null !== $this->is_functional ) {
537
  return $this->is_functional;
538
  }
539
 
540
+ $transient = 'boldgrid_backup_is_functional';
541
+
542
+ /*
543
+ * If we've already run these tests:
544
+ * # If we are functional and our environment has not changed, assume everything is still functional.
545
+ * # If we are not functional, or the transient is false, we'll run the tests again. We will
546
+ * assume that if false, the user is doing everything they can to get the environment functional,
547
+ * and we want to be able to return true as soon as that's done. Basically, benefits of using
548
+ * the transient will only come when the environment is functional, which is most cases.
549
+ */
550
+ $environment = new Boldgrid_Backup_Admin_Environment();
551
+ if ( get_transient( $transient ) && ! $environment->has_changed() ) {
552
+ return true;
553
+ }
554
+
555
  $available_compressors = $this->core->config->get_available_compressors();
556
  $compressor = $this->core->compressors->get();
557
 
575
  $this->is_functional = true;
576
  }
577
 
578
+ // Transient expiration is up for debate. This is better than every admin page load.
579
+ set_transient( $transient, $this->is_functional, DAY_IN_SECONDS );
580
+
581
  return $this->is_functional;
582
  }
583
 
admin/class-boldgrid-backup-admin-upload.php CHANGED
@@ -401,6 +401,11 @@ class Boldgrid_Backup_Admin_Upload {
401
  * @uses $_POST['url'] URL address.
402
  */
403
  public function ajax_url_import() {
 
 
 
 
 
404
  // Check user permissions.
405
  if ( ! current_user_can( 'update_plugins' ) ) {
406
  wp_send_json_error(
@@ -461,8 +466,11 @@ class Boldgrid_Backup_Admin_Upload {
461
 
462
  if ( is_array( $response ) && ! is_wp_error( $response ) &&
463
  in_array( $response['headers']['content-type'], $allowed_content_types, true ) ) {
464
- // Determine the archive log file path.
465
- $log_filepath = $filepath;
 
 
 
466
 
467
  if ( ! empty( $response['headers']['content-disposition'] ) ) {
468
  $log_filepath = trim(
@@ -478,7 +486,8 @@ class Boldgrid_Backup_Admin_Upload {
478
  $filename = basename( $filepath );
479
 
480
  // Restore the log file from the archive.
481
- $this->core->archive_log->restore_by_zip( $filepath, basename( $log_filepath ) );
 
482
 
483
  // Update the archive file modification time, based on the log file contents.
484
  $this->core->remote->post_download( $filepath );
@@ -498,15 +507,41 @@ class Boldgrid_Backup_Admin_Upload {
498
  ]
499
  );
500
  } else {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
501
  $this->core->wp_filesystem->delete( $filepath );
502
  }
503
 
 
 
 
 
 
 
 
 
 
 
 
 
 
504
  wp_send_json_error(
505
  [
506
- 'error' => __(
507
- 'Could not retrieve the remote file. It may not be a ZIP file, or the link is no longer valid.',
508
- 'boldgrid-backup'
509
- ),
510
  ]
511
  );
512
  }
401
  * @uses $_POST['url'] URL address.
402
  */
403
  public function ajax_url_import() {
404
+ $logger = new Boldgrid_Backup_Admin_Log( $this->core );
405
+ $logger->init( 'transfer-archive.log' );
406
+ $logger->add_separator();
407
+ $logger->add( 'Beginning ajax_url_import...' );
408
+
409
  // Check user permissions.
410
  if ( ! current_user_can( 'update_plugins' ) ) {
411
  wp_send_json_error(
466
 
467
  if ( is_array( $response ) && ! is_wp_error( $response ) &&
468
  in_array( $response['headers']['content-type'], $allowed_content_types, true ) ) {
469
+ $logger->add( 'Archive downloaded successfully.' );
470
+ $logger->add( 'Headers: ' . ( empty( $response['headers'] ) ? 'Empty' : print_r( $response['headers'], 1 ) ) ); // phpcs:ignore
471
+
472
+ // Determine the archive log file path.
473
+ $log_filepath = $filepath;
474
 
475
  if ( ! empty( $response['headers']['content-disposition'] ) ) {
476
  $log_filepath = trim(
486
  $filename = basename( $filepath );
487
 
488
  // Restore the log file from the archive.
489
+ $restored = $this->core->archive_log->restore_by_zip( $filepath, basename( $log_filepath ) );
490
+ $logger->add( 'Log restored from zip: ' . ( $restored ? 'Success' : 'Fail' ) );
491
 
492
  // Update the archive file modification time, based on the log file contents.
493
  $this->core->remote->post_download( $filepath );
507
  ]
508
  );
509
  } else {
510
+ // Get the data from the $response that we want to print to the log.
511
+ // @todo simply the below.
512
+ if ( is_wp_error( $response ) ) {
513
+ $log_data = $response;
514
+ } elseif ( is_array( $response ) ) {
515
+ $log_data = array();
516
+
517
+ if ( ! empty( $response['body'] ) ) {
518
+ $log_data['body'] = $response['body'];
519
+ }
520
+ if ( ! empty( $response['response'] ) ) {
521
+ $log_data['response'] = $response['response'];
522
+ }
523
+ }
524
+
525
+ $logger->add( 'Failed to download archive. Additional info: ' . print_r( $log_data, 1 ) ); // phpcs:ignore
526
  $this->core->wp_filesystem->delete( $filepath );
527
  }
528
 
529
+ // Determine the error message the user will see and return it.
530
+ $error_message = __( 'Could not retrieve the remote file.', 'boldgrid-backup' );
531
+ if ( is_wp_error( $response ) ) {
532
+ // Example: cURL error 28: Connection timed out after 100001 milliseconds.
533
+ $error_message .= ' ' . $response->get_error_message();
534
+ } elseif ( ! empty( $response['response']['code'] && ! empty( $response['response']['message'] ) ) ) {
535
+ // Example: 403 Forbidden
536
+ $error_message .= ' ' . $response['response']['code'] . ' ' . $response['response']['message'];
537
+ } else {
538
+ // Unkown error.
539
+ $error_message .= ' ' . __( 'Unknown error. It may not be a ZIP file, or the link is no longer valid.', 'boldgrid-backup' );
540
+ }
541
+
542
  wp_send_json_error(
543
  [
544
+ 'error' => $error_message,
 
 
 
545
  ]
546
  );
547
  }
coverage.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1598443190">
3
- <project timestamp="1598443190">
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">
@@ -2054,100 +2054,112 @@
2054
  </file>
2055
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-auto-updates.php">
2056
  <class name="Boldgrid_Backup_Admin_Auto_Updates" namespace="global" fullPackage="Boldgrid.Backup.Admin.Auto">
2057
- <metrics complexity="35" methods="9" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="82" coveredstatements="69" elements="91" coveredelements="75"/>
2058
  </class>
2059
  <line num="60" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="7"/>
2060
- <line num="62" type="stmt" count="7"/>
2061
  <line num="63" type="stmt" count="7"/>
2062
  <line num="64" type="stmt" count="7"/>
2063
- <line num="65" type="stmt" count="7"/>
2064
- <line num="66" type="stmt" count="7"/>
2065
- <line num="67" type="stmt" count="7"/>
2066
- <line num="91" type="method" name="wordpress_option_updated" visibility="public" complexity="5" crap="30" count="0"/>
2067
- <line num="93" type="stmt" count="0"/>
2068
- <line num="94" type="stmt" count="0"/>
2069
  <line num="95" type="stmt" count="0"/>
 
2070
  <line num="98" type="stmt" count="0"/>
2071
  <line num="99" type="stmt" count="0"/>
2072
- <line num="101" type="stmt" count="0"/>
2073
  <line num="102" type="stmt" count="0"/>
2074
- <line num="105" type="stmt" count="0"/>
2075
  <line num="106" type="stmt" count="0"/>
2076
- <line num="109" type="stmt" count="0"/>
2077
- <line num="110" type="stmt" count="0"/>
2078
- <line num="117" type="method" name="set_settings" visibility="public" complexity="1" crap="1" count="7"/>
2079
- <line num="118" type="stmt" count="7"/>
2080
- <line num="119" type="stmt" count="7"/>
2081
- <line num="120" type="stmt" count="7"/>
2082
- <line num="129" type="method" name="get_days" visibility="public" complexity="3" crap="3" count="2"/>
 
2083
  <line num="130" type="stmt" count="2"/>
2084
- <line num="131" type="stmt" count="2"/>
2085
- <line num="133" type="stmt" count="2"/>
2086
- <line num="145" type="method" name="maybe_update_plugin" visibility="public" complexity="4" crap="4" count="1"/>
2087
  <line num="146" type="stmt" count="1"/>
2088
  <line num="147" type="stmt" count="1"/>
2089
- <line num="148" type="stmt" count="1"/>
2090
  <line num="150" type="stmt" count="1"/>
2091
  <line num="151" type="stmt" count="1"/>
2092
  <line num="152" type="stmt" count="1"/>
2093
  <line num="153" type="stmt" count="1"/>
2094
- <line num="154" type="stmt" count="1"/>
2095
- <line num="156" type="stmt" count="1"/>
2096
- <line num="168" type="method" name="maybe_update_theme" visibility="public" complexity="4" crap="4" count="1"/>
2097
- <line num="169" type="stmt" count="1"/>
2098
  <line num="170" type="stmt" count="1"/>
2099
  <line num="171" type="stmt" count="1"/>
2100
  <line num="172" type="stmt" count="1"/>
2101
  <line num="173" type="stmt" count="1"/>
2102
  <line num="174" type="stmt" count="1"/>
2103
- <line num="176" type="stmt" count="1"/>
2104
  <line num="177" type="stmt" count="1"/>
2105
- <line num="179" type="stmt" count="1"/>
2106
- <line num="195" type="method" name="auto_update_plugins" visibility="public" complexity="5" crap="5.02" count="1"/>
2107
- <line num="203" type="stmt" count="1"/>
2108
- <line num="204" type="stmt" count="0"/>
2109
- <line num="207" type="stmt" count="1"/>
2110
  <line num="208" type="stmt" count="1"/>
2111
- <line num="209" type="stmt" count="1"/>
2112
- <line num="210" type="stmt" count="1"/>
2113
  <line num="211" type="stmt" count="1"/>
2114
  <line num="212" type="stmt" count="1"/>
2115
  <line num="213" type="stmt" count="1"/>
 
2116
  <line num="215" type="stmt" count="1"/>
2117
- <line num="218" type="stmt" count="1"/>
2118
- <line num="234" type="method" name="auto_update_themes" visibility="public" complexity="5" crap="5.02" count="1"/>
2119
- <line num="242" type="stmt" count="1"/>
2120
- <line num="243" type="stmt" count="0"/>
 
2121
  <line num="246" type="stmt" count="1"/>
2122
- <line num="247" type="stmt" count="1"/>
2123
- <line num="248" type="stmt" count="1"/>
2124
- <line num="249" type="stmt" count="1"/>
2125
  <line num="250" type="stmt" count="1"/>
2126
- <line num="251" type="stmt" count="1"/>
2127
- <line num="252" type="stmt" count="1"/>
2128
  <line num="254" type="stmt" count="1"/>
 
 
2129
  <line num="257" type="stmt" count="1"/>
2130
- <line num="268" type="method" name="auto_update_core" visibility="public" complexity="7" crap="7" count="1"/>
2131
- <line num="270" type="stmt" count="1"/>
2132
- <line num="271" type="stmt" count="1"/>
2133
- <line num="272" type="stmt" count="1"/>
2134
- <line num="273" type="stmt" count="1"/>
2135
- <line num="274" type="stmt" count="1"/>
2136
- <line num="275" type="stmt" count="1"/>
2137
  <line num="277" type="stmt" count="1"/>
2138
  <line num="278" type="stmt" count="1"/>
2139
  <line num="279" type="stmt" count="1"/>
2140
  <line num="280" type="stmt" count="1"/>
 
2141
  <line num="282" type="stmt" count="1"/>
2142
- <line num="283" type="stmt" count="1"/>
2143
  <line num="284" type="stmt" count="1"/>
2144
  <line num="285" type="stmt" count="1"/>
 
2145
  <line num="287" type="stmt" count="1"/>
2146
- <line num="288" type="stmt" count="1"/>
2147
  <line num="289" type="stmt" count="1"/>
2148
  <line num="290" type="stmt" count="1"/>
2149
  <line num="291" type="stmt" count="1"/>
2150
- <metrics loc="292" ncloc="125" classes="1" methods="9" coveredmethods="6" conditionals="0" coveredconditionals="0" statements="82" coveredstatements="69" elements="91" coveredelements="75"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2151
  </file>
2152
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-backup-dir.php">
2153
  <class name="Boldgrid_Backup_Admin_Backup_Dir" namespace="global" fullPackage="Boldgrid.Backup.Admin.Backup">
@@ -5121,6 +5133,50 @@
5121
  <line num="268" type="stmt" count="0"/>
5122
  <metrics loc="269" ncloc="130" classes="1" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="83" coveredstatements="55" elements="90" coveredelements="57"/>
5123
  </file>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5124
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-filelist.php">
5125
  <class name="Boldgrid_Backup_Admin_Filelist" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5126
  <metrics complexity="7" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="20" coveredstatements="7" elements="23" coveredelements="9"/>
@@ -6998,7 +7054,7 @@
6998
  </file>
6999
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-test.php">
7000
  <class name="Boldgrid_Backup_Admin_Test" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7001
- <metrics complexity="97" methods="26" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="256" coveredstatements="108" elements="282" coveredelements="113"/>
7002
  </class>
7003
  <line num="122" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
7004
  <line num="124" type="stmt" count="29"/>
@@ -7144,145 +7200,150 @@
7144
  <line num="521" type="method" name="is_system_zip_supported" visibility="public" complexity="1" crap="2" count="0"/>
7145
  <line num="522" type="stmt" count="0"/>
7146
  <line num="524" type="stmt" count="0"/>
7147
- <line num="534" type="method" name="run_functionality_tests" visibility="public" complexity="13" crap="23.13" count="4"/>
7148
- <line num="535" type="stmt" count="4"/>
7149
  <line num="536" type="stmt" count="4"/>
7150
- <line num="539" type="stmt" count="1"/>
7151
  <line num="540" type="stmt" count="1"/>
7152
- <line num="542" type="stmt" count="1"/>
7153
- <line num="543" type="stmt" count="0"/>
7154
- <line num="544" type="stmt" count="1"/>
7155
- <line num="545" type="stmt" count="0"/>
7156
- <line num="546" type="stmt" count="1"/>
7157
- <line num="547" type="stmt" count="0"/>
7158
- <line num="548" type="stmt" count="1"/>
7159
- <line num="549" type="stmt" count="0"/>
7160
  <line num="550" type="stmt" count="1"/>
7161
- <line num="551" type="stmt" count="0"/>
7162
- <line num="552" type="stmt" count="1"/>
7163
- <line num="553" type="stmt" count="0"/>
7164
- <line num="554" type="stmt" count="1"/>
7165
- <line num="555" type="stmt" count="0"/>
7166
  <line num="556" type="stmt" count="1"/>
7167
- <line num="557" type="stmt" count="0"/>
7168
- <line num="558" type="stmt" count="0"/>
7169
- <line num="559" type="stmt" count="1"/>
 
7170
  <line num="562" type="stmt" count="1"/>
7171
- <line num="575" type="method" name="get_disk_space" visibility="public" complexity="5" crap="30" count="0"/>
7172
- <line num="577" type="stmt" count="0"/>
7173
- <line num="580" type="stmt" count="0"/>
7174
- <line num="583" type="stmt" count="0"/>
7175
- <line num="584" type="stmt" count="0"/>
7176
- <line num="586" type="stmt" count="0"/>
7177
- <line num="587" type="stmt" count="0"/>
7178
- <line num="588" type="stmt" count="0"/>
7179
- <line num="589" type="stmt" count="0"/>
7180
- <line num="590" type="stmt" count="0"/>
7181
- <line num="594" type="stmt" count="0"/>
7182
- <line num="595" type="stmt" count="0"/>
 
 
 
 
7183
  <line num="596" type="stmt" count="0"/>
7184
  <line num="599" type="stmt" count="0"/>
7185
  <line num="602" type="stmt" count="0"/>
7186
  <line num="603" type="stmt" count="0"/>
7187
- <line num="604" type="stmt" count="0"/>
 
 
7188
  <line num="608" type="stmt" count="0"/>
7189
  <line num="609" type="stmt" count="0"/>
7190
- <line num="610" type="stmt" count="0"/>
7191
- <line num="611" type="stmt" count="0"/>
7192
- <line num="612" type="stmt" count="0"/>
7193
- <line num="625" type="method" name="get_wp_size" visibility="private" complexity="5" crap="30" count="0"/>
 
 
 
7194
  <line num="627" type="stmt" count="0"/>
 
7195
  <line num="629" type="stmt" count="0"/>
7196
  <line num="630" type="stmt" count="0"/>
7197
- <line num="634" type="stmt" count="0"/>
7198
- <line num="635" type="stmt" count="0"/>
7199
- <line num="636" type="stmt" count="0"/>
7200
- <line num="637" type="stmt" count="0"/>
7201
- <line num="639" type="stmt" count="0"/>
7202
- <line num="642" type="stmt" count="0"/>
7203
- <line num="645" type="stmt" count="0"/>
7204
  <line num="646" type="stmt" count="0"/>
 
7205
  <line num="649" type="stmt" count="0"/>
7206
- <line num="652" type="stmt" count="0"/>
 
7207
  <line num="655" type="stmt" count="0"/>
7208
- <line num="668" type="method" name="get_cli_support" visibility="public" complexity="10" crap="10.20" count="1"/>
7209
- <line num="670" type="stmt" count="1"/>
7210
- <line num="671" type="stmt" count="1"/>
7211
- <line num="672" type="stmt" count="1"/>
7212
- <line num="675" type="stmt" count="1"/>
7213
- <line num="679" type="stmt" count="1"/>
7214
- <line num="680" type="stmt" count="1"/>
7215
- <line num="682" type="stmt" count="1"/>
7216
- <line num="684" type="stmt" count="1"/>
7217
- <line num="686" type="stmt" count="1"/>
7218
- <line num="688" type="stmt" count="0"/>
7219
- <line num="689" type="stmt" count="0"/>
7220
  <line num="690" type="stmt" count="1"/>
7221
- <line num="693" type="stmt" count="1"/>
7222
  <line num="694" type="stmt" count="1"/>
7223
- <line num="697" type="stmt" count="1"/>
7224
  <line num="699" type="stmt" count="1"/>
7225
  <line num="701" type="stmt" count="1"/>
7226
  <line num="703" type="stmt" count="1"/>
7227
- <line num="704" type="stmt" count="0"/>
7228
- <line num="707" type="stmt" count="1"/>
7229
- <line num="708" type="stmt" count="1"/>
7230
- <line num="710" type="stmt" count="1"/>
7231
  <line num="712" type="stmt" count="1"/>
7232
- <line num="714" type="stmt" count="1"/>
7233
- <line num="726" type="method" name="get_database_size" visibility="public" complexity="4" crap="20" count="0"/>
7234
- <line num="728" type="stmt" count="0"/>
7235
- <line num="730" type="stmt" count="0"/>
7236
- <line num="731" type="stmt" count="0"/>
7237
- <line num="735" type="stmt" count="0"/>
7238
- <line num="738" type="stmt" count="0"/>
7239
- <line num="740" type="stmt" count="0"/>
7240
- <line num="741" type="stmt" count="0"/>
7241
- <line num="742" type="stmt" count="0"/>
7242
- <line num="743" type="stmt" count="0"/>
7243
- <line num="746" type="stmt" count="0"/>
7244
  <line num="747" type="stmt" count="0"/>
7245
- <line num="751" type="stmt" count="0"/>
 
7246
  <line num="754" type="stmt" count="0"/>
7247
- <line num="755" type="stmt" count="0"/>
7248
  <line num="759" type="stmt" count="0"/>
 
 
7249
  <line num="762" type="stmt" count="0"/>
7250
- <line num="774" type="method" name="get_is_abspath_writable" visibility="public" complexity="2" crap="2.03" count="1"/>
7251
- <line num="775" type="stmt" count="1"/>
7252
- <line num="776" type="stmt" count="0"/>
7253
- <line num="780" type="stmt" count="1"/>
7254
- <line num="783" type="stmt" count="1"/>
7255
- <line num="786" type="stmt" count="1"/>
7256
- <line num="796" type="method" name="is_homedir_writable" visibility="public" complexity="2" crap="6" count="0"/>
7257
- <line num="797" type="stmt" count="0"/>
7258
- <line num="798" type="stmt" count="0"/>
7259
- <line num="802" type="stmt" count="0"/>
7260
- <line num="805" type="stmt" count="0"/>
7261
- <line num="808" type="stmt" count="0"/>
7262
- <line num="818" type="method" name="is_iis" visibility="public" complexity="3" crap="12" count="0"/>
7263
- <line num="819" type="stmt" count="0"/>
7264
- <line num="820" type="stmt" count="0"/>
 
7265
  <line num="821" type="stmt" count="0"/>
7266
- <line num="831" type="method" name="is_pcl_zip_supported" visibility="public" complexity="1" crap="1" count="1"/>
7267
- <line num="832" type="stmt" count="1"/>
7268
- <line num="834" type="stmt" count="1"/>
7269
- <line num="846" type="method" name="is_ea4_cli" visibility="public" complexity="3" crap="3" count="1"/>
7270
- <line num="847" type="stmt" count="1"/>
7271
- <line num="848" type="stmt" count="1"/>
7272
- <line num="850" type="stmt" count="1"/>
7273
- <line num="852" type="stmt" count="1"/>
7274
- <line num="864" type="method" name="is_filesystem_supported" visibility="public" complexity="3" crap="4.12" count="1"/>
7275
- <line num="865" type="stmt" count="1"/>
 
7276
  <line num="867" type="stmt" count="1"/>
7277
- <line num="870" type="stmt" count="1"/>
7278
- <line num="871" type="stmt" count="0"/>
7279
- <line num="872" type="stmt" count="0"/>
7280
- <line num="873" type="stmt" count="0"/>
7281
- <line num="875" type="stmt" count="1"/>
7282
- <line num="876" type="stmt" count="0"/>
7283
- <line num="877" type="stmt" count="0"/>
7284
- <line num="879" type="stmt" count="1"/>
7285
- <metrics loc="881" ncloc="438" classes="1" methods="26" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="256" coveredstatements="108" elements="282" coveredelements="113"/>
 
 
 
 
 
7286
  </file>
7287
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-time.php">
7288
  <class name="Boldgrid_Backup_Admin_Time" namespace="global" fullPackage="Boldgrid.Backup.Admin">
@@ -7477,7 +7538,7 @@
7477
  </file>
7478
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-upload.php">
7479
  <class name="Boldgrid_Backup_Admin_Upload" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7480
- <metrics complexity="40" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="208" coveredstatements="2" elements="217" coveredelements="3"/>
7481
  </class>
7482
  <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
7483
  <line num="41" type="stmt" count="29"/>
@@ -7620,44 +7681,45 @@
7620
  <line num="380" type="stmt" count="0"/>
7621
  <line num="382" type="stmt" count="0"/>
7622
  <line num="384" type="stmt" count="0"/>
7623
- <line num="403" type="method" name="ajax_url_import" visibility="public" complexity="11" crap="132" count="0"/>
 
7624
  <line num="405" type="stmt" count="0"/>
7625
  <line num="406" type="stmt" count="0"/>
7626
- <line num="408" type="stmt" count="0"/>
7627
  <line num="410" type="stmt" count="0"/>
7628
  <line num="411" type="stmt" count="0"/>
7629
- <line num="414" type="stmt" count="0"/>
7630
  <line num="415" type="stmt" count="0"/>
7631
- <line num="417" type="stmt" count="0"/>
7632
  <line num="419" type="stmt" count="0"/>
7633
  <line num="420" type="stmt" count="0"/>
7634
  <line num="422" type="stmt" count="0"/>
7635
- <line num="423" type="stmt" count="0"/>
7636
  <line num="425" type="stmt" count="0"/>
7637
- <line num="426" type="stmt" count="0"/>
7638
  <line num="428" type="stmt" count="0"/>
7639
  <line num="430" type="stmt" count="0"/>
7640
  <line num="431" type="stmt" count="0"/>
7641
  <line num="433" type="stmt" count="0"/>
7642
  <line num="435" type="stmt" count="0"/>
7643
  <line num="436" type="stmt" count="0"/>
7644
- <line num="437" type="stmt" count="0"/>
7645
- <line num="439" type="stmt" count="0"/>
7646
  <line num="441" type="stmt" count="0"/>
7647
  <line num="442" type="stmt" count="0"/>
7648
  <line num="444" type="stmt" count="0"/>
 
7649
  <line num="447" type="stmt" count="0"/>
7650
- <line num="448" type="stmt" count="0"/>
7651
  <line num="449" type="stmt" count="0"/>
7652
- <line num="450" type="stmt" count="0"/>
7653
  <line num="452" type="stmt" count="0"/>
7654
  <line num="453" type="stmt" count="0"/>
7655
  <line num="454" type="stmt" count="0"/>
7656
  <line num="455" type="stmt" count="0"/>
7657
- <line num="456" type="stmt" count="0"/>
7658
  <line num="457" type="stmt" count="0"/>
7659
  <line num="458" type="stmt" count="0"/>
 
7660
  <line num="460" type="stmt" count="0"/>
 
7661
  <line num="462" type="stmt" count="0"/>
7662
  <line num="463" type="stmt" count="0"/>
7663
  <line num="465" type="stmt" count="0"/>
@@ -7665,38 +7727,61 @@
7665
  <line num="468" type="stmt" count="0"/>
7666
  <line num="469" type="stmt" count="0"/>
7667
  <line num="470" type="stmt" count="0"/>
7668
- <line num="471" type="stmt" count="0"/>
7669
- <line num="472" type="stmt" count="0"/>
7670
- <line num="474" type="stmt" count="0"/>
7671
  <line num="475" type="stmt" count="0"/>
 
7672
  <line num="477" type="stmt" count="0"/>
7673
  <line num="478" type="stmt" count="0"/>
7674
- <line num="481" type="stmt" count="0"/>
7675
- <line num="484" type="stmt" count="0"/>
7676
- <line num="487" type="stmt" count="0"/>
 
 
 
7677
  <line num="489" type="stmt" count="0"/>
7678
- <line num="491" type="stmt" count="0"/>
7679
- <line num="492" type="stmt" count="0"/>
7680
- <line num="494" type="stmt" count="0"/>
7681
- <line num="495" type="stmt" count="0"/>
7682
  <line num="496" type="stmt" count="0"/>
7683
- <line num="497" type="stmt" count="0"/>
7684
- <line num="499" type="stmt" count="0"/>
7685
  <line num="500" type="stmt" count="0"/>
7686
  <line num="501" type="stmt" count="0"/>
 
7687
  <line num="504" type="stmt" count="0"/>
 
7688
  <line num="506" type="stmt" count="0"/>
7689
- <line num="507" type="stmt" count="0"/>
7690
  <line num="509" type="stmt" count="0"/>
7691
- <line num="511" type="stmt" count="0"/>
7692
  <line num="512" type="stmt" count="0"/>
7693
- <line num="519" type="method" name="archive_upload_action" visibility="public" complexity="3" crap="12" count="0"/>
 
 
 
 
 
7694
  <line num="520" type="stmt" count="0"/>
7695
  <line num="521" type="stmt" count="0"/>
7696
  <line num="522" type="stmt" count="0"/>
7697
  <line num="523" type="stmt" count="0"/>
7698
- <line num="524" type="stmt" count="0"/>
7699
- <metrics loc="525" ncloc="295" classes="1" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="208" coveredstatements="2" elements="217" coveredelements="3"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7700
  </file>
7701
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-usage.php">
7702
  <class name="Boldgrid_Backup_Admin_Usage" namespace="global" fullPackage="Boldgrid.Backup.Admin">
@@ -15306,7 +15391,7 @@
15306
  </file>
15307
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup.php">
15308
  <class name="Boldgrid_Backup" namespace="global" fullPackage="Boldgrid">
15309
- <metrics complexity="16" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="282" coveredstatements="0" elements="290" coveredelements="0"/>
15310
  </class>
15311
  <line num="66" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
15312
  <line num="67" type="stmt" count="0"/>
@@ -15433,102 +15518,102 @@
15433
  <line num="304" type="stmt" count="0"/>
15434
  <line num="305" type="stmt" count="0"/>
15435
  <line num="307" type="stmt" count="0"/>
15436
- <line num="308" type="stmt" count="0"/>
15437
- <line num="319" type="method" name="set_locale" visibility="private" complexity="1" crap="2" count="0"/>
15438
- <line num="320" type="stmt" count="0"/>
15439
  <line num="322" type="stmt" count="0"/>
15440
- <line num="323" type="stmt" count="0"/>
15441
- <line num="331" type="method" name="define_admin_hooks" visibility="private" complexity="5" crap="30" count="0"/>
15442
- <line num="333" type="stmt" count="0"/>
15443
  <line num="335" type="stmt" count="0"/>
15444
- <line num="338" type="stmt" count="0"/>
15445
- <line num="341" type="stmt" count="0"/>
15446
- <line num="342" type="stmt" count="0"/>
15447
  <line num="343" type="stmt" count="0"/>
 
15448
  <line num="345" type="stmt" count="0"/>
15449
- <line num="346" type="stmt" count="0"/>
15450
  <line num="347" type="stmt" count="0"/>
15451
- <line num="350" type="stmt" count="0"/>
15452
- <line num="351" type="stmt" count="0"/>
15453
  <line num="352" type="stmt" count="0"/>
15454
  <line num="353" type="stmt" count="0"/>
15455
- <line num="356" type="stmt" count="0"/>
15456
- <line num="357" type="stmt" count="0"/>
15457
  <line num="358" type="stmt" count="0"/>
15458
  <line num="359" type="stmt" count="0"/>
 
15459
  <line num="361" type="stmt" count="0"/>
15460
- <line num="362" type="stmt" count="0"/>
15461
  <line num="363" type="stmt" count="0"/>
15462
  <line num="364" type="stmt" count="0"/>
15463
  <line num="365" type="stmt" count="0"/>
15464
- <line num="368" type="stmt" count="0"/>
15465
- <line num="369" type="stmt" count="0"/>
15466
  <line num="370" type="stmt" count="0"/>
15467
  <line num="371" type="stmt" count="0"/>
15468
- <line num="374" type="stmt" count="0"/>
15469
- <line num="375" type="stmt" count="0"/>
15470
  <line num="376" type="stmt" count="0"/>
15471
  <line num="377" type="stmt" count="0"/>
15472
- <line num="380" type="stmt" count="0"/>
15473
- <line num="381" type="stmt" count="0"/>
15474
  <line num="382" type="stmt" count="0"/>
15475
  <line num="383" type="stmt" count="0"/>
15476
- <line num="386" type="stmt" count="0"/>
15477
- <line num="387" type="stmt" count="0"/>
15478
  <line num="388" type="stmt" count="0"/>
15479
  <line num="389" type="stmt" count="0"/>
15480
- <line num="392" type="stmt" count="0"/>
15481
- <line num="393" type="stmt" count="0"/>
15482
  <line num="394" type="stmt" count="0"/>
15483
  <line num="395" type="stmt" count="0"/>
15484
- <line num="398" type="stmt" count="0"/>
15485
- <line num="399" type="stmt" count="0"/>
15486
  <line num="400" type="stmt" count="0"/>
15487
  <line num="401" type="stmt" count="0"/>
 
15488
  <line num="403" type="stmt" count="0"/>
15489
- <line num="404" type="stmt" count="0"/>
15490
  <line num="405" type="stmt" count="0"/>
15491
- <line num="408" type="stmt" count="0"/>
15492
- <line num="409" type="stmt" count="0"/>
15493
  <line num="410" type="stmt" count="0"/>
15494
  <line num="411" type="stmt" count="0"/>
15495
- <line num="414" type="stmt" count="0"/>
15496
- <line num="415" type="stmt" count="0"/>
15497
  <line num="416" type="stmt" count="0"/>
15498
  <line num="417" type="stmt" count="0"/>
 
15499
  <line num="419" type="stmt" count="0"/>
15500
- <line num="420" type="stmt" count="0"/>
15501
  <line num="421" type="stmt" count="0"/>
15502
  <line num="422" type="stmt" count="0"/>
15503
  <line num="423" type="stmt" count="0"/>
15504
  <line num="424" type="stmt" count="0"/>
 
15505
  <line num="426" type="stmt" count="0"/>
15506
  <line num="428" type="stmt" count="0"/>
15507
  <line num="430" type="stmt" count="0"/>
15508
  <line num="432" type="stmt" count="0"/>
15509
- <line num="433" type="stmt" count="0"/>
15510
  <line num="434" type="stmt" count="0"/>
 
15511
  <line num="436" type="stmt" count="0"/>
15512
- <line num="437" type="stmt" count="0"/>
15513
  <line num="439" type="stmt" count="0"/>
15514
  <line num="441" type="stmt" count="0"/>
15515
  <line num="443" type="stmt" count="0"/>
15516
  <line num="445" type="stmt" count="0"/>
15517
  <line num="447" type="stmt" count="0"/>
15518
- <line num="448" type="stmt" count="0"/>
15519
  <line num="449" type="stmt" count="0"/>
 
15520
  <line num="451" type="stmt" count="0"/>
15521
  <line num="453" type="stmt" count="0"/>
15522
- <line num="454" type="stmt" count="0"/>
15523
  <line num="455" type="stmt" count="0"/>
15524
  <line num="456" type="stmt" count="0"/>
 
15525
  <line num="458" type="stmt" count="0"/>
15526
  <line num="460" type="stmt" count="0"/>
15527
  <line num="462" type="stmt" count="0"/>
15528
  <line num="464" type="stmt" count="0"/>
15529
  <line num="466" type="stmt" count="0"/>
15530
  <line num="468" type="stmt" count="0"/>
15531
- <line num="473" type="stmt" count="0"/>
15532
  <line num="475" type="stmt" count="0"/>
15533
  <line num="477" type="stmt" count="0"/>
15534
  <line num="479" type="stmt" count="0"/>
@@ -15536,69 +15621,70 @@
15536
  <line num="483" type="stmt" count="0"/>
15537
  <line num="485" type="stmt" count="0"/>
15538
  <line num="487" type="stmt" count="0"/>
15539
- <line num="488" type="stmt" count="0"/>
15540
  <line num="490" type="stmt" count="0"/>
15541
- <line num="491" type="stmt" count="0"/>
15542
  <line num="493" type="stmt" count="0"/>
15543
  <line num="495" type="stmt" count="0"/>
15544
- <line num="496" type="stmt" count="0"/>
15545
  <line num="497" type="stmt" count="0"/>
 
15546
  <line num="499" type="stmt" count="0"/>
15547
  <line num="501" type="stmt" count="0"/>
15548
- <line num="502" type="stmt" count="0"/>
15549
- <line num="505" type="stmt" count="0"/>
15550
- <line num="506" type="stmt" count="0"/>
15551
  <line num="507" type="stmt" count="0"/>
15552
- <line num="510" type="stmt" count="0"/>
15553
- <line num="511" type="stmt" count="0"/>
15554
- <line num="514" type="stmt" count="0"/>
15555
- <line num="517" type="stmt" count="0"/>
15556
- <line num="520" type="stmt" count="0"/>
15557
- <line num="523" type="stmt" count="0"/>
 
15558
  <line num="525" type="stmt" count="0"/>
15559
  <line num="527" type="stmt" count="0"/>
15560
  <line num="529" type="stmt" count="0"/>
15561
  <line num="531" type="stmt" count="0"/>
15562
- <line num="534" type="stmt" count="0"/>
15563
- <line num="535" type="stmt" count="0"/>
15564
  <line num="536" type="stmt" count="0"/>
15565
  <line num="537" type="stmt" count="0"/>
15566
  <line num="538" type="stmt" count="0"/>
15567
  <line num="539" type="stmt" count="0"/>
15568
- <line num="542" type="stmt" count="0"/>
15569
- <line num="545" type="stmt" count="0"/>
15570
- <line num="546" type="stmt" count="0"/>
 
15571
  <line num="548" type="stmt" count="0"/>
15572
  <line num="550" type="stmt" count="0"/>
15573
- <line num="551" type="stmt" count="0"/>
15574
  <line num="552" type="stmt" count="0"/>
15575
  <line num="553" type="stmt" count="0"/>
15576
  <line num="554" type="stmt" count="0"/>
15577
  <line num="555" type="stmt" count="0"/>
15578
- <line num="558" type="stmt" count="0"/>
15579
- <line num="559" type="stmt" count="0"/>
15580
  <line num="560" type="stmt" count="0"/>
15581
- <line num="563" type="stmt" count="0"/>
15582
- <line num="570" type="stmt" count="0"/>
15583
- <line num="571" type="stmt" count="0"/>
15584
  <line num="572" type="stmt" count="0"/>
 
15585
  <line num="574" type="stmt" count="0"/>
15586
- <line num="575" type="stmt" count="0"/>
15587
  <line num="577" type="stmt" count="0"/>
15588
- <line num="578" type="stmt" count="0"/>
15589
- <line num="585" type="method" name="run" visibility="public" complexity="1" crap="2" count="0"/>
15590
- <line num="586" type="stmt" count="0"/>
15591
- <line num="587" type="stmt" count="0"/>
15592
- <line num="596" type="method" name="get_plugin_name" visibility="public" complexity="1" crap="2" count="0"/>
15593
- <line num="597" type="stmt" count="0"/>
15594
- <line num="598" type="stmt" count="0"/>
15595
- <line num="606" type="method" name="get_loader" visibility="public" complexity="1" crap="2" count="0"/>
15596
- <line num="607" type="stmt" count="0"/>
15597
- <line num="608" type="stmt" count="0"/>
15598
- <line num="616" type="method" name="get_version" visibility="public" complexity="1" crap="2" count="0"/>
15599
- <line num="617" type="stmt" count="0"/>
15600
- <line num="618" type="stmt" count="0"/>
15601
- <metrics loc="619" ncloc="379" classes="1" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="282" coveredstatements="0" elements="290" coveredelements="0"/>
 
15602
  </file>
15603
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.cron.php">
15604
  <line num="17" type="stmt" count="0"/>
@@ -69828,13 +69914,13 @@
69828
  <line num="82" type="stmt" count="0"/>
69829
  <line num="83" type="stmt" count="0"/>
69830
  <line num="85" type="stmt" count="0"/>
69831
- <line num="97" type="method" name="get" visibility="public" complexity="3" crap="3.04" count="36"/>
69832
- <line num="98" type="stmt" count="36"/>
69833
- <line num="99" type="stmt" count="36"/>
69834
- <line num="100" type="stmt" count="36"/>
69835
- <line num="101" type="stmt" count="36"/>
69836
  <line num="102" type="stmt" count="0"/>
69837
- <line num="105" type="stmt" count="36"/>
69838
  <line num="119" type="method" name="getFileSlug" visibility="public" complexity="1" crap="2" count="0"/>
69839
  <line num="120" type="stmt" count="0"/>
69840
  <line num="122" type="stmt" count="0"/>
@@ -72096,12 +72182,12 @@
72096
  <metrics loc="135" ncloc="76" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="51" elements="55" coveredelements="55"/>
72097
  </file>
72098
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/bootstrap.php">
72099
- <line num="139" type="stmt" count="0"/>
72100
  <line num="140" type="stmt" count="0"/>
72101
- <line num="142" type="stmt" count="0"/>
72102
- <line num="144" type="stmt" count="0"/>
72103
  <line num="145" type="stmt" count="0"/>
72104
- <metrics loc="147" ncloc="113" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="5" coveredelements="0"/>
 
72105
  </file>
72106
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/cli/test-class-info.php">
72107
  <class name="Test_Boldgrid_Backup_Cli_Info" namespace="global" fullPackage="Test.Boldgrid.Backup.Cli">
@@ -73145,13 +73231,13 @@
73145
  <class name="Factory" namespace="Boldgrid\Library\Library\Plugin">
73146
  <metrics complexity="25" methods="7" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="79" coveredstatements="64" elements="86" coveredelements="69"/>
73147
  </class>
73148
- <line num="39" type="method" name="create" visibility="public" complexity="2" crap="2" count="36"/>
73149
- <line num="40" type="stmt" count="36"/>
73150
- <line num="41" type="stmt" count="36"/>
73151
  <line num="42" type="stmt" count="29"/>
73152
  <line num="43" type="stmt" count="29"/>
73153
- <line num="44" type="stmt" count="7"/>
73154
- <line num="47" type="stmt" count="36"/>
73155
  <line num="59" type="method" name="createFromSlug" visibility="public" complexity="3" crap="3" count="29"/>
73156
  <line num="61" type="stmt" count="29"/>
73157
  <line num="63" type="stmt" count="29"/>
@@ -73168,21 +73254,21 @@
73168
  <line num="80" type="stmt" count="29"/>
73169
  <line num="81" type="stmt" count="29"/>
73170
  <line num="83" type="stmt" count="29"/>
73171
- <line num="94" type="method" name="createFromFile" visibility="private" complexity="3" crap="3" count="7"/>
73172
- <line num="96" type="stmt" count="7"/>
73173
- <line num="98" type="stmt" count="7"/>
73174
- <line num="100" type="stmt" count="7"/>
73175
- <line num="102" type="stmt" count="7"/>
73176
- <line num="104" type="stmt" count="7"/>
73177
- <line num="106" type="stmt" count="7"/>
73178
- <line num="108" type="stmt" count="7"/>
73179
- <line num="110" type="stmt" count="7"/>
73180
- <line num="111" type="stmt" count="7"/>
73181
- <line num="112" type="stmt" count="7"/>
73182
- <line num="113" type="stmt" count="7"/>
73183
- <line num="114" type="stmt" count="7"/>
73184
- <line num="115" type="stmt" count="7"/>
73185
- <line num="117" type="stmt" count="7"/>
73186
  <line num="131" type="method" name="fileFromSlug" visibility="public" complexity="6" crap="8.05" count="29"/>
73187
  <line num="132" type="stmt" count="29"/>
73188
  <line num="133" type="stmt" count="29"/>
@@ -73197,36 +73283,36 @@
73197
  <line num="142" type="stmt" count="0"/>
73198
  <line num="143" type="stmt" count="29"/>
73199
  <line num="145" type="stmt" count="29"/>
73200
- <line num="157" type="method" name="slugFromFile" visibility="public" complexity="4" crap="4" count="7"/>
73201
- <line num="158" type="stmt" count="7"/>
73202
- <line num="159" type="stmt" count="7"/>
73203
- <line num="161" type="stmt" count="7"/>
73204
- <line num="162" type="stmt" count="7"/>
73205
- <line num="168" type="stmt" count="7"/>
73206
- <line num="169" type="stmt" count="7"/>
73207
- <line num="170" type="stmt" count="7"/>
73208
- <line num="171" type="stmt" count="7"/>
73209
- <line num="172" type="stmt" count="7"/>
73210
- <line num="173" type="stmt" count="7"/>
73211
- <line num="174" type="stmt" count="7"/>
73212
- <line num="175" type="stmt" count="7"/>
73213
- <line num="177" type="stmt" count="7"/>
73214
- <line num="185" type="method" name="isPluginInstalled" visibility="public" complexity="1" crap="1" count="36"/>
73215
- <line num="186" type="stmt" count="36"/>
73216
- <line num="187" type="stmt" count="36"/>
73217
- <line num="199" type="method" name="getChildPlugins" visibility="public" complexity="6" crap="14.79" count="36"/>
73218
- <line num="200" type="stmt" count="36"/>
73219
- <line num="202" type="stmt" count="36"/>
73220
- <line num="203" type="stmt" count="36"/>
73221
- <line num="204" type="stmt" count="36"/>
73222
  <line num="205" type="stmt" count="0"/>
73223
  <line num="206" type="stmt" count="0"/>
73224
  <line num="207" type="stmt" count="0"/>
73225
  <line num="208" type="stmt" count="0"/>
73226
  <line num="209" type="stmt" count="0"/>
73227
  <line num="210" type="stmt" count="0"/>
73228
- <line num="212" type="stmt" count="36"/>
73229
- <line num="213" type="stmt" count="36"/>
73230
  <line num="216" type="stmt" count="0"/>
73231
  <line num="217" type="stmt" count="0"/>
73232
  <line num="218" type="stmt" count="0"/>
@@ -73425,17 +73511,17 @@
73425
  <class name="Plugin" namespace="Boldgrid\Library\Library\Plugin">
73426
  <metrics complexity="48" methods="28" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="92" coveredstatements="41" elements="120" coveredelements="52"/>
73427
  </class>
73428
- <line num="140" type="method" name="__construct" visibility="public" complexity="4" crap="4" count="36"/>
73429
- <line num="144" type="stmt" count="36"/>
73430
  <line num="145" type="stmt" count="29"/>
73431
  <line num="146" type="stmt" count="29"/>
73432
  <line num="147" type="stmt" count="29"/>
73433
- <line num="149" type="stmt" count="36"/>
73434
- <line num="150" type="stmt" count="36"/>
73435
- <line num="151" type="stmt" count="36"/>
73436
- <line num="153" type="stmt" count="36"/>
73437
- <line num="155" type="stmt" count="36"/>
73438
- <line num="156" type="stmt" count="36"/>
73439
  <line num="165" type="method" name="setUpdateData" visibility="public" complexity="1" crap="1" count="1"/>
73440
  <line num="166" type="stmt" count="1"/>
73441
  <line num="167" type="stmt" count="1"/>
@@ -73487,15 +73573,15 @@
73487
  <line num="345" type="stmt" count="1"/>
73488
  <line num="355" type="method" name="getSlug" visibility="public" complexity="1" crap="1" count="2"/>
73489
  <line num="356" type="stmt" count="2"/>
73490
- <line num="365" type="method" name="setPages" visibility="public" complexity="3" crap="3" count="36"/>
73491
- <line num="366" type="stmt" count="36"/>
73492
- <line num="367" type="stmt" count="36"/>
73493
  <line num="368" type="stmt" count="29"/>
73494
  <line num="369" type="stmt" count="29"/>
73495
  <line num="370" type="stmt" count="29"/>
73496
  <line num="371" type="stmt" count="29"/>
73497
- <line num="372" type="stmt" count="36"/>
73498
- <line num="373" type="stmt" count="36"/>
73499
  <line num="382" type="method" name="setAllNoticesRead" visibility="public" complexity="2" crap="6" count="0"/>
73500
  <line num="383" type="stmt" count="0"/>
73501
  <line num="384" type="stmt" count="0"/>
@@ -73563,14 +73649,14 @@
73563
  <line num="48" type="stmt" count="0"/>
73564
  <line num="49" type="stmt" count="0"/>
73565
  <line num="51" type="stmt" count="0"/>
73566
- <line num="61" type="method" name="getAllPlugins" visibility="public" complexity="2" crap="2" count="7"/>
73567
- <line num="62" type="stmt" count="7"/>
73568
- <line num="63" type="stmt" count="7"/>
73569
- <line num="64" type="stmt" count="7"/>
73570
- <line num="65" type="stmt" count="7"/>
73571
- <line num="66" type="stmt" count="7"/>
73572
- <line num="67" type="stmt" count="7"/>
73573
- <line num="68" type="stmt" count="7"/>
73574
  <line num="81" type="method" name="getBySlug" visibility="public" complexity="3" crap="3.33" count="1"/>
73575
  <line num="82" type="stmt" count="1"/>
73576
  <line num="83" type="stmt" count="1"/>
@@ -73713,52 +73799,52 @@
73713
  <class name="Theme" namespace="Boldgrid\Library\Library\Theme">
73714
  <metrics complexity="10" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="28" coveredstatements="24" elements="33" coveredelements="28"/>
73715
  </class>
73716
- <line num="89" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="7"/>
73717
- <line num="90" type="stmt" count="7"/>
73718
- <line num="91" type="stmt" count="7"/>
73719
- <line num="92" type="stmt" count="7"/>
73720
- <line num="93" type="stmt" count="7"/>
73721
- <line num="94" type="stmt" count="7"/>
73722
- <line num="95" type="stmt" count="7"/>
73723
- <line num="96" type="stmt" count="7"/>
73724
  <line num="105" type="method" name="setUpdateData" visibility="public" complexity="1" crap="1" count="1"/>
73725
  <line num="106" type="stmt" count="1"/>
73726
  <line num="107" type="stmt" count="1"/>
73727
- <line num="116" type="method" name="getParent" visibility="public" complexity="1" crap="1" count="7"/>
73728
- <line num="117" type="stmt" count="7"/>
73729
- <line num="118" type="stmt" count="7"/>
73730
- <line num="126" type="method" name="setIsActive" visibility="private" complexity="2" crap="2" count="7"/>
73731
- <line num="127" type="stmt" count="7"/>
73732
- <line num="128" type="stmt" count="7"/>
73733
- <line num="129" type="stmt" count="7"/>
73734
- <line num="130" type="stmt" count="7"/>
73735
- <line num="131" type="stmt" count="7"/>
73736
- <line num="133" type="stmt" count="7"/>
73737
- <line num="140" type="method" name="setHasUpdate" visibility="public" complexity="5" crap="6.20" count="7"/>
73738
- <line num="141" type="stmt" count="7"/>
73739
- <line num="142" type="stmt" count="7"/>
73740
  <line num="143" type="stmt" count="0"/>
73741
  <line num="144" type="stmt" count="0"/>
73742
- <line num="145" type="stmt" count="7"/>
73743
- <line num="148" type="stmt" count="7"/>
73744
- <line num="150" type="stmt" count="7"/>
73745
  <line num="151" type="stmt" count="0"/>
73746
  <line num="152" type="stmt" count="0"/>
73747
- <line num="153" type="stmt" count="7"/>
73748
- <line num="155" type="stmt" count="7"/>
73749
  <metrics loc="156" ncloc="60" classes="1" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="28" coveredstatements="24" elements="33" coveredelements="28"/>
73750
  </file>
73751
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Theme/Themes.php">
73752
  <class name="Themes" namespace="Boldgrid\Library\Library\Theme">
73753
  <metrics complexity="7" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="13" coveredstatements="11" elements="17" coveredelements="13"/>
73754
  </class>
73755
- <line num="39" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="7"/>
73756
- <line num="40" type="stmt" count="7"/>
73757
- <line num="41" type="stmt" count="7"/>
73758
- <line num="42" type="stmt" count="7"/>
73759
- <line num="43" type="stmt" count="7"/>
73760
- <line num="44" type="stmt" count="7"/>
73761
- <line num="45" type="stmt" count="7"/>
73762
  <line num="54" type="method" name="get" visibility="public" complexity="1" crap="1" count="2"/>
73763
  <line num="55" type="stmt" count="2"/>
73764
  <line num="66" type="method" name="getFromStylesheet" visibility="public" complexity="3" crap="3.07" count="1"/>
@@ -74972,13 +75058,13 @@
74972
  <line num="84" type="stmt" count="0"/>
74973
  <line num="85" type="stmt" count="0"/>
74974
  <line num="87" type="stmt" count="0"/>
74975
- <line num="100" type="method" name="getWpFilesystem" visibility="public" complexity="2" crap="2.50" count="36"/>
74976
- <line num="101" type="stmt" count="36"/>
74977
- <line num="104" type="stmt" count="36"/>
74978
  <line num="105" type="stmt" count="0"/>
74979
  <line num="106" type="stmt" count="0"/>
74980
  <line num="107" type="stmt" count="0"/>
74981
- <line num="109" type="stmt" count="36"/>
74982
  <line num="120" type="method" name="getContents" visibility="public" complexity="3" crap="12" count="0"/>
74983
  <line num="121" type="stmt" count="0"/>
74984
  <line num="123" type="stmt" count="0"/>
@@ -76782,7 +76868,7 @@
76782
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76783
  </file>
76784
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76785
- <class name="ComposerStaticInit64e607af5155660f38e8d7f6ce585a59" namespace="Composer\Autoload">
76786
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76787
  </class>
76788
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
@@ -76874,7 +76960,7 @@
76874
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
76875
  </file>
76876
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
76877
- <class name="ComposerAutoloaderInit64e607af5155660f38e8d7f6ce585a59" namespace="global">
76878
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
76879
  </class>
76880
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
@@ -96094,6 +96180,6 @@
96094
  <line num="16" type="stmt" count="0"/>
96095
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
96096
  </file>
96097
- <metrics files="961" loc="192967" ncloc="117652" classes="870" methods="3587" coveredmethods="306" conditionals="0" coveredconditionals="0" statements="86599" coveredstatements="4561" elements="90186" coveredelements="4867"/>
96098
  </project>
96099
  </coverage>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1600128489">
3
+ <project timestamp="1600128489">
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">
2054
  </file>
2055
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-auto-updates.php">
2056
  <class name="Boldgrid_Backup_Admin_Auto_Updates" namespace="global" fullPackage="Boldgrid.Backup.Admin.Auto">
2057
+ <metrics complexity="39" methods="11" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="92" coveredstatements="79" elements="103" coveredelements="87"/>
2058
  </class>
2059
  <line num="60" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="7"/>
2060
+ <line num="61" type="stmt" count="7"/>
2061
  <line num="63" type="stmt" count="7"/>
2062
  <line num="64" type="stmt" count="7"/>
2063
+ <line num="88" type="method" name="wordpress_option_updated" visibility="public" complexity="5" crap="30" count="0"/>
2064
+ <line num="90" type="stmt" count="0"/>
2065
+ <line num="91" type="stmt" count="0"/>
2066
+ <line num="92" type="stmt" count="0"/>
 
 
2067
  <line num="95" type="stmt" count="0"/>
2068
+ <line num="96" type="stmt" count="0"/>
2069
  <line num="98" type="stmt" count="0"/>
2070
  <line num="99" type="stmt" count="0"/>
 
2071
  <line num="102" type="stmt" count="0"/>
2072
+ <line num="103" type="stmt" count="0"/>
2073
  <line num="106" type="stmt" count="0"/>
2074
+ <line num="107" type="stmt" count="0"/>
2075
+ <line num="114" type="method" name="set_settings" visibility="public" complexity="1" crap="1" count="7"/>
2076
+ <line num="115" type="stmt" count="7"/>
2077
+ <line num="116" type="stmt" count="7"/>
2078
+ <line num="117" type="stmt" count="7"/>
2079
+ <line num="126" type="method" name="get_days" visibility="public" complexity="3" crap="3" count="2"/>
2080
+ <line num="127" type="stmt" count="2"/>
2081
+ <line num="128" type="stmt" count="2"/>
2082
  <line num="130" type="stmt" count="2"/>
2083
+ <line num="142" type="method" name="maybe_update_plugin" visibility="public" complexity="4" crap="4" count="1"/>
2084
+ <line num="143" type="stmt" count="1"/>
2085
+ <line num="145" type="stmt" count="1"/>
2086
  <line num="146" type="stmt" count="1"/>
2087
  <line num="147" type="stmt" count="1"/>
2088
+ <line num="149" type="stmt" count="1"/>
2089
  <line num="150" type="stmt" count="1"/>
2090
  <line num="151" type="stmt" count="1"/>
2091
  <line num="152" type="stmt" count="1"/>
2092
  <line num="153" type="stmt" count="1"/>
2093
+ <line num="155" type="stmt" count="1"/>
2094
+ <line num="167" type="method" name="maybe_update_theme" visibility="public" complexity="4" crap="4" count="1"/>
2095
+ <line num="168" type="stmt" count="1"/>
 
2096
  <line num="170" type="stmt" count="1"/>
2097
  <line num="171" type="stmt" count="1"/>
2098
  <line num="172" type="stmt" count="1"/>
2099
  <line num="173" type="stmt" count="1"/>
2100
  <line num="174" type="stmt" count="1"/>
2101
+ <line num="175" type="stmt" count="1"/>
2102
  <line num="177" type="stmt" count="1"/>
2103
+ <line num="178" type="stmt" count="1"/>
2104
+ <line num="180" type="stmt" count="1"/>
2105
+ <line num="196" type="method" name="auto_update_plugins" visibility="public" complexity="5" crap="5.01" count="1"/>
2106
+ <line num="204" type="stmt" count="1"/>
2107
+ <line num="205" type="stmt" count="0"/>
2108
  <line num="208" type="stmt" count="1"/>
 
 
2109
  <line num="211" type="stmt" count="1"/>
2110
  <line num="212" type="stmt" count="1"/>
2111
  <line num="213" type="stmt" count="1"/>
2112
+ <line num="214" type="stmt" count="1"/>
2113
  <line num="215" type="stmt" count="1"/>
2114
+ <line num="216" type="stmt" count="1"/>
2115
+ <line num="217" type="stmt" count="1"/>
2116
+ <line num="219" type="stmt" count="1"/>
2117
+ <line num="222" type="stmt" count="1"/>
2118
+ <line num="238" type="method" name="auto_update_themes" visibility="public" complexity="5" crap="5.01" count="1"/>
2119
  <line num="246" type="stmt" count="1"/>
2120
+ <line num="247" type="stmt" count="0"/>
 
 
2121
  <line num="250" type="stmt" count="1"/>
2122
+ <line num="253" type="stmt" count="1"/>
 
2123
  <line num="254" type="stmt" count="1"/>
2124
+ <line num="255" type="stmt" count="1"/>
2125
+ <line num="256" type="stmt" count="1"/>
2126
  <line num="257" type="stmt" count="1"/>
2127
+ <line num="258" type="stmt" count="1"/>
2128
+ <line num="259" type="stmt" count="1"/>
2129
+ <line num="261" type="stmt" count="1"/>
2130
+ <line num="264" type="stmt" count="1"/>
2131
+ <line num="275" type="method" name="auto_update_core" visibility="public" complexity="7" crap="7" count="1"/>
 
 
2132
  <line num="277" type="stmt" count="1"/>
2133
  <line num="278" type="stmt" count="1"/>
2134
  <line num="279" type="stmt" count="1"/>
2135
  <line num="280" type="stmt" count="1"/>
2136
+ <line num="281" type="stmt" count="1"/>
2137
  <line num="282" type="stmt" count="1"/>
 
2138
  <line num="284" type="stmt" count="1"/>
2139
  <line num="285" type="stmt" count="1"/>
2140
+ <line num="286" type="stmt" count="1"/>
2141
  <line num="287" type="stmt" count="1"/>
 
2142
  <line num="289" type="stmt" count="1"/>
2143
  <line num="290" type="stmt" count="1"/>
2144
  <line num="291" type="stmt" count="1"/>
2145
+ <line num="292" type="stmt" count="1"/>
2146
+ <line num="294" type="stmt" count="1"/>
2147
+ <line num="295" type="stmt" count="1"/>
2148
+ <line num="296" type="stmt" count="1"/>
2149
+ <line num="297" type="stmt" count="1"/>
2150
+ <line num="298" type="stmt" count="1"/>
2151
+ <line num="311" type="method" name="init_plugins" visibility="private" complexity="2" crap="2" count="2"/>
2152
+ <line num="312" type="stmt" count="2"/>
2153
+ <line num="313" type="stmt" count="2"/>
2154
+ <line num="316" type="stmt" count="2"/>
2155
+ <line num="317" type="stmt" count="2"/>
2156
+ <line num="318" type="stmt" count="2"/>
2157
+ <line num="327" type="method" name="init_themes" visibility="private" complexity="2" crap="2" count="2"/>
2158
+ <line num="328" type="stmt" count="2"/>
2159
+ <line num="329" type="stmt" count="1"/>
2160
+ <line num="332" type="stmt" count="2"/>
2161
+ <line num="333" type="stmt" count="2"/>
2162
+ <metrics loc="334" ncloc="149" classes="1" methods="11" coveredmethods="8" conditionals="0" coveredconditionals="0" statements="92" coveredstatements="79" elements="103" coveredelements="87"/>
2163
  </file>
2164
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-backup-dir.php">
2165
  <class name="Boldgrid_Backup_Admin_Backup_Dir" namespace="global" fullPackage="Boldgrid.Backup.Admin.Backup">
5133
  <line num="268" type="stmt" count="0"/>
5134
  <metrics loc="269" ncloc="130" classes="1" methods="7" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="83" coveredstatements="55" elements="90" coveredelements="57"/>
5135
  </file>
5136
+ <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-environment.php">
5137
+ <class name="Boldgrid_Backup_Admin_Environment" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5138
+ <metrics complexity="11" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="0" elements="38" coveredelements="0"/>
5139
+ </class>
5140
+ <line num="42" type="method" name="has_changed" visibility="public" complexity="3" crap="12" count="0"/>
5141
+ <line num="53" type="stmt" count="0"/>
5142
+ <line num="54" type="stmt" count="0"/>
5143
+ <line num="55" type="stmt" count="0"/>
5144
+ <line num="57" type="stmt" count="0"/>
5145
+ <line num="58" type="stmt" count="0"/>
5146
+ <line num="59" type="stmt" count="0"/>
5147
+ <line num="69" type="method" name="has_hostname_changed" visibility="public" complexity="1" crap="2" count="0"/>
5148
+ <line num="70" type="stmt" count="0"/>
5149
+ <line num="72" type="stmt" count="0"/>
5150
+ <line num="73" type="stmt" count="0"/>
5151
+ <line num="79" type="stmt" count="0"/>
5152
+ <line num="81" type="stmt" count="0"/>
5153
+ <line num="91" type="method" name="has_phpversion_changed" visibility="public" complexity="1" crap="2" count="0"/>
5154
+ <line num="92" type="stmt" count="0"/>
5155
+ <line num="94" type="stmt" count="0"/>
5156
+ <line num="95" type="stmt" count="0"/>
5157
+ <line num="101" type="stmt" count="0"/>
5158
+ <line num="103" type="stmt" count="0"/>
5159
+ <line num="115" type="method" name="has_wpversion_changed" visibility="public" complexity="1" crap="2" count="0"/>
5160
+ <line num="116" type="stmt" count="0"/>
5161
+ <line num="118" type="stmt" count="0"/>
5162
+ <line num="120" type="stmt" count="0"/>
5163
+ <line num="126" type="stmt" count="0"/>
5164
+ <line num="128" type="stmt" count="0"/>
5165
+ <line num="143" type="method" name="get_saved_value" visibility="private" complexity="2" crap="6" count="0"/>
5166
+ <line num="144" type="stmt" count="0"/>
5167
+ <line num="146" type="stmt" count="0"/>
5168
+ <line num="159" type="method" name="get_saved_values" visibility="private" complexity="1" crap="2" count="0"/>
5169
+ <line num="160" type="stmt" count="0"/>
5170
+ <line num="174" type="method" name="save_value" visibility="private" complexity="1" crap="2" count="0"/>
5171
+ <line num="175" type="stmt" count="0"/>
5172
+ <line num="177" type="stmt" count="0"/>
5173
+ <line num="179" type="stmt" count="0"/>
5174
+ <line num="180" type="stmt" count="0"/>
5175
+ <line num="192" type="method" name="save_values" visibility="private" complexity="1" crap="2" count="0"/>
5176
+ <line num="193" type="stmt" count="0"/>
5177
+ <line num="194" type="stmt" count="0"/>
5178
+ <metrics loc="195" ncloc="71" classes="1" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="30" coveredstatements="0" elements="38" coveredelements="0"/>
5179
+ </file>
5180
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-filelist.php">
5181
  <class name="Boldgrid_Backup_Admin_Filelist" namespace="global" fullPackage="Boldgrid.Backup.Admin">
5182
  <metrics complexity="7" methods="3" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="20" coveredstatements="7" elements="23" coveredelements="9"/>
7054
  </file>
7055
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-test.php">
7056
  <class name="Boldgrid_Backup_Admin_Test" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7057
+ <metrics complexity="99" methods="26" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="261" coveredstatements="112" elements="287" coveredelements="117"/>
7058
  </class>
7059
  <line num="122" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
7060
  <line num="124" type="stmt" count="29"/>
7200
  <line num="521" type="method" name="is_system_zip_supported" visibility="public" complexity="1" crap="2" count="0"/>
7201
  <line num="522" type="stmt" count="0"/>
7202
  <line num="524" type="stmt" count="0"/>
7203
+ <line num="534" type="method" name="run_functionality_tests" visibility="public" complexity="15" crap="25.25" count="4"/>
 
7204
  <line num="536" type="stmt" count="4"/>
7205
+ <line num="537" type="stmt" count="4"/>
7206
  <line num="540" type="stmt" count="1"/>
 
 
 
 
 
 
 
 
7207
  <line num="550" type="stmt" count="1"/>
7208
+ <line num="551" type="stmt" count="1"/>
7209
+ <line num="552" type="stmt" count="0"/>
7210
+ <line num="555" type="stmt" count="1"/>
 
 
7211
  <line num="556" type="stmt" count="1"/>
7212
+ <line num="558" type="stmt" count="1"/>
7213
+ <line num="559" type="stmt" count="0"/>
7214
+ <line num="560" type="stmt" count="1"/>
7215
+ <line num="561" type="stmt" count="0"/>
7216
  <line num="562" type="stmt" count="1"/>
7217
+ <line num="563" type="stmt" count="0"/>
7218
+ <line num="564" type="stmt" count="1"/>
7219
+ <line num="565" type="stmt" count="0"/>
7220
+ <line num="566" type="stmt" count="1"/>
7221
+ <line num="567" type="stmt" count="0"/>
7222
+ <line num="568" type="stmt" count="1"/>
7223
+ <line num="569" type="stmt" count="0"/>
7224
+ <line num="570" type="stmt" count="1"/>
7225
+ <line num="571" type="stmt" count="0"/>
7226
+ <line num="572" type="stmt" count="1"/>
7227
+ <line num="573" type="stmt" count="0"/>
7228
+ <line num="574" type="stmt" count="0"/>
7229
+ <line num="575" type="stmt" count="1"/>
7230
+ <line num="579" type="stmt" count="1"/>
7231
+ <line num="581" type="stmt" count="1"/>
7232
+ <line num="594" type="method" name="get_disk_space" visibility="public" complexity="5" crap="30" count="0"/>
7233
  <line num="596" type="stmt" count="0"/>
7234
  <line num="599" type="stmt" count="0"/>
7235
  <line num="602" type="stmt" count="0"/>
7236
  <line num="603" type="stmt" count="0"/>
7237
+ <line num="605" type="stmt" count="0"/>
7238
+ <line num="606" type="stmt" count="0"/>
7239
+ <line num="607" type="stmt" count="0"/>
7240
  <line num="608" type="stmt" count="0"/>
7241
  <line num="609" type="stmt" count="0"/>
7242
+ <line num="613" type="stmt" count="0"/>
7243
+ <line num="614" type="stmt" count="0"/>
7244
+ <line num="615" type="stmt" count="0"/>
7245
+ <line num="618" type="stmt" count="0"/>
7246
+ <line num="621" type="stmt" count="0"/>
7247
+ <line num="622" type="stmt" count="0"/>
7248
+ <line num="623" type="stmt" count="0"/>
7249
  <line num="627" type="stmt" count="0"/>
7250
+ <line num="628" type="stmt" count="0"/>
7251
  <line num="629" type="stmt" count="0"/>
7252
  <line num="630" type="stmt" count="0"/>
7253
+ <line num="631" type="stmt" count="0"/>
7254
+ <line num="644" type="method" name="get_wp_size" visibility="private" complexity="5" crap="30" count="0"/>
 
 
 
 
 
7255
  <line num="646" type="stmt" count="0"/>
7256
+ <line num="648" type="stmt" count="0"/>
7257
  <line num="649" type="stmt" count="0"/>
7258
+ <line num="653" type="stmt" count="0"/>
7259
+ <line num="654" type="stmt" count="0"/>
7260
  <line num="655" type="stmt" count="0"/>
7261
+ <line num="656" type="stmt" count="0"/>
7262
+ <line num="658" type="stmt" count="0"/>
7263
+ <line num="661" type="stmt" count="0"/>
7264
+ <line num="664" type="stmt" count="0"/>
7265
+ <line num="665" type="stmt" count="0"/>
7266
+ <line num="668" type="stmt" count="0"/>
7267
+ <line num="671" type="stmt" count="0"/>
7268
+ <line num="674" type="stmt" count="0"/>
7269
+ <line num="687" type="method" name="get_cli_support" visibility="public" complexity="10" crap="10.20" count="1"/>
7270
+ <line num="689" type="stmt" count="1"/>
 
 
7271
  <line num="690" type="stmt" count="1"/>
7272
+ <line num="691" type="stmt" count="1"/>
7273
  <line num="694" type="stmt" count="1"/>
7274
+ <line num="698" type="stmt" count="1"/>
7275
  <line num="699" type="stmt" count="1"/>
7276
  <line num="701" type="stmt" count="1"/>
7277
  <line num="703" type="stmt" count="1"/>
7278
+ <line num="705" type="stmt" count="1"/>
7279
+ <line num="707" type="stmt" count="0"/>
7280
+ <line num="708" type="stmt" count="0"/>
7281
+ <line num="709" type="stmt" count="1"/>
7282
  <line num="712" type="stmt" count="1"/>
7283
+ <line num="713" type="stmt" count="1"/>
7284
+ <line num="716" type="stmt" count="1"/>
7285
+ <line num="718" type="stmt" count="1"/>
7286
+ <line num="720" type="stmt" count="1"/>
7287
+ <line num="722" type="stmt" count="1"/>
7288
+ <line num="723" type="stmt" count="0"/>
7289
+ <line num="726" type="stmt" count="1"/>
7290
+ <line num="727" type="stmt" count="1"/>
7291
+ <line num="729" type="stmt" count="1"/>
7292
+ <line num="731" type="stmt" count="1"/>
7293
+ <line num="733" type="stmt" count="1"/>
7294
+ <line num="745" type="method" name="get_database_size" visibility="public" complexity="4" crap="20" count="0"/>
7295
  <line num="747" type="stmt" count="0"/>
7296
+ <line num="749" type="stmt" count="0"/>
7297
+ <line num="750" type="stmt" count="0"/>
7298
  <line num="754" type="stmt" count="0"/>
7299
+ <line num="757" type="stmt" count="0"/>
7300
  <line num="759" type="stmt" count="0"/>
7301
+ <line num="760" type="stmt" count="0"/>
7302
+ <line num="761" type="stmt" count="0"/>
7303
  <line num="762" type="stmt" count="0"/>
7304
+ <line num="765" type="stmt" count="0"/>
7305
+ <line num="766" type="stmt" count="0"/>
7306
+ <line num="770" type="stmt" count="0"/>
7307
+ <line num="773" type="stmt" count="0"/>
7308
+ <line num="774" type="stmt" count="0"/>
7309
+ <line num="778" type="stmt" count="0"/>
7310
+ <line num="781" type="stmt" count="0"/>
7311
+ <line num="793" type="method" name="get_is_abspath_writable" visibility="public" complexity="2" crap="2.03" count="1"/>
7312
+ <line num="794" type="stmt" count="1"/>
7313
+ <line num="795" type="stmt" count="0"/>
7314
+ <line num="799" type="stmt" count="1"/>
7315
+ <line num="802" type="stmt" count="1"/>
7316
+ <line num="805" type="stmt" count="1"/>
7317
+ <line num="815" type="method" name="is_homedir_writable" visibility="public" complexity="2" crap="6" count="0"/>
7318
+ <line num="816" type="stmt" count="0"/>
7319
+ <line num="817" type="stmt" count="0"/>
7320
  <line num="821" type="stmt" count="0"/>
7321
+ <line num="824" type="stmt" count="0"/>
7322
+ <line num="827" type="stmt" count="0"/>
7323
+ <line num="837" type="method" name="is_iis" visibility="public" complexity="3" crap="12" count="0"/>
7324
+ <line num="838" type="stmt" count="0"/>
7325
+ <line num="839" type="stmt" count="0"/>
7326
+ <line num="840" type="stmt" count="0"/>
7327
+ <line num="850" type="method" name="is_pcl_zip_supported" visibility="public" complexity="1" crap="1" count="1"/>
7328
+ <line num="851" type="stmt" count="1"/>
7329
+ <line num="853" type="stmt" count="1"/>
7330
+ <line num="865" type="method" name="is_ea4_cli" visibility="public" complexity="3" crap="3" count="1"/>
7331
+ <line num="866" type="stmt" count="1"/>
7332
  <line num="867" type="stmt" count="1"/>
7333
+ <line num="869" type="stmt" count="1"/>
7334
+ <line num="871" type="stmt" count="1"/>
7335
+ <line num="883" type="method" name="is_filesystem_supported" visibility="public" complexity="3" crap="4.12" count="1"/>
7336
+ <line num="884" type="stmt" count="1"/>
7337
+ <line num="886" type="stmt" count="1"/>
7338
+ <line num="889" type="stmt" count="1"/>
7339
+ <line num="890" type="stmt" count="0"/>
7340
+ <line num="891" type="stmt" count="0"/>
7341
+ <line num="892" type="stmt" count="0"/>
7342
+ <line num="894" type="stmt" count="1"/>
7343
+ <line num="895" type="stmt" count="0"/>
7344
+ <line num="896" type="stmt" count="0"/>
7345
+ <line num="898" type="stmt" count="1"/>
7346
+ <metrics loc="900" ncloc="445" classes="1" methods="26" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="261" coveredstatements="112" elements="287" coveredelements="117"/>
7347
  </file>
7348
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-time.php">
7349
  <class name="Boldgrid_Backup_Admin_Time" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7538
  </file>
7539
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-upload.php">
7540
  <class name="Boldgrid_Backup_Admin_Upload" namespace="global" fullPackage="Boldgrid.Backup.Admin">
7541
+ <metrics complexity="49" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="232" coveredstatements="2" elements="241" coveredelements="3"/>
7542
  </class>
7543
  <line num="39" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="29"/>
7544
  <line num="41" type="stmt" count="29"/>
7681
  <line num="380" type="stmt" count="0"/>
7682
  <line num="382" type="stmt" count="0"/>
7683
  <line num="384" type="stmt" count="0"/>
7684
+ <line num="403" type="method" name="ajax_url_import" visibility="public" complexity="20" crap="420" count="0"/>
7685
+ <line num="404" type="stmt" count="0"/>
7686
  <line num="405" type="stmt" count="0"/>
7687
  <line num="406" type="stmt" count="0"/>
7688
+ <line num="407" type="stmt" count="0"/>
7689
  <line num="410" type="stmt" count="0"/>
7690
  <line num="411" type="stmt" count="0"/>
7691
+ <line num="413" type="stmt" count="0"/>
7692
  <line num="415" type="stmt" count="0"/>
7693
+ <line num="416" type="stmt" count="0"/>
7694
  <line num="419" type="stmt" count="0"/>
7695
  <line num="420" type="stmt" count="0"/>
7696
  <line num="422" type="stmt" count="0"/>
7697
+ <line num="424" type="stmt" count="0"/>
7698
  <line num="425" type="stmt" count="0"/>
7699
+ <line num="427" type="stmt" count="0"/>
7700
  <line num="428" type="stmt" count="0"/>
7701
  <line num="430" type="stmt" count="0"/>
7702
  <line num="431" type="stmt" count="0"/>
7703
  <line num="433" type="stmt" count="0"/>
7704
  <line num="435" type="stmt" count="0"/>
7705
  <line num="436" type="stmt" count="0"/>
7706
+ <line num="438" type="stmt" count="0"/>
7707
+ <line num="440" type="stmt" count="0"/>
7708
  <line num="441" type="stmt" count="0"/>
7709
  <line num="442" type="stmt" count="0"/>
7710
  <line num="444" type="stmt" count="0"/>
7711
+ <line num="446" type="stmt" count="0"/>
7712
  <line num="447" type="stmt" count="0"/>
 
7713
  <line num="449" type="stmt" count="0"/>
 
7714
  <line num="452" type="stmt" count="0"/>
7715
  <line num="453" type="stmt" count="0"/>
7716
  <line num="454" type="stmt" count="0"/>
7717
  <line num="455" type="stmt" count="0"/>
 
7718
  <line num="457" type="stmt" count="0"/>
7719
  <line num="458" type="stmt" count="0"/>
7720
+ <line num="459" type="stmt" count="0"/>
7721
  <line num="460" type="stmt" count="0"/>
7722
+ <line num="461" type="stmt" count="0"/>
7723
  <line num="462" type="stmt" count="0"/>
7724
  <line num="463" type="stmt" count="0"/>
7725
  <line num="465" type="stmt" count="0"/>
7727
  <line num="468" type="stmt" count="0"/>
7728
  <line num="469" type="stmt" count="0"/>
7729
  <line num="470" type="stmt" count="0"/>
7730
+ <line num="473" type="stmt" count="0"/>
 
 
7731
  <line num="475" type="stmt" count="0"/>
7732
+ <line num="476" type="stmt" count="0"/>
7733
  <line num="477" type="stmt" count="0"/>
7734
  <line num="478" type="stmt" count="0"/>
7735
+ <line num="479" type="stmt" count="0"/>
7736
+ <line num="480" type="stmt" count="0"/>
7737
+ <line num="482" type="stmt" count="0"/>
7738
+ <line num="483" type="stmt" count="0"/>
7739
+ <line num="485" type="stmt" count="0"/>
7740
+ <line num="486" type="stmt" count="0"/>
7741
  <line num="489" type="stmt" count="0"/>
7742
+ <line num="490" type="stmt" count="0"/>
7743
+ <line num="493" type="stmt" count="0"/>
 
 
7744
  <line num="496" type="stmt" count="0"/>
7745
+ <line num="498" type="stmt" count="0"/>
 
7746
  <line num="500" type="stmt" count="0"/>
7747
  <line num="501" type="stmt" count="0"/>
7748
+ <line num="503" type="stmt" count="0"/>
7749
  <line num="504" type="stmt" count="0"/>
7750
+ <line num="505" type="stmt" count="0"/>
7751
  <line num="506" type="stmt" count="0"/>
7752
+ <line num="508" type="stmt" count="0"/>
7753
  <line num="509" type="stmt" count="0"/>
 
7754
  <line num="512" type="stmt" count="0"/>
7755
+ <line num="513" type="stmt" count="0"/>
7756
+ <line num="514" type="stmt" count="0"/>
7757
+ <line num="515" type="stmt" count="0"/>
7758
+ <line num="517" type="stmt" count="0"/>
7759
+ <line num="518" type="stmt" count="0"/>
7760
+ <line num="519" type="stmt" count="0"/>
7761
  <line num="520" type="stmt" count="0"/>
7762
  <line num="521" type="stmt" count="0"/>
7763
  <line num="522" type="stmt" count="0"/>
7764
  <line num="523" type="stmt" count="0"/>
7765
+ <line num="525" type="stmt" count="0"/>
7766
+ <line num="526" type="stmt" count="0"/>
7767
+ <line num="530" type="stmt" count="0"/>
7768
+ <line num="531" type="stmt" count="0"/>
7769
+ <line num="533" type="stmt" count="0"/>
7770
+ <line num="534" type="stmt" count="0"/>
7771
+ <line num="536" type="stmt" count="0"/>
7772
+ <line num="537" type="stmt" count="0"/>
7773
+ <line num="539" type="stmt" count="0"/>
7774
+ <line num="542" type="stmt" count="0"/>
7775
+ <line num="544" type="stmt" count="0"/>
7776
+ <line num="546" type="stmt" count="0"/>
7777
+ <line num="547" type="stmt" count="0"/>
7778
+ <line num="554" type="method" name="archive_upload_action" visibility="public" complexity="3" crap="12" count="0"/>
7779
+ <line num="555" type="stmt" count="0"/>
7780
+ <line num="556" type="stmt" count="0"/>
7781
+ <line num="557" type="stmt" count="0"/>
7782
+ <line num="558" type="stmt" count="0"/>
7783
+ <line num="559" type="stmt" count="0"/>
7784
+ <metrics loc="560" ncloc="314" classes="1" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="232" coveredstatements="2" elements="241" coveredelements="3"/>
7785
  </file>
7786
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-usage.php">
7787
  <class name="Boldgrid_Backup_Admin_Usage" namespace="global" fullPackage="Boldgrid.Backup.Admin">
15391
  </file>
15392
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/class-boldgrid-backup.php">
15393
  <class name="Boldgrid_Backup" namespace="global" fullPackage="Boldgrid">
15394
+ <metrics complexity="16" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="283" coveredstatements="0" elements="291" coveredelements="0"/>
15395
  </class>
15396
  <line num="66" type="method" name="__construct" visibility="public" complexity="2" crap="6" count="0"/>
15397
  <line num="67" type="stmt" count="0"/>
15518
  <line num="304" type="stmt" count="0"/>
15519
  <line num="305" type="stmt" count="0"/>
15520
  <line num="307" type="stmt" count="0"/>
15521
+ <line num="309" type="stmt" count="0"/>
15522
+ <line num="310" type="stmt" count="0"/>
15523
+ <line num="321" type="method" name="set_locale" visibility="private" complexity="1" crap="2" count="0"/>
15524
  <line num="322" type="stmt" count="0"/>
15525
+ <line num="324" type="stmt" count="0"/>
15526
+ <line num="325" type="stmt" count="0"/>
15527
+ <line num="333" type="method" name="define_admin_hooks" visibility="private" complexity="5" crap="30" count="0"/>
15528
  <line num="335" type="stmt" count="0"/>
15529
+ <line num="337" type="stmt" count="0"/>
15530
+ <line num="340" type="stmt" count="0"/>
 
15531
  <line num="343" type="stmt" count="0"/>
15532
+ <line num="344" type="stmt" count="0"/>
15533
  <line num="345" type="stmt" count="0"/>
 
15534
  <line num="347" type="stmt" count="0"/>
15535
+ <line num="348" type="stmt" count="0"/>
15536
+ <line num="349" type="stmt" count="0"/>
15537
  <line num="352" type="stmt" count="0"/>
15538
  <line num="353" type="stmt" count="0"/>
15539
+ <line num="354" type="stmt" count="0"/>
15540
+ <line num="355" type="stmt" count="0"/>
15541
  <line num="358" type="stmt" count="0"/>
15542
  <line num="359" type="stmt" count="0"/>
15543
+ <line num="360" type="stmt" count="0"/>
15544
  <line num="361" type="stmt" count="0"/>
 
15545
  <line num="363" type="stmt" count="0"/>
15546
  <line num="364" type="stmt" count="0"/>
15547
  <line num="365" type="stmt" count="0"/>
15548
+ <line num="366" type="stmt" count="0"/>
15549
+ <line num="367" type="stmt" count="0"/>
15550
  <line num="370" type="stmt" count="0"/>
15551
  <line num="371" type="stmt" count="0"/>
15552
+ <line num="372" type="stmt" count="0"/>
15553
+ <line num="373" type="stmt" count="0"/>
15554
  <line num="376" type="stmt" count="0"/>
15555
  <line num="377" type="stmt" count="0"/>
15556
+ <line num="378" type="stmt" count="0"/>
15557
+ <line num="379" type="stmt" count="0"/>
15558
  <line num="382" type="stmt" count="0"/>
15559
  <line num="383" type="stmt" count="0"/>
15560
+ <line num="384" type="stmt" count="0"/>
15561
+ <line num="385" type="stmt" count="0"/>
15562
  <line num="388" type="stmt" count="0"/>
15563
  <line num="389" type="stmt" count="0"/>
15564
+ <line num="390" type="stmt" count="0"/>
15565
+ <line num="391" type="stmt" count="0"/>
15566
  <line num="394" type="stmt" count="0"/>
15567
  <line num="395" type="stmt" count="0"/>
15568
+ <line num="396" type="stmt" count="0"/>
15569
+ <line num="397" type="stmt" count="0"/>
15570
  <line num="400" type="stmt" count="0"/>
15571
  <line num="401" type="stmt" count="0"/>
15572
+ <line num="402" type="stmt" count="0"/>
15573
  <line num="403" type="stmt" count="0"/>
 
15574
  <line num="405" type="stmt" count="0"/>
15575
+ <line num="406" type="stmt" count="0"/>
15576
+ <line num="407" type="stmt" count="0"/>
15577
  <line num="410" type="stmt" count="0"/>
15578
  <line num="411" type="stmt" count="0"/>
15579
+ <line num="412" type="stmt" count="0"/>
15580
+ <line num="413" type="stmt" count="0"/>
15581
  <line num="416" type="stmt" count="0"/>
15582
  <line num="417" type="stmt" count="0"/>
15583
+ <line num="418" type="stmt" count="0"/>
15584
  <line num="419" type="stmt" count="0"/>
 
15585
  <line num="421" type="stmt" count="0"/>
15586
  <line num="422" type="stmt" count="0"/>
15587
  <line num="423" type="stmt" count="0"/>
15588
  <line num="424" type="stmt" count="0"/>
15589
+ <line num="425" type="stmt" count="0"/>
15590
  <line num="426" type="stmt" count="0"/>
15591
  <line num="428" type="stmt" count="0"/>
15592
  <line num="430" type="stmt" count="0"/>
15593
  <line num="432" type="stmt" count="0"/>
 
15594
  <line num="434" type="stmt" count="0"/>
15595
+ <line num="435" type="stmt" count="0"/>
15596
  <line num="436" type="stmt" count="0"/>
15597
+ <line num="438" type="stmt" count="0"/>
15598
  <line num="439" type="stmt" count="0"/>
15599
  <line num="441" type="stmt" count="0"/>
15600
  <line num="443" type="stmt" count="0"/>
15601
  <line num="445" type="stmt" count="0"/>
15602
  <line num="447" type="stmt" count="0"/>
 
15603
  <line num="449" type="stmt" count="0"/>
15604
+ <line num="450" type="stmt" count="0"/>
15605
  <line num="451" type="stmt" count="0"/>
15606
  <line num="453" type="stmt" count="0"/>
 
15607
  <line num="455" type="stmt" count="0"/>
15608
  <line num="456" type="stmt" count="0"/>
15609
+ <line num="457" type="stmt" count="0"/>
15610
  <line num="458" type="stmt" count="0"/>
15611
  <line num="460" type="stmt" count="0"/>
15612
  <line num="462" type="stmt" count="0"/>
15613
  <line num="464" type="stmt" count="0"/>
15614
  <line num="466" type="stmt" count="0"/>
15615
  <line num="468" type="stmt" count="0"/>
15616
+ <line num="470" type="stmt" count="0"/>
15617
  <line num="475" type="stmt" count="0"/>
15618
  <line num="477" type="stmt" count="0"/>
15619
  <line num="479" type="stmt" count="0"/>
15621
  <line num="483" type="stmt" count="0"/>
15622
  <line num="485" type="stmt" count="0"/>
15623
  <line num="487" type="stmt" count="0"/>
15624
+ <line num="489" type="stmt" count="0"/>
15625
  <line num="490" type="stmt" count="0"/>
15626
+ <line num="492" type="stmt" count="0"/>
15627
  <line num="493" type="stmt" count="0"/>
15628
  <line num="495" type="stmt" count="0"/>
 
15629
  <line num="497" type="stmt" count="0"/>
15630
+ <line num="498" type="stmt" count="0"/>
15631
  <line num="499" type="stmt" count="0"/>
15632
  <line num="501" type="stmt" count="0"/>
15633
+ <line num="503" type="stmt" count="0"/>
15634
+ <line num="504" type="stmt" count="0"/>
 
15635
  <line num="507" type="stmt" count="0"/>
15636
+ <line num="508" type="stmt" count="0"/>
15637
+ <line num="509" type="stmt" count="0"/>
15638
+ <line num="512" type="stmt" count="0"/>
15639
+ <line num="513" type="stmt" count="0"/>
15640
+ <line num="516" type="stmt" count="0"/>
15641
+ <line num="519" type="stmt" count="0"/>
15642
+ <line num="522" type="stmt" count="0"/>
15643
  <line num="525" type="stmt" count="0"/>
15644
  <line num="527" type="stmt" count="0"/>
15645
  <line num="529" type="stmt" count="0"/>
15646
  <line num="531" type="stmt" count="0"/>
15647
+ <line num="533" type="stmt" count="0"/>
 
15648
  <line num="536" type="stmt" count="0"/>
15649
  <line num="537" type="stmt" count="0"/>
15650
  <line num="538" type="stmt" count="0"/>
15651
  <line num="539" type="stmt" count="0"/>
15652
+ <line num="540" type="stmt" count="0"/>
15653
+ <line num="541" type="stmt" count="0"/>
15654
+ <line num="544" type="stmt" count="0"/>
15655
+ <line num="547" type="stmt" count="0"/>
15656
  <line num="548" type="stmt" count="0"/>
15657
  <line num="550" type="stmt" count="0"/>
 
15658
  <line num="552" type="stmt" count="0"/>
15659
  <line num="553" type="stmt" count="0"/>
15660
  <line num="554" type="stmt" count="0"/>
15661
  <line num="555" type="stmt" count="0"/>
15662
+ <line num="556" type="stmt" count="0"/>
15663
+ <line num="557" type="stmt" count="0"/>
15664
  <line num="560" type="stmt" count="0"/>
15665
+ <line num="561" type="stmt" count="0"/>
15666
+ <line num="562" type="stmt" count="0"/>
15667
+ <line num="565" type="stmt" count="0"/>
15668
  <line num="572" type="stmt" count="0"/>
15669
+ <line num="573" type="stmt" count="0"/>
15670
  <line num="574" type="stmt" count="0"/>
15671
+ <line num="576" type="stmt" count="0"/>
15672
  <line num="577" type="stmt" count="0"/>
15673
+ <line num="579" type="stmt" count="0"/>
15674
+ <line num="580" type="stmt" count="0"/>
15675
+ <line num="587" type="method" name="run" visibility="public" complexity="1" crap="2" count="0"/>
15676
+ <line num="588" type="stmt" count="0"/>
15677
+ <line num="589" type="stmt" count="0"/>
15678
+ <line num="598" type="method" name="get_plugin_name" visibility="public" complexity="1" crap="2" count="0"/>
15679
+ <line num="599" type="stmt" count="0"/>
15680
+ <line num="600" type="stmt" count="0"/>
15681
+ <line num="608" type="method" name="get_loader" visibility="public" complexity="1" crap="2" count="0"/>
15682
+ <line num="609" type="stmt" count="0"/>
15683
+ <line num="610" type="stmt" count="0"/>
15684
+ <line num="618" type="method" name="get_version" visibility="public" complexity="1" crap="2" count="0"/>
15685
+ <line num="619" type="stmt" count="0"/>
15686
+ <line num="620" type="stmt" count="0"/>
15687
+ <metrics loc="621" ncloc="381" classes="1" methods="8" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="283" coveredstatements="0" elements="291" coveredelements="0"/>
15688
  </file>
15689
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/includes/config/config.cron.php">
15690
  <line num="17" type="stmt" count="0"/>
69914
  <line num="82" type="stmt" count="0"/>
69915
  <line num="83" type="stmt" count="0"/>
69916
  <line num="85" type="stmt" count="0"/>
69917
+ <line num="97" type="method" name="get" visibility="public" complexity="3" crap="3.04" count="31"/>
69918
+ <line num="98" type="stmt" count="31"/>
69919
+ <line num="99" type="stmt" count="31"/>
69920
+ <line num="100" type="stmt" count="31"/>
69921
+ <line num="101" type="stmt" count="31"/>
69922
  <line num="102" type="stmt" count="0"/>
69923
+ <line num="105" type="stmt" count="31"/>
69924
  <line num="119" type="method" name="getFileSlug" visibility="public" complexity="1" crap="2" count="0"/>
69925
  <line num="120" type="stmt" count="0"/>
69926
  <line num="122" type="stmt" count="0"/>
72182
  <metrics loc="135" ncloc="76" classes="1" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="51" coveredstatements="51" elements="55" coveredelements="55"/>
72183
  </file>
72184
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/bootstrap.php">
 
72185
  <line num="140" type="stmt" count="0"/>
72186
+ <line num="141" type="stmt" count="0"/>
72187
+ <line num="143" type="stmt" count="0"/>
72188
  <line num="145" type="stmt" count="0"/>
72189
+ <line num="146" type="stmt" count="0"/>
72190
+ <metrics loc="148" ncloc="114" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="5" coveredelements="0"/>
72191
  </file>
72192
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/tests/cli/test-class-info.php">
72193
  <class name="Test_Boldgrid_Backup_Cli_Info" namespace="global" fullPackage="Test.Boldgrid.Backup.Cli">
73231
  <class name="Factory" namespace="Boldgrid\Library\Library\Plugin">
73232
  <metrics complexity="25" methods="7" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="79" coveredstatements="64" elements="86" coveredelements="69"/>
73233
  </class>
73234
+ <line num="39" type="method" name="create" visibility="public" complexity="2" crap="2" count="31"/>
73235
+ <line num="40" type="stmt" count="31"/>
73236
+ <line num="41" type="stmt" count="31"/>
73237
  <line num="42" type="stmt" count="29"/>
73238
  <line num="43" type="stmt" count="29"/>
73239
+ <line num="44" type="stmt" count="2"/>
73240
+ <line num="47" type="stmt" count="31"/>
73241
  <line num="59" type="method" name="createFromSlug" visibility="public" complexity="3" crap="3" count="29"/>
73242
  <line num="61" type="stmt" count="29"/>
73243
  <line num="63" type="stmt" count="29"/>
73254
  <line num="80" type="stmt" count="29"/>
73255
  <line num="81" type="stmt" count="29"/>
73256
  <line num="83" type="stmt" count="29"/>
73257
+ <line num="94" type="method" name="createFromFile" visibility="private" complexity="3" crap="3" count="2"/>
73258
+ <line num="96" type="stmt" count="2"/>
73259
+ <line num="98" type="stmt" count="2"/>
73260
+ <line num="100" type="stmt" count="2"/>
73261
+ <line num="102" type="stmt" count="2"/>
73262
+ <line num="104" type="stmt" count="2"/>
73263
+ <line num="106" type="stmt" count="2"/>
73264
+ <line num="108" type="stmt" count="2"/>
73265
+ <line num="110" type="stmt" count="2"/>
73266
+ <line num="111" type="stmt" count="2"/>
73267
+ <line num="112" type="stmt" count="2"/>
73268
+ <line num="113" type="stmt" count="2"/>
73269
+ <line num="114" type="stmt" count="2"/>
73270
+ <line num="115" type="stmt" count="2"/>
73271
+ <line num="117" type="stmt" count="2"/>
73272
  <line num="131" type="method" name="fileFromSlug" visibility="public" complexity="6" crap="8.05" count="29"/>
73273
  <line num="132" type="stmt" count="29"/>
73274
  <line num="133" type="stmt" count="29"/>
73283
  <line num="142" type="stmt" count="0"/>
73284
  <line num="143" type="stmt" count="29"/>
73285
  <line num="145" type="stmt" count="29"/>
73286
+ <line num="157" type="method" name="slugFromFile" visibility="public" complexity="4" crap="4" count="2"/>
73287
+ <line num="158" type="stmt" count="2"/>
73288
+ <line num="159" type="stmt" count="2"/>
73289
+ <line num="161" type="stmt" count="2"/>
73290
+ <line num="162" type="stmt" count="2"/>
73291
+ <line num="168" type="stmt" count="2"/>
73292
+ <line num="169" type="stmt" count="2"/>
73293
+ <line num="170" type="stmt" count="2"/>
73294
+ <line num="171" type="stmt" count="2"/>
73295
+ <line num="172" type="stmt" count="2"/>
73296
+ <line num="173" type="stmt" count="2"/>
73297
+ <line num="174" type="stmt" count="2"/>
73298
+ <line num="175" type="stmt" count="2"/>
73299
+ <line num="177" type="stmt" count="2"/>
73300
+ <line num="185" type="method" name="isPluginInstalled" visibility="public" complexity="1" crap="1" count="31"/>
73301
+ <line num="186" type="stmt" count="31"/>
73302
+ <line num="187" type="stmt" count="31"/>
73303
+ <line num="199" type="method" name="getChildPlugins" visibility="public" complexity="6" crap="14.79" count="31"/>
73304
+ <line num="200" type="stmt" count="31"/>
73305
+ <line num="202" type="stmt" count="31"/>
73306
+ <line num="203" type="stmt" count="31"/>
73307
+ <line num="204" type="stmt" count="31"/>
73308
  <line num="205" type="stmt" count="0"/>
73309
  <line num="206" type="stmt" count="0"/>
73310
  <line num="207" type="stmt" count="0"/>
73311
  <line num="208" type="stmt" count="0"/>
73312
  <line num="209" type="stmt" count="0"/>
73313
  <line num="210" type="stmt" count="0"/>
73314
+ <line num="212" type="stmt" count="31"/>
73315
+ <line num="213" type="stmt" count="31"/>
73316
  <line num="216" type="stmt" count="0"/>
73317
  <line num="217" type="stmt" count="0"/>
73318
  <line num="218" type="stmt" count="0"/>
73511
  <class name="Plugin" namespace="Boldgrid\Library\Library\Plugin">
73512
  <metrics complexity="48" methods="28" coveredmethods="11" conditionals="0" coveredconditionals="0" statements="92" coveredstatements="41" elements="120" coveredelements="52"/>
73513
  </class>
73514
+ <line num="140" type="method" name="__construct" visibility="public" complexity="4" crap="4" count="31"/>
73515
+ <line num="144" type="stmt" count="31"/>
73516
  <line num="145" type="stmt" count="29"/>
73517
  <line num="146" type="stmt" count="29"/>
73518
  <line num="147" type="stmt" count="29"/>
73519
+ <line num="149" type="stmt" count="31"/>
73520
+ <line num="150" type="stmt" count="31"/>
73521
+ <line num="151" type="stmt" count="31"/>
73522
+ <line num="153" type="stmt" count="31"/>
73523
+ <line num="155" type="stmt" count="31"/>
73524
+ <line num="156" type="stmt" count="31"/>
73525
  <line num="165" type="method" name="setUpdateData" visibility="public" complexity="1" crap="1" count="1"/>
73526
  <line num="166" type="stmt" count="1"/>
73527
  <line num="167" type="stmt" count="1"/>
73573
  <line num="345" type="stmt" count="1"/>
73574
  <line num="355" type="method" name="getSlug" visibility="public" complexity="1" crap="1" count="2"/>
73575
  <line num="356" type="stmt" count="2"/>
73576
+ <line num="365" type="method" name="setPages" visibility="public" complexity="3" crap="3" count="31"/>
73577
+ <line num="366" type="stmt" count="31"/>
73578
+ <line num="367" type="stmt" count="31"/>
73579
  <line num="368" type="stmt" count="29"/>
73580
  <line num="369" type="stmt" count="29"/>
73581
  <line num="370" type="stmt" count="29"/>
73582
  <line num="371" type="stmt" count="29"/>
73583
+ <line num="372" type="stmt" count="31"/>
73584
+ <line num="373" type="stmt" count="31"/>
73585
  <line num="382" type="method" name="setAllNoticesRead" visibility="public" complexity="2" crap="6" count="0"/>
73586
  <line num="383" type="stmt" count="0"/>
73587
  <line num="384" type="stmt" count="0"/>
73649
  <line num="48" type="stmt" count="0"/>
73650
  <line num="49" type="stmt" count="0"/>
73651
  <line num="51" type="stmt" count="0"/>
73652
+ <line num="61" type="method" name="getAllPlugins" visibility="public" complexity="2" crap="2" count="2"/>
73653
+ <line num="62" type="stmt" count="2"/>
73654
+ <line num="63" type="stmt" count="2"/>
73655
+ <line num="64" type="stmt" count="2"/>
73656
+ <line num="65" type="stmt" count="2"/>
73657
+ <line num="66" type="stmt" count="2"/>
73658
+ <line num="67" type="stmt" count="2"/>
73659
+ <line num="68" type="stmt" count="2"/>
73660
  <line num="81" type="method" name="getBySlug" visibility="public" complexity="3" crap="3.33" count="1"/>
73661
  <line num="82" type="stmt" count="1"/>
73662
  <line num="83" type="stmt" count="1"/>
73799
  <class name="Theme" namespace="Boldgrid\Library\Library\Theme">
73800
  <metrics complexity="10" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="28" coveredstatements="24" elements="33" coveredelements="28"/>
73801
  </class>
73802
+ <line num="89" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="2"/>
73803
+ <line num="90" type="stmt" count="2"/>
73804
+ <line num="91" type="stmt" count="2"/>
73805
+ <line num="92" type="stmt" count="2"/>
73806
+ <line num="93" type="stmt" count="2"/>
73807
+ <line num="94" type="stmt" count="2"/>
73808
+ <line num="95" type="stmt" count="2"/>
73809
+ <line num="96" type="stmt" count="2"/>
73810
  <line num="105" type="method" name="setUpdateData" visibility="public" complexity="1" crap="1" count="1"/>
73811
  <line num="106" type="stmt" count="1"/>
73812
  <line num="107" type="stmt" count="1"/>
73813
+ <line num="116" type="method" name="getParent" visibility="public" complexity="1" crap="1" count="2"/>
73814
+ <line num="117" type="stmt" count="2"/>
73815
+ <line num="118" type="stmt" count="2"/>
73816
+ <line num="126" type="method" name="setIsActive" visibility="private" complexity="2" crap="2" count="2"/>
73817
+ <line num="127" type="stmt" count="2"/>
73818
+ <line num="128" type="stmt" count="2"/>
73819
+ <line num="129" type="stmt" count="2"/>
73820
+ <line num="130" type="stmt" count="2"/>
73821
+ <line num="131" type="stmt" count="2"/>
73822
+ <line num="133" type="stmt" count="2"/>
73823
+ <line num="140" type="method" name="setHasUpdate" visibility="public" complexity="5" crap="6.20" count="2"/>
73824
+ <line num="141" type="stmt" count="2"/>
73825
+ <line num="142" type="stmt" count="2"/>
73826
  <line num="143" type="stmt" count="0"/>
73827
  <line num="144" type="stmt" count="0"/>
73828
+ <line num="145" type="stmt" count="2"/>
73829
+ <line num="148" type="stmt" count="2"/>
73830
+ <line num="150" type="stmt" count="2"/>
73831
  <line num="151" type="stmt" count="0"/>
73832
  <line num="152" type="stmt" count="0"/>
73833
+ <line num="153" type="stmt" count="2"/>
73834
+ <line num="155" type="stmt" count="2"/>
73835
  <metrics loc="156" ncloc="60" classes="1" methods="5" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="28" coveredstatements="24" elements="33" coveredelements="28"/>
73836
  </file>
73837
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/boldgrid/library/src/Library/Theme/Themes.php">
73838
  <class name="Themes" namespace="Boldgrid\Library\Library\Theme">
73839
  <metrics complexity="7" methods="4" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="13" coveredstatements="11" elements="17" coveredelements="13"/>
73840
  </class>
73841
+ <line num="39" type="method" name="__construct" visibility="public" complexity="2" crap="2" count="2"/>
73842
+ <line num="40" type="stmt" count="2"/>
73843
+ <line num="41" type="stmt" count="2"/>
73844
+ <line num="42" type="stmt" count="2"/>
73845
+ <line num="43" type="stmt" count="2"/>
73846
+ <line num="44" type="stmt" count="2"/>
73847
+ <line num="45" type="stmt" count="2"/>
73848
  <line num="54" type="method" name="get" visibility="public" complexity="1" crap="1" count="2"/>
73849
  <line num="55" type="stmt" count="2"/>
73850
  <line num="66" type="method" name="getFromStylesheet" visibility="public" complexity="3" crap="3.07" count="1"/>
75058
  <line num="84" type="stmt" count="0"/>
75059
  <line num="85" type="stmt" count="0"/>
75060
  <line num="87" type="stmt" count="0"/>
75061
+ <line num="100" type="method" name="getWpFilesystem" visibility="public" complexity="2" crap="2.50" count="31"/>
75062
+ <line num="101" type="stmt" count="31"/>
75063
+ <line num="104" type="stmt" count="31"/>
75064
  <line num="105" type="stmt" count="0"/>
75065
  <line num="106" type="stmt" count="0"/>
75066
  <line num="107" type="stmt" count="0"/>
75067
+ <line num="109" type="stmt" count="31"/>
75068
  <line num="120" type="method" name="getContents" visibility="public" complexity="3" crap="12" count="0"/>
75069
  <line num="121" type="stmt" count="0"/>
75070
  <line num="123" type="stmt" count="0"/>
76868
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76869
  </file>
76870
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76871
+ <class name="ComposerStaticInit5440b63ee38feddbf8421ffe28b00293" namespace="Composer\Autoload">
76872
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76873
  </class>
76874
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
76960
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
76961
  </file>
76962
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
76963
+ <class name="ComposerAutoloaderInit5440b63ee38feddbf8421ffe28b00293" namespace="global">
76964
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
76965
  </class>
76966
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
96180
  <line num="16" type="stmt" count="0"/>
96181
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
96182
  </file>
96183
+ <metrics files="962" loc="193261" ncloc="117776" classes="871" methods="3597" coveredmethods="308" conditionals="0" coveredconditionals="0" statements="86669" coveredstatements="4575" elements="90266" coveredelements="4883"/>
96184
  </project>
96185
  </coverage>
includes/class-boldgrid-backup.php CHANGED
@@ -304,6 +304,8 @@ class Boldgrid_Backup {
304
  require_once BOLDGRID_BACKUP_PATH . '/admin/orphan/class-finder.php';
305
  require_once BOLDGRID_BACKUP_PATH . '/admin/orphan/class-cleanup.php';
306
 
 
 
307
  $this->loader = new Boldgrid_Backup_Loader();
308
  }
309
 
304
  require_once BOLDGRID_BACKUP_PATH . '/admin/orphan/class-finder.php';
305
  require_once BOLDGRID_BACKUP_PATH . '/admin/orphan/class-cleanup.php';
306
 
307
+ require_once BOLDGRID_BACKUP_PATH . '/admin/class-boldgrid-backup-admin-environment.php';
308
+
309
  $this->loader = new Boldgrid_Backup_Loader();
310
  }
311
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit64e607af5155660f38e8d7f6ce585a59::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit5440b63ee38feddbf8421ffe28b00293::getLoader();
vendor/composer/ClassLoader.php CHANGED
@@ -60,7 +60,7 @@ class ClassLoader
60
  public function getPrefixes()
61
  {
62
  if (!empty($this->prefixesPsr0)) {
63
- return call_user_func_array('array_merge', $this->prefixesPsr0);
64
  }
65
 
66
  return array();
60
  public function getPrefixes()
61
  {
62
  if (!empty($this->prefixesPsr0)) {
63
+ return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
64
  }
65
 
66
  return array();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit64e607af5155660f38e8d7f6ce585a59
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit64e607af5155660f38e8d7f6ce585a59
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit64e607af5155660f38e8d7f6ce585a59', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit64e607af5155660f38e8d7f6ce585a59', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit64e607af5155660f38e8d7f6ce585a59::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit64e607af5155660f38e8d7f6ce585a59
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit64e607af5155660f38e8d7f6ce585a59::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire64e607af5155660f38e8d7f6ce585a59($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire64e607af5155660f38e8d7f6ce585a59($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit5440b63ee38feddbf8421ffe28b00293
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit5440b63ee38feddbf8421ffe28b00293', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit5440b63ee38feddbf8421ffe28b00293', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit5440b63ee38feddbf8421ffe28b00293::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInit5440b63ee38feddbf8421ffe28b00293::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire5440b63ee38feddbf8421ffe28b00293($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequire5440b63ee38feddbf8421ffe28b00293($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit64e607af5155660f38e8d7f6ce585a59
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -91,9 +91,9 @@ class ComposerStaticInit64e607af5155660f38e8d7f6ce585a59
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
- $loader->prefixLengthsPsr4 = ComposerStaticInit64e607af5155660f38e8d7f6ce585a59::$prefixLengthsPsr4;
95
- $loader->prefixDirsPsr4 = ComposerStaticInit64e607af5155660f38e8d7f6ce585a59::$prefixDirsPsr4;
96
- $loader->classMap = ComposerStaticInit64e607af5155660f38e8d7f6ce585a59::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit5440b63ee38feddbf8421ffe28b00293
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
91
  public static function getInitializer(ClassLoader $loader)
92
  {
93
  return \Closure::bind(function () use ($loader) {
94
+ $loader->prefixLengthsPsr4 = ComposerStaticInit5440b63ee38feddbf8421ffe28b00293::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInit5440b63ee38feddbf8421ffe28b00293::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInit5440b63ee38feddbf8421ffe28b00293::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }