10% backup

Code Review | JetBackup - WP Backup, Migrate & Restore

WordPress plugin JetBackup - WP Backup, Migrate & Restore scored10%from 54 tests.

About plugin

  • Plugin page: backup
  • Plugin version: 2.0.8.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: May 12, 2012
  • Latest release: Nov 6, 2023
  • Number of updates: 412
  • Update frequency: every 10.2 days
  • Top authors: BackupGuard (91.02%)hel.io (8.01%)Backup-Guard (1.21%)

Code review

54 tests

User reviews

1037 reviews

Install metrics

40,000+ active /3,282,094 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/backup/com/core/backup/SGBackup.php+7
    include_once(wp-content/plugins/backup/com/lib/SGMigrate.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.94MB] [CPU: ▼17.10ms] Passed 4 tests

A check of server-side resources used by JetBackup - WP Backup, Migrate & Restore
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.4144.69 ▲2.57
Dashboard /wp-admin2.07 ▼1.2739.75 ▼19.92
Posts /wp-admin/edit.php2.08 ▼1.2846.13 ▼0.19
Add New Post /wp-admin/post-new.php2.07 ▼3.8141.67 ▼50.85
Media Library /wp-admin/upload.php2.07 ▼1.1647.09 ▲13.82
System Info. /wp-admin/admin.php?page=backup_guard_system_info2.0743.89
Backups /wp-admin/admin.php?page=backup_guard_backups2.0743.51
Settings /wp-admin/admin.php?page=backup_guard_settings2.0742.21

Server storage [IO: ▲3.23MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 296 new files
Database: 3 new tables, 6 new options
New tables
wp_sg_action
wp_sg_config
wp_sg_schedule
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for JetBackup - WP Backup, Migrate & Restore
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲14214.02 ▼0.411.80 ▼0.3036.45 ▼7.90
Dashboard /wp-admin2,282 ▲1026.48 ▲0.87136.60 ▲33.4574.31 ▲26.54
Posts /wp-admin/edit.php2,162 ▲621.95 ▲0.0038.72 ▲1.8735.48 ▼0.83
Add New Post /wp-admin/post-new.php1,581 ▲5522.80 ▼0.51707.85 ▲5.2072.79 ▲20.91
Media Library /wp-admin/upload.php1,456 ▲564.10 ▼0.08121.03 ▲19.1445.25 ▲2.79
System Info. /wp-admin/admin.php?page=backup_guard_system_info4,4774.4589.92176.50
Backups /wp-admin/admin.php?page=backup_guard_backups4,4574.4890.14111.21
Settings /wp-admin/admin.php?page=backup_guard_settings4,4934.5272.15122.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/backup/com/core/backup/SGBackup.php+7
    include_once(wp-content/plugins/backup/com/lib/SGMigrate.php): failed to open stream: No such file or directory
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=backup_guard_settings
    • > Warning in wp-content/plugins/backup/com/core/backup/SGBackup.php+7
    include_once(wp-content/plugins/backup/com/lib/SGMigrate.php): failed to open stream: No such file or directory
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=backup_guard_settings
    • > Warning in wp-content/plugins/backup/com/core/backup/SGBackup.php+7
    include_once(): Failed opening 'wp-content/plugins/backup/com/lib/SGMigrate.php' for inclusion (include_path='.:/usr/share/php')
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=backup_guard_settings
    • > Warning in wp-content/plugins/backup/com/core/backup/SGBackup.php+9
    include_once(wp-content/plugins/backup/com/core/backup/SGBackupMailNotification.php): failed to open stream: No such file or directory
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=backup_guard_settings
    • > Warning in wp-content/plugins/backup/com/core/backup/SGBackup.php+9
    include_once(): Failed opening 'wp-content/plugins/backup/com/core/backup/SGBackupMailNotification.php' for inclusion (include_path='.:/usr/share/php')
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=backup_guard_settings
    • > Notice in wp-content/plugins/backup/public/backups.php+8
    date_default_timezone_set(): Timezone ID '+00:00' is invalid

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 130× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/backup/com/lib/BackupGuard/Core/ISGArchiveDelegate.php
    • > /wp-content/plugins/backup/public/ajax/settings.php
    • > /wp-content/plugins/backup/public/ajax/modalTerms.php
    • > /wp-content/plugins/backup/public/ajax/getRunningActions.php
    • > /wp-content/plugins/backup/com/lib/BackupGuard/Core/BGTask.php
    • > /wp-content/plugins/backup/com/lib/BackupGuard/Core/SGBGStateFile.php
    • > /wp-content/plugins/backup/com/core/restore/Restore.php
    • > /wp-content/plugins/backup/public/videoTutorials.php
    • > /wp-content/plugins/backup/com/core/backup/SGBackup.php
    • > /wp-content/plugins/backup/public/support.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      require_once(SG_REQUEST_PATHSGRequest.php): failed to open stream: No such file or directory in wp-content/plugins/backup/com/lib/BackupGuard/Helper.php on line 15
    • > PHP Warning
      Use of undefined constant SG_REQUEST_PATH - assumed 'SG_REQUEST_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/backup/com/lib/Request/SGRequestAdapterWordpress.php on line 3
    • > PHP Warning
      include_once(Crypt/Random.php): failed to open stream: No such file or directory in wp-content/plugins/backup/com/lib/SGEncrypt.php on line 8
    • > PHP Warning
      include_once(): Failed opening 'Crypt/AES.php' for inclusion (include_path='SG_LIB_PATHphpseclib') in wp-content/plugins/backup/com/lib/SGEncrypt.php on line 5
    • > PHP Warning
      Use of undefined constant SG_REQUEST_PATH - assumed 'SG_REQUEST_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/backup/com/lib/BackupGuard/Helper.php on line 15
    • > PHP Fatal error
      require_once(): Failed opening required 'SG_REQUEST_PATHSGRequest.php' (include_path='.:/usr/share/php') in wp-content/plugins/backup/com/lib/BackupGuard/Helper.php on line 15
    • > PHP Warning
      include_once(): Failed opening 'Crypt/Random.php' for inclusion (include_path='SG_LIB_PATHphpseclib') in wp-content/plugins/backup/com/lib/SGEncrypt.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required 'SG_REQUEST_PATHSGIRequestAdapter.php' (include_path='.:/usr/share/php') in wp-content/plugins/backup/com/lib/Request/SGRequestAdapterWordpress.php on line 3
    • > PHP Warning
      Use of undefined constant SG_LIB_PATH - assumed 'SG_LIB_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/backup/com/lib/SGEncrypt.php on line 3
    • > PHP Warning
      include_once(Crypt/AES.php): failed to open stream: No such file or directory in wp-content/plugins/backup/com/lib/SGEncrypt.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: database backup, wordpress backup plugin, backup, back up, backup plugin...

backup/backup.php 92% from 13 tests

The main file in "JetBackup - WP Backup, Migrate & Restore" v. 2.0.8.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected36,757 lines of code in 204 files:
LanguageFilesBlank linesComment linesLines of code
PHP1593,7201,44415,305
CSS112,14312313,568
JavaScript228689606,584
SVG1145671
PO File1249276629

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.49
▷ Minimum class complexity1.00
▷ Maximum class complexity282.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces2
Interfaces8
Traits1
Classes90
▷ Abstract classes77.78%
▷ Concrete classes8392.22%
▷ Final classes00.00%
Methods952
▷ Static methods11011.55%
▷ Public methods76280.04%
▷ Protected methods101.05%
▷ Private methods18018.91%
Functions150
▷ Named functions14596.67%
▷ Anonymous functions53.33%
Constants362
▷ Global constants33091.16%
▷ Class constants328.84%
▷ Public constants32100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
56 PNG files occupy 0.38MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/reviewBg.png6.34KB4.42KB▼ 30.25%
public/img/backup-icons-old.png9.95KB5.43KB▼ 45.42%
public/img/cloud-box.png1.34KB1.32KB▼ 1.17%
public/img/2.png3.18KB1.35KB▼ 57.52%
public/img/FAQ.png4.77KB1.03KB▼ 78.30%