78% db-backup

Code Review | DB Backup

WordPress plugin DB Backup scored78%from 54 tests.

About plugin

  • Plugin page: db-backup
  • Plugin version: 6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Nov 14, 2013
  • Latest release: Mar 10, 2018
  • Number of updates: 182
  • Update frequency: every 8.7 days
  • Top authors: syedamirhussain91 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /19,142 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.66ms] Passed 4 tests

Analyzing server-side resources used by DB Backup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.45 ▼9.58
Dashboard /wp-admin3.35 ▲0.0454.04 ▼1.53
Posts /wp-admin/edit.php3.40 ▲0.0452.55 ▼3.88
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.90 ▼23.65
Media Library /wp-admin/upload.php3.28 ▲0.0443.48 ▲4.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
dbbkp_upload_path
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

DB Backup: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.38 ▼0.241.75 ▼0.0641.48 ▼3.80
Dashboard /wp-admin2,215 ▲355.64 ▼0.0396.27 ▲2.9943.54 ▼0.02
Posts /wp-admin/edit.php2,123 ▲262.01 ▲0.0435.85 ▼3.2236.50 ▲2.14
Add New Post /wp-admin/post-new.php1,545 ▲1923.06 ▼0.01686.74 ▼11.9955.58 ▲0.51
Media Library /wp-admin/upload.php1,423 ▲234.20 ▼0.0099.08 ▼12.3639.50 ▼9.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • dbbkp_upload_path
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/db-backup/db-backup.php
    • > /wp-content/plugins/db-backup/templates/donate.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/db-backup/templates/index.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === db-backup === )
You can take inspiration from this readme.txt

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

"DB Backup" version 6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
27 characters long description:
Plugin for Database Backup.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected236 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3123234
CSS1041
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods640.00%
▷ Protected methods00.00%
▷ Private methods960.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin