Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.74MB] [CPU: ▼2.12ms] Passed 4 tests
An overview of server-side resources used by WP Database Backup - Unlimited Database & Files Backup by Backup for WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.74 | 41.32 ▲1.98 |
Dashboard /wp-admin | 4.08 ▲0.77 | 48.33 ▼3.57 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 52.90 ▲5.65 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.84 | 80.19 ▼9.89 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 38.78 ▲3.02 |
Backups /wp-admin/admin.php?page=wp-database-backup | 3.89 | 38.32 |
Server storage [IO: ▲3.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 144 new files
Database: no new tables, 13 new options
New WordPress options |
---|
wp_db_backup_destination_s3 |
wp_db_backup_destination_FTP |
wp_db_backup_exclude_dir |
widget_recent-posts |
wp_db_backup_destination_Email |
can_compress_scripts |
widget_recent-comments |
wp_db_backup_backup_type |
wp_db_backup_backups_dir |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Database Backup - Unlimited Database & Files Backup by Backup for WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲129 | 13.21 ▼1.20 | 1.66 ▼0.54 | 39.73 ▼4.04 |
Dashboard /wp-admin | 2,256 ▲68 | 5.80 ▲0.93 | 101.07 ▲1.48 | 40.39 ▼2.87 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.04 ▲0.04 | 37.08 ▲2.91 | 31.21 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 23.31 ▲5.78 | 670.96 ▲77.62 | 62.11 ▲8.17 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 4.22 ▲0.05 | 106.71 ▲10.26 | 46.25 ▲6.51 |
Backups /wp-admin/admin.php?page=wp-database-backup | 3,125 | 2.57 | 54.09 | 54.22 |
Save Backups to /wp-admin/admin.php?page=wp-database-backup#tab_db_destination | 3,131 | 2.27 | 51.12 | 42.25 |
Auto Scheduler /wp-admin/admin.php?page=wp-database-backup#tab_db_schedul | 3,131 | 2.34 | 48.76 | 35.40 |
Settings /wp-admin/admin.php?page=wp-database-backup#tab_db_setting | 3,133 | 2.35 | 48.23 | 38.27 |
Upgrade to Premium /wp-admin/admin.php?page=wp-database-backup#tab_db_upgrade | 3,133 | 2.40 | 49.74 | 68.36 |
Help & Support /wp-admin/admin.php?page=wp-database-backup#tab_db_help | 3,134 | 2.43 | 50.26 | 36.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 13 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- wp_db_backup_backup_type
- wp_db_remove_local_backup
- theysaidso_admin_options
- wp_db_backup_exclude_dir
- wp_db_backup_destination_s3
- widget_recent-posts
- wp_db_backup_destination_Email
- db_upgraded
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=wp-database-backup
- > Warning in wp-content/plugins/wp-database-backup/includes/admin/class-wpdb-admin.php+1161
fileperms(): stat failed for wp-content/uploads/db-backup
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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-database-backup/assets/index.php
- > /wp-content/plugins/wp-database-backup/assets/css/index.php
- > /wp-content/plugins/wp-database-backup/assets/js/index.php
- 73× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wp-database-backup/includes/admin/Destination/Google/google-api-php-client/src/contrib/Google_AuditService.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-database-backup/includes/admin/Destination/Email/email-form.php:8
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wp-database-backup/includes/admin/Destination/Google/google-api-php-client/src/contrib/Google_ReportsService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_Cache' not found in wp-content/plugins/wp-database-backup/includes/admin/Destination/Google/google-api-php-client/src/cache/Google_MemcacheCache.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wp-database-backup/includes/admin/Destination/Google/google-api-php-client/src/contrib/Google_BigqueryService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wp-database-backup/includes/admin/Destination/Google/google-api-php-client/src/contrib/Google_YouTubeAnalyticsService.php:25
- > PHP Fatal error
require_once(): Failed opening required 'service/Google_Utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-database-backup/includes/admin/Destination/Google/google-api-php-client/src/auth/Google_OAuth2.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wp-database-backup/includes/admin/Destination/Google/google-api-php-client/src/contrib/Google_GamesService.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-database-backup/includes/admin/Destination/Dropbox/dropbox-form.php:7
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wp-database-backup/includes/admin/Destination/Google/google-api-php-client/src/contrib/Google_PlusService.php:25
- > PHP Fatal error
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 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #0, #0, #0, #0 in wp-database-backup/assets to your readme.txt
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
- Requires at least: Version not formatted correctly
wp-database-backup/wp-database-backup.php 85% from 13 tests
The entry point to "WP Database Backup - Unlimited Database & Files Backup by Backup for WP" version 6.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin64,000 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 4,462 | 16,205 | 61,354 |
CSS | 4 | 28 | 15 | 1,882 |
JavaScript | 6 | 60 | 23 | 475 |
SVG | 1 | 0 | 0 | 288 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 558.00 |
Average method complexity | 1.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1,400 | |
▷ Abstract classes | 5 | 0.36% |
▷ Concrete classes | 1,395 | 99.64% |
▷ Final classes | 3 | 0.22% |
Methods | 11,564 | |
▷ Static methods | 82 | 0.71% |
▷ Public methods | 11,500 | 99.45% |
▷ Protected methods | 9 | 0.08% |
▷ Private methods | 55 | 0.48% |
Functions | 43 | |
▷ Named functions | 42 | 97.67% |
▷ Anonymous functions | 1 | 2.33% |
Constants | 103 | |
▷ Global constants | 75 | 72.82% |
▷ Class constants | 28 | 27.18% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/images/wp-database-backup.png | 35.99KB | 10.86KB | ▼ 69.81% |
assets/images/right-tick.png | 1.88KB | 0.71KB | ▼ 62.23% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |