90% gam-db-backup

Code Review | WP DB Backup

WordPress plugin WP DB Backup scored90%from 54 tests.

About plugin

  • Plugin page: gam-db-backup
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Oct 14, 2015
  • Latest release: Apr 5, 2017
  • Number of updates: 27
  • Update frequency: every 20.0 days
  • Top authors: gamthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,151 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.45ms] Passed 4 tests

A check of server-side resources used by WP DB Backup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.82 ▼5.41
Dashboard /wp-admin3.34 ▲0.0443.10 ▼8.46
Posts /wp-admin/edit.php3.39 ▲0.0347.89 ▲0.05
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.11 ▲0.02
Media Library /wp-admin/upload.php3.26 ▲0.0336.59 ▲4.86

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 14 new options
New WordPress options
gam_db_backup_schedules_options_save
gam_db_backup_user_name
widget_theysaidso_widget
gam_db_backup_db_name
widget_recent-posts
widget_recent-comments
gam_db_backup_start_backup
can_compress_scripts
theysaidso_admin_options
gam_db_backup_host_name
...

Browser metrics Passed 4 tests

WP DB Backup: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.20 ▼1.181.59 ▼0.6343.78 ▼1.20
Dashboard /wp-admin2,227 ▲505.85 ▲0.9298.35 ▼3.3639.20 ▼3.07
Posts /wp-admin/edit.php2,110 ▲182.04 ▲0.0239.78 ▲2.4535.14 ▼1.41
Add New Post /wp-admin/post-new.php1,552 ▲1818.45 ▼4.44601.17 ▼61.4058.21 ▲9.60
Media Library /wp-admin/upload.php1,403 ▲154.22 ▲0.0795.64 ▼9.0740.64 ▼2.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 13 options
    • gam_db_backup_schedules_options_save
    • widget_theysaidso_widget
    • gam_db_backup_db_name
    • widget_recent-comments
    • gam_db_backup_host_name
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • gam_db_backup_user_name
    • ...

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
The official readme.txt might help

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

This is the main PHP file of "WP DB Backup" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
87 characters long description:
Help you to take instant backup. Also you can schedule daily, weekly or monthly backup.

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
Good job! No executable or dangerous file extensions detected536 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4136102418
JavaScript20061
PO File1212356
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.00
▷ Minimum class complexity6.00
▷ Maximum class complexity24.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods110.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/bluebnt-bg.png0.96KB0.28KB▼ 71.09%