Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.60MB] [CPU: ▼1.20ms] Passed 4 tests
An overview of server-side resources used by Keep Backup Daily
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.34 ▼4.10 |
Dashboard /wp-admin | 5.46 ▲2.15 | 59.30 ▲2.21 |
Posts /wp-admin/edit.php | 5.49 ▲2.14 | 55.38 ▲5.43 |
Add New Post /wp-admin/post-new.php | 8.07 ▲2.18 | 86.40 ▼8.34 |
Media Library /wp-admin/upload.php | 5.33 ▲2.10 | 47.72 ▲12.51 |
Backup Now /wp-admin/admin.php?page=kbd_download | 5.26 | 45.24 |
Export /wp-admin/upload.php?page=kbd-export-media | 5.23 | 41.46 |
Keep Backup Daily /wp-admin/options-general.php?page=kbd_settings | 5.33 | 51.46 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Keep Backup Daily
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.24 ▼0.13 | 1.59 ▼0.04 | 37.92 ▼4.59 |
Dashboard /wp-admin | 2,203 ▲26 | 5.59 ▼0.06 | 86.44 ▼11.40 | 36.85 ▼6.44 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▼0.01 | 37.24 ▼1.07 | 35.79 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,541 ▲6 | 18.44 ▼0.04 | 619.25 ▼33.74 | 63.74 ▼8.59 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.26 ▲0.02 | 97.36 ▲2.41 | 42.72 ▼2.17 |
Backup Now /wp-admin/admin.php?page=kbd_download | 866 | 1.86 | 28.92 | 28.09 |
Export /wp-admin/upload.php?page=kbd-export-media | 1,344 | 2.40 | 45.87 | 29.93 |
Keep Backup Daily /wp-admin/options-general.php?page=kbd_settings | 1,340 | 2.35 | 36.59 | 26.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
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)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPDB' not found in wp-content/plugins/keep-backup-daily/inc/find_replace/class/Common/Db/MDBWPDB.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/keep-backup-daily/inc/find_replace/setup-mdb.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/keep-backup-daily/inc/kbd_find_replace.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPMechanic\\KBFNR\\Common\\Plugin\\PluginManagerBase' not found in wp-content/plugins/keep-backup-daily/inc/find_replace/class/Free/Plugin/PluginManager.php:16
- > PHP Fatal error
Uncaught Error: Class 'WPMechanic\\KBFNR\\Common\\UI\\TemplateBase' not found in wp-content/plugins/keep-backup-daily/inc/find_replace/class/Free/UI/Template.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/keep-backup-daily/inc/kbd_export_media.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/keep-backup-daily/inc/kbd_settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPMechanic\\KBFNR\\ServiceProviderAbstract' not found in wp-content/plugins/keep-backup-daily/inc/find_replace/class/ServiceProvider.php:29
- > PHP Fatal error
Uncaught Error: Class 'WPMechanic\\KBFNR\\ServiceProvider' not found in wp-content/plugins/keep-backup-daily/inc/find_replace/class/Free/ServiceProvider.php:8
- > PHP Fatal error
Trait 'WPMechanic\\KBFNR\\Common\\Util\\Singleton' not found in wp-content/plugins/keep-backup-daily/inc/find_replace/class/Common/MigrationState/StateDataContainer.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
keep-backup-daily/index.php 85% from 13 tests
"Keep Backup Daily" version 2.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("keep-backup-daily.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin11,733 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 2,597 | 2,880 | 8,993 |
PO File | 3 | 835 | 921 | 2,033 |
JavaScript | 3 | 204 | 18 | 364 |
CSS | 2 | 73 | 11 | 343 |
PHP code Passed 2 tests
Analyzing 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.41 |
Average class complexity | 24.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 284.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 54 | |
▷ Abstract classes | 5 | 9.26% |
▷ Concrete classes | 49 | 90.74% |
▷ Final classes | 0 | 0.00% |
Methods | 455 | |
▷ Static methods | 35 | 7.69% |
▷ Public methods | 422 | 92.75% |
▷ Protected methods | 4 | 0.88% |
▷ Private methods | 29 | 6.37% |
Functions | 43 | |
▷ Named functions | 40 | 93.02% |
▷ Anonymous functions | 3 | 6.98% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/database_email.png | 0.82KB | 0.80KB | ▼ 3.44% |
images/flower.png | 13.18KB | 4.85KB | ▼ 63.22% |
images/tick_cross.png | 3.99KB | 1.23KB | ▼ 69.17% |
images/folder.png | 0.72KB | 0.50KB | ▼ 30.86% |