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

Version Description

Release date: September 22nd, 2020

  • Update: Optimized functionality tests.
  • Update: Optimized plugins and themes init in auto updates.
Download this release

Release Info

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

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

admin/class-boldgrid-backup-admin-auto-updates.php CHANGED
@@ -306,7 +306,7 @@ class Boldgrid_Backup_Admin_Auto_Updates {
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 ) ) {
@@ -320,7 +320,7 @@ class Boldgrid_Backup_Admin_Auto_Updates {
320
  /**
321
  * Initialize our themes.
322
  *
323
- * @since SINCEVERSION
324
  *
325
  * @see self::init_plugins() for additional info on this method.
326
  */
306
  * resources, self::plugins is now initialized within this method, which much be called prior to
307
  * using self::plugins.
308
  *
309
+ * @since 1.14.5
310
  */
311
  private function init_plugins() {
312
  if ( ! empty( $this->plugins ) ) {
320
  /**
321
  * Initialize our themes.
322
  *
323
+ * @since 1.14.5
324
  *
325
  * @see self::init_plugins() for additional info on this method.
326
  */
admin/class-boldgrid-backup-admin-environment.php CHANGED
@@ -3,7 +3,7 @@
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
@@ -18,7 +18,7 @@
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
  /**
@@ -27,7 +27,7 @@ class Boldgrid_Backup_Admin_Environment {
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';
@@ -35,7 +35,7 @@ class Boldgrid_Backup_Admin_Environment {
35
  /**
36
  * Determine whether or not our environment has changed.
37
  *
38
- * @since SINCEVERSION
39
  *
40
  * @return bool
41
  */
@@ -62,7 +62,7 @@ class Boldgrid_Backup_Admin_Environment {
62
  /**
63
  * Determine whether or not our hostname has changed.
64
  *
65
- * @since SINCEVERSION
66
  *
67
  * @return bool
68
  */
@@ -84,7 +84,7 @@ class Boldgrid_Backup_Admin_Environment {
84
  /**
85
  * Determine whether or not our php version has changed.
86
  *
87
- * @since SINCEVERSION
88
  *
89
  * @return bool
90
  */
@@ -106,7 +106,7 @@ class Boldgrid_Backup_Admin_Environment {
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
  *
@@ -131,7 +131,7 @@ class Boldgrid_Backup_Admin_Environment {
131
  /**
132
  * Get a saved environment value.
133
  *
134
- * @since SINCEVERSION
135
  *
136
  * @access private
137
  * @see self::OPTION_NAME
@@ -149,7 +149,7 @@ class Boldgrid_Backup_Admin_Environment {
149
  /**
150
  * Get all of our saved values.
151
  *
152
- * @since SINCEVERSION
153
  *
154
  * @access private
155
  * @see self::OPTION_NAME
@@ -163,7 +163,7 @@ class Boldgrid_Backup_Admin_Environment {
163
  /**
164
  * Save a specific environment value.
165
  *
166
- * @since SINCEVERSION
167
  *
168
  * @access private
169
  * @see self::OPTION_NAME
@@ -182,7 +182,7 @@ class Boldgrid_Backup_Admin_Environment {
182
  /**
183
  * Save all of our environment values.
184
  *
185
- * @since SINCEVERSION
186
  *
187
  * @access private
188
  * @see self::OPTION_NAME
3
  * File: class-boldgrid-backup-admin-environment.php
4
  *
5
  * @link https://www.boldgrid.com
6
+ * @since 1.14.5
7
  *
8
  * @package Boldgrid_Backup
9
  * @subpackage Boldgrid_Backup/admin
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 1.14.5
22
  */
23
  class Boldgrid_Backup_Admin_Environment {
24
  /**
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 1.14.5
31
  * @var string
32
  */
33
  const OPTION_NAME = 'boldgrid_backup_environment';
35
  /**
36
  * Determine whether or not our environment has changed.
37
  *
38
+ * @since 1.14.5
39
  *
40
  * @return bool
41
  */
62
  /**
63
  * Determine whether or not our hostname has changed.
64
  *
65
+ * @since 1.14.5
66
  *
67
  * @return bool
68
  */
84
  /**
85
  * Determine whether or not our php version has changed.
86
  *
87
+ * @since 1.14.5
88
  *
89
  * @return bool
90
  */
106
  /**
107
  * Determine whether or not our WordPress version has changed.
108
  *
109
+ * @since 1.14.5
110
  *
111
  * @global string $wp_version The current WordPress version.
112
  *
131
  /**
132
  * Get a saved environment value.
133
  *
134
+ * @since 1.14.5
135
  *
136
  * @access private
137
  * @see self::OPTION_NAME
149
  /**
150
  * Get all of our saved values.
151
  *
152
+ * @since 1.14.5
153
  *
154
  * @access private
155
  * @see self::OPTION_NAME
163
  /**
164
  * Save a specific environment value.
165
  *
166
+ * @since 1.14.5
167
  *
168
  * @access private
169
  * @see self::OPTION_NAME
182
  /**
183
  * Save all of our environment values.
184
  *
185
+ * @since 1.14.5
186
  *
187
  * @access private
188
  * @see self::OPTION_NAME
admin/class-boldgrid-backup-admin-upload.php CHANGED
@@ -401,11 +401,6 @@ class Boldgrid_Backup_Admin_Upload {
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,11 +461,8 @@ class Boldgrid_Backup_Admin_Upload {
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,8 +478,7 @@ class Boldgrid_Backup_Admin_Upload {
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,41 +498,15 @@ class Boldgrid_Backup_Admin_Upload {
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
  }
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
 
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
  $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
  ]
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
  }
boldgrid-backup.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: Total Upkeep
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19
- * Version: 1.14.4
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
16
  * Plugin Name: Total Upkeep
17
  * Plugin URI: https://www.boldgrid.com/boldgrid-backup/
18
  * Description: Automated backups, remote backup to Amazon S3 and Google Drive, stop website crashes before they happen and more. Total Upkeep is the backup solution you need.
19
+ * Version: 1.14.5
20
  * Author: BoldGrid
21
  * Author URI: https://www.boldgrid.com/
22
  * License: GPL-2.0+
coverage.xml CHANGED
@@ -1,6 +1,6 @@
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">
@@ -7538,7 +7538,7 @@
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,45 +7681,44 @@
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,61 +7726,38 @@
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">
@@ -76868,7 +76844,7 @@
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,7 +76936,7 @@
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,6 +96156,6 @@
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>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1600796583">
3
+ <project timestamp="1600796583">
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">
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="40" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="208" coveredstatements="2" elements="217" 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="11" crap="132" count="0"/>
 
7685
  <line num="405" type="stmt" count="0"/>
7686
  <line num="406" type="stmt" count="0"/>
7687
+ <line num="408" type="stmt" count="0"/>
7688
  <line num="410" type="stmt" count="0"/>
7689
  <line num="411" type="stmt" count="0"/>
7690
+ <line num="414" type="stmt" count="0"/>
7691
  <line num="415" type="stmt" count="0"/>
7692
+ <line num="417" type="stmt" count="0"/>
7693
  <line num="419" type="stmt" count="0"/>
7694
  <line num="420" type="stmt" count="0"/>
7695
  <line num="422" type="stmt" count="0"/>
7696
+ <line num="423" type="stmt" count="0"/>
7697
  <line num="425" type="stmt" count="0"/>
7698
+ <line num="426" type="stmt" count="0"/>
7699
  <line num="428" type="stmt" count="0"/>
7700
  <line num="430" type="stmt" count="0"/>
7701
  <line num="431" type="stmt" count="0"/>
7702
  <line num="433" type="stmt" count="0"/>
7703
  <line num="435" type="stmt" count="0"/>
7704
  <line num="436" type="stmt" count="0"/>
7705
+ <line num="437" type="stmt" count="0"/>
7706
+ <line num="439" type="stmt" count="0"/>
7707
  <line num="441" type="stmt" count="0"/>
7708
  <line num="442" type="stmt" count="0"/>
7709
  <line num="444" type="stmt" count="0"/>
 
7710
  <line num="447" type="stmt" count="0"/>
7711
+ <line num="448" type="stmt" count="0"/>
7712
  <line num="449" type="stmt" count="0"/>
7713
+ <line num="450" 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="456" type="stmt" count="0"/>
7719
  <line num="457" type="stmt" count="0"/>
7720
  <line num="458" type="stmt" count="0"/>
 
7721
  <line num="460" type="stmt" count="0"/>
 
7722
  <line num="462" type="stmt" count="0"/>
7723
  <line num="463" type="stmt" count="0"/>
7724
  <line num="465" type="stmt" count="0"/>
7726
  <line num="468" type="stmt" count="0"/>
7727
  <line num="469" type="stmt" count="0"/>
7728
  <line num="470" type="stmt" count="0"/>
7729
+ <line num="471" type="stmt" count="0"/>
7730
+ <line num="472" type="stmt" count="0"/>
7731
+ <line num="474" type="stmt" count="0"/>
7732
  <line num="475" type="stmt" count="0"/>
 
7733
  <line num="477" type="stmt" count="0"/>
7734
  <line num="478" type="stmt" count="0"/>
7735
+ <line num="481" type="stmt" count="0"/>
7736
+ <line num="484" type="stmt" count="0"/>
7737
+ <line num="487" type="stmt" count="0"/>
 
 
 
7738
  <line num="489" type="stmt" count="0"/>
7739
+ <line num="491" type="stmt" count="0"/>
7740
+ <line num="492" type="stmt" count="0"/>
7741
+ <line num="494" type="stmt" count="0"/>
7742
+ <line num="495" type="stmt" count="0"/>
7743
  <line num="496" type="stmt" count="0"/>
7744
+ <line num="497" type="stmt" count="0"/>
7745
+ <line num="499" type="stmt" count="0"/>
7746
  <line num="500" type="stmt" count="0"/>
7747
  <line num="501" type="stmt" count="0"/>
 
7748
  <line num="504" type="stmt" count="0"/>
 
7749
  <line num="506" type="stmt" count="0"/>
7750
+ <line num="507" type="stmt" count="0"/>
7751
  <line num="509" type="stmt" count="0"/>
7752
+ <line num="511" type="stmt" count="0"/>
7753
  <line num="512" type="stmt" count="0"/>
7754
+ <line num="519" type="method" name="archive_upload_action" visibility="public" complexity="3" crap="12" count="0"/>
 
 
 
 
 
7755
  <line num="520" type="stmt" count="0"/>
7756
  <line num="521" type="stmt" count="0"/>
7757
  <line num="522" type="stmt" count="0"/>
7758
  <line num="523" type="stmt" count="0"/>
7759
+ <line num="524" type="stmt" count="0"/>
7760
+ <metrics loc="525" ncloc="295" classes="1" methods="9" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="208" coveredstatements="2" elements="217" coveredelements="3"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7761
  </file>
7762
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/admin/class-boldgrid-backup-admin-usage.php">
7763
  <class name="Boldgrid_Backup_Admin_Usage" namespace="global" fullPackage="Boldgrid.Backup.Admin">
76844
  <metrics loc="445" ncloc="281" classes="1" methods="21" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="216" coveredstatements="0" elements="237" coveredelements="0"/>
76845
  </file>
76846
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_static.php">
76847
+ <class name="ComposerStaticInit7851a411df147a8ff57cab3a44644494" namespace="Composer\Autoload">
76848
  <metrics complexity="2" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="5" coveredstatements="0" elements="7" coveredelements="0"/>
76849
  </class>
76850
  <line num="91" type="method" name="getInitializer" visibility="public" complexity="1" crap="2" count="0"/>
76936
  <metrics loc="12" ncloc="10" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="7" coveredstatements="0" elements="7" coveredelements="0"/>
76937
  </file>
76938
  <file name="/home/travis/build/BoldGrid/boldgrid-backup/vendor/composer/autoload_real.php">
76939
+ <class name="ComposerAutoloaderInit7851a411df147a8ff57cab3a44644494" namespace="global">
76940
  <metrics complexity="13" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="41" coveredstatements="0" elements="43" coveredelements="0"/>
76941
  </class>
76942
  <line num="9" type="method" name="loadClassLoader" visibility="public" complexity="2" crap="6" count="0"/>
96156
  <line num="16" type="stmt" count="0"/>
96157
  <metrics loc="16" ncloc="9" classes="0" methods="0" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="8" coveredstatements="0" elements="8" coveredelements="0"/>
96158
  </file>
96159
+ <metrics files="962" loc="193226" ncloc="117757" classes="871" methods="3597" coveredmethods="308" conditionals="0" coveredconditionals="0" statements="86645" coveredstatements="4575" elements="90242" coveredelements="4883"/>
96160
  </project>
96161
  </coverage>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: backup, cloud backup, database backup, restore, wordpress backup
4
  Requires at least: 4.4
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
- Stable tag: 1.14.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -132,6 +132,13 @@ Have a problem? First, take a look at our [Getting Started](https://www.boldgrid
132
 
133
  == Changelog ==
134
 
 
 
 
 
 
 
 
135
  = 1.14.4 =
136
 
137
  Release date: August 26th, 2020
4
  Requires at least: 4.4
5
  Tested up to: 5.5
6
  Requires PHP: 5.4
7
+ Stable tag: 1.14.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
132
 
133
  == Changelog ==
134
 
135
+ = 1.14.5 =
136
+
137
+ Release date: September 22nd, 2020
138
+
139
+ * Update: Optimized functionality tests.
140
+ * Update: Optimized plugins and themes init in auto updates.
141
+
142
  = 1.14.4 =
143
 
144
  Release date: August 26th, 2020
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit5440b63ee38feddbf8421ffe28b00293::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit7851a411df147a8ff57cab3a44644494::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit5440b63ee38feddbf8421ffe28b00293
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit5440b63ee38feddbf8421ffe28b00293
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,19 +51,19 @@ class ComposerAutoloaderInit5440b63ee38feddbf8421ffe28b00293
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;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit7851a411df147a8ff57cab3a44644494
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit7851a411df147a8ff57cab3a44644494', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit7851a411df147a8ff57cab3a44644494', '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\ComposerStaticInit7851a411df147a8ff57cab3a44644494::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\ComposerStaticInit7851a411df147a8ff57cab3a44644494::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire7851a411df147a8ff57cab3a44644494($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequire7851a411df147a8ff57cab3a44644494($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 ComposerStaticInit5440b63ee38feddbf8421ffe28b00293
8
  {
9
  public static $files = array (
10
  'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
@@ -91,9 +91,9 @@ class ComposerStaticInit5440b63ee38feddbf8421ffe28b00293
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
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit7851a411df147a8ff57cab3a44644494
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 = ComposerStaticInit7851a411df147a8ff57cab3a44644494::$prefixLengthsPsr4;
95
+ $loader->prefixDirsPsr4 = ComposerStaticInit7851a411df147a8ff57cab3a44644494::$prefixDirsPsr4;
96
+ $loader->classMap = ComposerStaticInit7851a411df147a8ff57cab3a44644494::$classMap;
97
 
98
  }, null, ClassLoader::class);
99
  }