Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼290.08ms] Passed 4 tests
Analyzing server-side resources used by 1-Click Backup & Restore Database
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.42 | 94.48 ▲67.53 |
Dashboard /wp-admin | 3.44 ▲0.03 | 35.57 ▲1.36 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 39.73 ▲3.16 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 95.90 ▼1,165.72 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 26.94 ▲0.90 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for 1-Click Backup & Restore Database
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲31 | 16.17 ▲0.16 | 6.02 ▲0.13 | 2.92 ▼0.13 |
Dashboard /wp-admin | 2,914 ▲53 | 6.11 ▼0.05 | 121.04 ▼13.22 | 165.41 ▲2.11 |
Posts /wp-admin/edit.php | 2,710 ▲19 | 3.23 ▲0.21 | 67.52 ▲2.95 | 153.83 ▲11.62 |
Add New Post /wp-admin/post-new.php | 1,705 ▼6 | 21.41 ▲0.70 | 428.94 ▼11.74 | 161.83 ▲5.81 |
Media Library /wp-admin/upload.php | 1,717 ▲19 | 5.50 ▲0.05 | 137.03 ▼7.90 | 182.55 ▼3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function sbocbr_get_setting() in wp-content/plugins/1-click-backup-restore-database-by-sunbytes/views/main.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (screenshot-1.png 1-click Backup & Restore Database main form) image required
1-click-backup-restore-database-by-sunbytes/sbocbr.php 85% from 13 tests
Analyzing the main PHP file in "1-Click Backup & Restore Database" version 1.0.3
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("1-click-backup-restore-database-by-sunbytes.php" instead of "sbocbr.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin736 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 179 | 106 | 702 |
CSS | 1 | 6 | 0 | 34 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 62.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 57.06KB | 19.61KB | ▼ 65.63% |