Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.55MB] [CPU: ▼48.65ms] Passed 4 tests
This is a short check of server-side resources used by Backup Database
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.44 ▼1.02 | 8.72 ▼31.66 |
Dashboard /wp-admin | 2.46 ▼0.84 | 7.73 ▼38.78 |
Posts /wp-admin/edit.php | 2.46 ▼0.89 | 7.30 ▼38.61 |
Add New Post /wp-admin/post-new.php | 2.46 ▼3.43 | 8.73 ▼85.54 |
Media Library /wp-admin/upload.php | 2.46 ▼0.77 | 8.97 ▼23.71 |
Email Notification /wp-admin/admin.php?page=backup_database_general | 2.46 | 9.47 |
Create Backup /wp-admin/admin.php?page=backup_database_overview | 2.46 | 9.59 |
Pro Features /wp-admin/admin.php?page=backup_database_pro | 2.46 | 7.83 |
Schedule Options /wp-admin/admin.php?page=backup_database_scheduler | 2.46 | 10.88 |
Store Backup /wp-admin/admin.php?page=backup_database_addons | 2.46 | 8.85 |
Settings /wp-admin/admin.php?page=backup_database_settings | 2.46 | 9.45 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
hmbkp_dropbox_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Backup Database: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 13.30 ▼1.27 | 1.73 ▲0.07 | 44.82 ▲3.97 |
Dashboard /wp-admin | 2,245 ▲54 | 5.80 ▲0.94 | 94.99 ▼6.48 | 64.11 ▲21.48 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 1.98 ▼0.05 | 38.56 ▲1.77 | 38.93 ▲7.21 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 18.27 ▼4.75 | 708.41 ▼66.64 | 62.07 ▼4.47 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.20 ▲0.02 | 98.39 ▲1.70 | 66.33 ▲20.17 |
Email Notification /wp-admin/admin.php?page=backup_database_general | 982 | 1.89 | 26.20 | 36.42 |
Create Backup /wp-admin/admin.php?page=backup_database_overview | 993 | 1.80 | 25.98 | 38.70 |
Pro Features /wp-admin/admin.php?page=backup_database_pro | 1,039 | 1.76 | 23.91 | 36.09 |
Schedule Options /wp-admin/admin.php?page=backup_database_scheduler | 980 | 1.73 | 26.04 | 33.38 |
Store Backup /wp-admin/admin.php?page=backup_database_addons | 1,060 | 1.90 | 26.87 | 39.73 |
Settings /wp-admin/admin.php?page=backup_database_settings | 951 | 1.81 | 27.08 | 36.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/backup-database/components/error_handler.php+31
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 7 options in the database
- hmbkp_dropbox_settings
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 29 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=backup_database_settings
- > Notice in wp-content/plugins/backup-database/pages/settings.php+65
Trying to access array offset on value of type bool
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/backup-database/lib/Dropbox/tokens/index.php
- > /wp-content/plugins/backup-database/lib/FTP/index.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/backup-database/components/backup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/backup-database/backup-database.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/backup-database/components/cron.php:3
- > <h2>Send package to FTP site</h2>.
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/backup-database/lib/Dropbox/dropboxform.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/backup-database/lib/backup_database-functions.php:54
- > PHP Notice
Undefined variable: pageid in wp-content/plugins/backup-database/lib/FTP/preflight.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/backup-database/components/error_handler.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/backup-database/lib/FTP/preflight.php:16
- > All good - let's Backup!<br />.
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% 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: Please reduce the number of tags, currently 17 tag instead of maximum 10
- Screenshots: Please add an image for screenshot #5 (screenshot-5.png)
backup-database/backup-database.php 85% from 13 tests
"Backup Database" version 4.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin6,393 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 1,679 | 2,772 | 5,349 |
SVG | 1 | 0 | 0 | 685 |
CSS | 2 | 49 | 13 | 245 |
JavaScript | 2 | 31 | 73 | 114 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 118.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 556.00 |
Average method complexity | 6.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 1 | 0.80% |
▷ Public methods | 108 | 86.40% |
▷ Protected methods | 4 | 3.20% |
▷ Private methods | 13 | 10.40% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 75 | |
▷ Global constants | 69 | 92.00% |
▷ Class constants | 6 | 8.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot_4.png | 19.74KB | 8.13KB | ▼ 58.79% |
assets/screenshot_1.png | 15.44KB | 5.85KB | ▼ 62.13% |
img/30.png | 137.44KB | 78.16KB | ▼ 43.13% |
assets/img/backup.png | 0.50KB | 0.62KB | 0.00% |
assets/screenshot_2.png | 31.68KB | 12.53KB | ▼ 60.45% |