66% boldgrid-backup

Code Review | Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid

WordPress plugin Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid scored66%from 54 tests.

About plugin

  • Plugin page: boldgrid-backup
  • Plugin version: 1.15.7
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: May 23, 2018
  • Latest release: Aug 8, 2023
  • Number of updates: 809
  • Update frequency: every 2.4 days
  • Top authors: boldgrid (99.01%)

Code review

54 tests

User reviews

349 reviews

Install metrics

80,000+ active /1,464,950 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲4.37MB] [CPU: ▲27.31ms] 75% from 4 tests

Server-side resources used by Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid
Please fix the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,071.27ms on /wp-admin/admin.php?page=boldgrid-backup-test)
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.41 ▼7.02
Dashboard /wp-admin9.51 ▲6.173,145.89 ▲3,083.98
Posts /wp-admin/edit.php9.20 ▲5.8499.70 ▲52.32
Add New Post /wp-admin/post-new.php11.70 ▲5.82122.80 ▲10.07
Media Library /wp-admin/upload.php9.02 ▲5.8086.52 ▲53.86
Web Server /wp-admin/admin.php?page=boldgrid-backup-web-server9.0074.32
Premium Features /wp-admin/admin.php?page=boldgrid-backup-premium-features9.0782.32
Dashboard /wp-admin/admin.php?page=boldgrid-backup-dashboard9.07127.49
Preflight Check /wp-admin/admin.php?page=boldgrid-backup-test9.701,071.27
FTP Settings /wp-admin/admin.php?page=boldgrid-backup-ftp9.0574.82
Tools /wp-admin/admin.php?page=boldgrid-backup-tools9.1479.68
Backup Archives /wp-admin/admin.php?page=boldgrid-backup9.1177.89
Transfers /wp-admin/admin.php?page=boldgrid-backup-transfers9.1276.43
Support /wp-admin/admin.php?page=boldgrid-backup-support9.1178.12

Server storage [IO: ▲3.51MB] [DB: ▲0.04MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 430 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
boldgrid_backup_environment
can_compress_scripts
boldgrid_settings
db_upgraded
boldgrid_plugin_page_notices
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,217 ▲47113.50 ▼0.871.56 ▼0.1939.68 ▼5.47
Dashboard /wp-admin2,605 ▲4145.42 ▲0.50113.88 ▲13.0290.18 ▲48.66
Posts /wp-admin/edit.php2,386 ▲2942.44 ▲0.4243.47 ▲7.1835.25 ▲2.00
Add New Post /wp-admin/post-new.php1,634 ▲10121.95 ▼1.03675.03 ▲1.2538.47 ▼11.46
Media Library /wp-admin/upload.php1,703 ▲3154.49 ▲0.2898.25 ▼2.3149.00 ▲5.54
Web Server /wp-admin/admin.php?page=boldgrid-backup-web-server1,0762.1839.7721.03
Premium Features /wp-admin/admin.php?page=boldgrid-backup-premium-features1,8952.4639.2868.95
Dashboard /wp-admin/admin.php?page=boldgrid-backup-dashboard1,9102.4942.5361.57
BoldGrid Connect /wp-admin/boldgrid-connect.php260.440.0813.63
Preflight Check /wp-admin/admin.php?page=boldgrid-backup-test2,0352.4836.9434.18
FTP Settings /wp-admin/admin.php?page=boldgrid-backup-ftp1,1762.1432.9419.92
Tools /wp-admin/admin.php?page=boldgrid-backup-tools1,8782.3140.5235.72
Backup Archives /wp-admin/admin.php?page=boldgrid-backup1,7212.4936.4631.23
Transfers /wp-admin/admin.php?page=boldgrid-backup-transfers1,8402.6039.9731.93
Support /wp-admin/admin.php?page=boldgrid-backup-support1,7442.4836.3233.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • can_compress_scripts
    • boldgrid_backup_environment
    • boldgrid_plugin_page_notices
    • widget_theysaidso_widget
    • boldgrid_settings
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=boldgrid-backup-test
    • > Warning in wp-admin/includes/class-wp-filesystem-direct.php+503
    filesize(): stat failed for .htaccess.bgb
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=boldgrid-backup-test
    • > Warning in wp-admin/includes/class-wp-filesystem-direct.php+39
    file_get_contents(wp-content/plugins/boldgrid-backup/cron/cron-test.result): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=boldgrid-backup-test
    • > Warning in wp-includes/functions.php+7434
    unlink(wp-content/plugins/boldgrid-backup/cron/cron-test.config): No such file or directory

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
Please fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/boldgrid-backup/cron/cli-support.php
    • > /wp-content/plugins/boldgrid-backup/vendor/boldgrid/tdcron/test.php
    • > /wp-content/plugins/boldgrid-backup/cron/run-jobs.php
    • > /wp-content/plugins/boldgrid-backup/boldgrid-backup-cron.php
    • > /wp-content/plugins/boldgrid-backup/cli/wp-test.php
  • 91× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Boldgrid\\Library\\Library\\Ui\\Card' not found in wp-content/plugins/boldgrid-backup/admin/card/class-plugin-editor-tools.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Boldgrid\\Library\\Library\\Ui\\Feature' not found in wp-content/plugins/boldgrid-backup/admin/card/feature/class-speed-coach.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Boldgrid\\Backup\\Admin\\Cron\\Entry\\Entry' not found in wp-content/plugins/boldgrid-backup/admin/cron/entry/class-base.php:25
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/boldgrid-backup/admin/partials/remote/ftp.php on line 21
    • > PHP Fatal error
      Uncaught Error: Class 'Boldgrid\\Library\\Library\\Ui\\Feature' not found in wp-content/plugins/boldgrid-backup/admin/card/feature/class-versions.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Boldgrid\\Library\\Library\\Ui\\Feature' not found in wp-content/plugins/boldgrid-backup/admin/card/feature/class-more-central.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/boldgrid-backup/vendor/boldgrid/library/src/Library/Views/InvalidLicense.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/boldgrid-backup/admin/partials/remote/ftp.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/boldgrid-backup/vendor/boldgrid/library/tests/Library/Library/test-activity.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/boldgrid-backup/vendor/boldgrid/library/tests/Util/test-option.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/boldgrid-connect.php
    • > Network (severe)
    wp-admin/boldgrid-connect.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=boldgrid-backup-ftp
    • > Rendering (severe) in unknown
    /wp-admin/admin.php?page=boldgrid-backup-ftp 383 Pattern attribute value [A-Za-z0-9-_]+ is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /[A-Za-z0-9-_]+/v: Invalid character class

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: cloud backup, database backup, restore, backup, wordpress backup

boldgrid-backup/boldgrid-backup.php 92% from 13 tests

The principal PHP file in "Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid" v. 1.15.7 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected55,135 lines of code in 395 files:
LanguageFilesBlank linesComment linesLines of code
PHP32310,76135,67148,734
JavaScript299161,8183,148
CSS223121981,657
Markdown83270777
JSON600413
PO File180105247
Bourne Shell115759
YAML2101154
SVG20027
XML10019

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 109)
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity27.70
▷ Minimum class complexity1.00
▷ Maximum class complexity634.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity109.00
Code structure
Namespaces35
Interfaces2
Traits0
Classes249
▷ Abstract classes52.01%
▷ Concrete classes24497.99%
▷ Final classes00.00%
Methods2,077
▷ Static methods1838.81%
▷ Public methods1,94293.50%
▷ Protected methods221.06%
▷ Private methods1135.44%
Functions40
▷ Named functions1742.50%
▷ Anonymous functions2357.50%
Constants214
▷ Global constants3918.22%
▷ Class constants17581.78%
▷ Public constants175100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/image/remote/google-drive-logo.png2.06KB2.06KB0.00%
admin/image/remote/dreamhost-logo.png3.03KB3.03KB0.00%
admin/image/icon-128x128.png1.50KB1.29KB▼ 14.05%
admin/image/remote/google-drive.png5.13KB5.13KB0.00%
admin/image/remote/amazon-s3-logo.png4.87KB4.96KB0.00%