73% backup-bolt

Code Review | Backup Bolt

WordPress plugin Backup Bolt scored73%from 54 tests.

About plugin

  • Plugin page: backup-bolt
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2022
  • Latest release: Jul 31, 2023
  • Number of updates: 18
  • Update frequency: every 25.9 days
  • Top authors: backupbolt (61.11%)gwsharsha (44.44%)

Code review

54 tests

User reviews

5 reviews

Install metrics

900+ active /7,920 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲5.35MB] [CPU: ▲25.08ms] 75% from 4 tests

This is a short check of server-side resources used by Backup Bolt
It is recommended to improve the following
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.35MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.16 ▲5.7076.56 ▲26.40
Dashboard /wp-admin9.18 ▲5.8481.43 ▲12.18
Posts /wp-admin/edit.php9.18 ▲5.8381.38 ▲23.80
Add New Post /wp-admin/post-new.php9.92 ▲4.04135.45 ▲37.92
Media Library /wp-admin/upload.php9.18 ▲5.9584.00 ▲48.06
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.1865.32

Server storage [IO: ▲3.29MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • You have illegally modified 3 files (0.37KB) outside of "wp-content/plugins/backup-bolt/" and "wp-content/uploads/"
    • (new file) wp-content/backup-bolt-1ab620b7cc/.htaccess
    • (new file) wp-content/backup-bolt-1ab620b7cc/index.html
    • (new file) wp-content/backup-bolt-1ab620b7cc/index.php
Filesystem: 220 new files
Database: no new tables, 10 new options
New WordPress options
fs_accounts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
babo_backup_key
fs_debug_mode
widget_recent-posts
widget_recent-comments
fs_active_plugins

Browser metrics Passed 4 tests

Checking browser requirements for Backup Bolt
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲13214.35 ▼0.011.66 ▼0.1131.68 ▼9.58
Dashboard /wp-admin2,317 ▲1495.78 ▲0.1895.67 ▲7.7083.58 ▲40.71
Posts /wp-admin/edit.php2,217 ▲1172.41 ▲0.3939.74 ▲0.3840.08 ▲3.67
Add New Post /wp-admin/post-new.php1,716 ▲18222.26 ▲4.16716.63 ▲109.6734.79 ▼40.60
Media Library /wp-admin/upload.php1,513 ▲1164.33 ▲0.09102.78 ▼0.6481.87 ▲35.84
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1311.8629.2531.17

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
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/backup-bolt/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-posts
    • fs_debug_mode
    • fs_accounts
    • widget_theysaidso_widget
    • fs_active_plugins
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/backup-bolt/inc/main.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: download backup, wordpress backup, backups, backup, cloud backup...

backup-bolt/backup-bolt.php Passed 13 tests

"Backup Bolt" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Super simple WordPress backup plugin

Code Analysis 97% from 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 detected35,457 lines of code in 166 files:
LanguageFilesBlank linesComment linesLines of code
PHP1368,30317,49334,024
JavaScript782130445
CSS185620424
Sass2501282
Markdown1680214
PO File1212167
JSON1001

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity76.13
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes61
▷ Abstract classes23.28%
▷ Concrete classes5996.72%
▷ Final classes00.00%
Methods1,324
▷ Static methods20315.33%
▷ Public methods92669.94%
▷ Protected methods171.28%
▷ Private methods38128.78%
Functions104
▷ Named functions10298.08%
▷ Anonymous functions21.92%
Constants156
▷ Global constants10969.87%
▷ Class constants4730.13%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/backup-bolt.png7.45KB2.88KB▼ 61.32%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/icon.png3.18KB0.45KB▼ 85.92%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/symbol.png31.51KB5.08KB▼ 83.87%