83% blogvault-real-time-backup

Code Review | BlogVault WordPress Backup Plugin - Migration, Staging, and Backups

WordPress plugin BlogVault WordPress Backup Plugin - Migration, Staging, and Backups scored83%from 54 tests.

About plugin

  • Plugin page: blogvault-real-ti...
  • Plugin version: 5.42
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 4, 2014
  • Latest release: Dec 1, 2023
  • Number of updates: 183
  • Update frequency: every 19.8 days
  • Top authors: akshatc (44.81%)ritesh.soni36 (36.61%)rrv4813 (19.13%)nimish0808 (1.09%)

Code review

54 tests

User reviews

191 reviews

Install metrics

90,000+ active /3,366,418 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.21MB] [CPU: ▼1.32ms] Passed 4 tests

Server-side resources used by BlogVault WordPress Backup Plugin - Migration, Staging, and Backups
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2238.21 ▼2.91
Dashboard /wp-admin3.57 ▲0.2251.37 ▼14.40
Posts /wp-admin/edit.php3.62 ▲0.2652.08 ▲6.93
Add New Post /wp-admin/post-new.php6.09 ▲0.2096.04 ▲6.41
Media Library /wp-admin/upload.php3.43 ▲0.2038.18 ▲5.64

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for BlogVault WordPress Backup Plugin - Migration, Staging, and Backups
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11614.54 ▲0.261.99 ▲0.2941.58 ▼2.74
Dashboard /wp-admin2,228 ▲485.62 ▼0.0692.79 ▼4.7586.52 ▲40.95
Posts /wp-admin/edit.php2,145 ▲451.96 ▲0.0137.29 ▼3.1830.94 ▼7.09
Add New Post /wp-admin/post-new.php1,568 ▲3323.45 ▲5.02655.78 ▲7.6347.74 ▼39.77
Media Library /wp-admin/upload.php1,439 ▲364.07 ▼0.1997.07 ▼4.4466.99 ▲25.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blogvault-real-time-backup/admin/account_details.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blogvault-real-time-backup/admin/add_new_account.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/blogvault-real-time-backup/maintenance/template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/blogvault-real-time-backup/admin/components/mc_testimony.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blogvault-real-time-backup/admin/components/form.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blogvault-real-time-backup/admin/components/testimony.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/blogvault-real-time-backup/admin/components/bv_testimony.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BVAccount' not found in wp-content/plugins/blogvault-real-time-backup/admin/components/list_accounts.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blogvault-real-time-backup/admin/components/features_list.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blogvault-real-time-backup/admin/components/footer.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • License uri: Please fix this invalid url: "[http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)"
The official readme.txt is a good inspiration

blogvault-real-time-backup/blogvault.php 92% from 13 tests

This is the main PHP file of "BlogVault WordPress Backup Plugin - Migration, Staging, and Backups" version 5.42, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blogvault-real-time-backup.php" instead of "blogvault.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected11,034 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PHP681,79511910,886
SVG302146
CSS2062

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity32.18
▷ Minimum class complexity1.00
▷ Maximum class complexity248.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits5
Classes50
▷ Abstract classes00.00%
▷ Concrete classes50100.00%
▷ Final classes00.00%
Methods804
▷ Static methods769.45%
▷ Public methods60074.63%
▷ Protected methods00.00%
▷ Private methods20425.37%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants123
▷ Global constants32.44%
▷ Class constants12097.56%
▷ Public constants120100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/gowp_new.png4.65KB2.58KB▼ 44.61%
img/wpbuffs.png3.93KB2.12KB▼ 45.99%
img/bv-features-list.png11.48KB11.13KB▼ 3.07%
img/astra.png4.31KB2.53KB▼ 41.33%
img/mc-features-list.png29.50KB11.51KB▼ 61.00%