Benchmarks
Plugin footprint 64% from 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 gracefully, with no errors
Server metrics [RAM: ▲5.35MB] [CPU: ▲25.08ms] 75% from 4 tests
This is a short check of server-side resources used by Backup Bolt
It is recommended to improve the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.35MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.16 ▲5.70 | 76.56 ▲26.40 |
Dashboard /wp-admin | 9.18 ▲5.84 | 81.43 ▲12.18 |
Posts /wp-admin/edit.php | 9.18 ▲5.83 | 81.38 ▲23.80 |
Add New Post /wp-admin/post-new.php | 9.92 ▲4.04 | 135.45 ▲37.92 |
Media Library /wp-admin/upload.php | 9.18 ▲5.95 | 84.00 ▲48.06 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.18 | 65.32 |
Server storage [IO: ▲3.29MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- You have illegally modified 3 files (0.37KB) outside of "wp-content/plugins/backup-bolt/" and "wp-content/uploads/"
- (new file) wp-content/backup-bolt-1ab620b7cc/.htaccess
- (new file) wp-content/backup-bolt-1ab620b7cc/index.html
- (new file) wp-content/backup-bolt-1ab620b7cc/index.php
Filesystem: 220 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
babo_backup_key |
fs_debug_mode |
widget_recent-posts |
widget_recent-comments |
fs_active_plugins |
Browser metrics Passed 4 tests
Checking browser requirements for Backup Bolt
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲132 | 14.35 ▼0.01 | 1.66 ▼0.11 | 31.68 ▼9.58 |
Dashboard /wp-admin | 2,317 ▲149 | 5.78 ▲0.18 | 95.67 ▲7.70 | 83.58 ▲40.71 |
Posts /wp-admin/edit.php | 2,217 ▲117 | 2.41 ▲0.39 | 39.74 ▲0.38 | 40.08 ▲3.67 |
Add New Post /wp-admin/post-new.php | 1,716 ▲182 | 22.26 ▲4.16 | 716.63 ▲109.67 | 34.79 ▼40.60 |
Media Library /wp-admin/upload.php | 1,513 ▲116 | 4.33 ▲0.09 | 102.78 ▼0.64 | 81.87 ▲35.84 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,131 | 1.86 | 29.25 | 31.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/backup-bolt/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- fs_debug_mode
- fs_accounts
- widget_theysaidso_widget
- fs_active_plugins
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/backup-bolt/inc/main.php
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: download backup, wordpress backup, backups, backup, cloud backup...
backup-bolt/backup-bolt.php Passed 13 tests
"Backup Bolt" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Super simple WordPress backup plugin
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected35,457 lines of code in 166 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 8,303 | 17,493 | 34,024 |
JavaScript | 7 | 82 | 130 | 445 |
CSS | 18 | 56 | 20 | 424 |
Sass | 2 | 50 | 1 | 282 |
Markdown | 1 | 68 | 0 | 214 |
PO File | 1 | 21 | 21 | 67 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 76.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,324 | |
▷ Static methods | 203 | 15.33% |
▷ Public methods | 926 | 69.94% |
▷ Protected methods | 17 | 1.28% |
▷ Private methods | 381 | 28.78% |
Functions | 104 | |
▷ Named functions | 102 | 98.08% |
▷ Anonymous functions | 2 | 1.92% |
Constants | 156 | |
▷ Global constants | 109 | 69.87% |
▷ Class constants | 47 | 30.13% |
▷ Public constants | 47 | 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
5 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/backup-bolt.png | 7.45KB | 2.88KB | ▼ 61.32% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/icon.png | 3.18KB | 0.45KB | ▼ 85.92% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/symbol.png | 31.51KB | 5.08KB | ▼ 83.87% |