84% wp-db-backup

Code Review | Database Backup for WordPress

WordPress plugin Database Backup for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: wp-db-backup
  • Plugin version: 2.5.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 12, 2005
  • Latest release: May 26, 2022
  • Number of updates: 251
  • Update frequency: every 24.6 days
  • Top authors: filosofo (76.89%)skippy (18.33%)deliciousbrains (4.78%)ringmaster (1.2%)

Code review

54 tests

User reviews

66 reviews

Install metrics

100,000+ active /3,671,042 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.25MB] [CPU: ▼3.28ms] Passed 4 tests

A check of server-side resources used by Database Backup for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2541.09 ▲1.25
Dashboard /wp-admin3.55 ▲0.2550.09 ▼2.50
Posts /wp-admin/edit.php3.66 ▲0.3153.69 ▼2.13
Add New Post /wp-admin/post-new.php6.13 ▲0.2498.38 ▼8.15
Media Library /wp-admin/upload.php3.47 ▲0.2438.31 ▼0.32
Backup /wp-admin/tools.php?page=wp-db-backup3.4438.97

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Database Backup for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8313.26 ▼1.071.87 ▲0.1545.26 ▲1.67
Dashboard /wp-admin2,225 ▲194.83 ▼1.07109.67 ▲9.6146.43 ▲0.99
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0240.97 ▲1.4934.30 ▼7.11
Add New Post /wp-admin/post-new.php1,529 ▼217.75 ▼5.55669.44 ▲42.0662.43 ▲11.04
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.0098.16 ▼47.6242.82 ▼20.51
Backup /wp-admin/tools.php?page=wp-db-backup1,2051.7224.7445.25

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-db-backup/wp-db-backup.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

wp-db-backup/wp-db-backup.php Passed 13 tests

The main PHP file in "Database Backup for WordPress" ver. 2.5.2 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
On-demand backup of your WordPress database. Navigate to Tools → Backup to get started.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin5,582 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PO File161,3541,6113,461

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity223.00
▷ Minimum class complexity223.00
▷ Maximum class complexity223.00
Average method complexity6.29
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin