Benchmarks
Plugin footprint 82% 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: ▲0.03MB] [CPU: ▼6.93ms] Passed 4 tests
An overview of server-side resources used by Electric Backups
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.73 ▼0.91 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.70 ▼2.66 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.56 ▼2.49 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.90 ▼21.65 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.99 ▲0.98 |
Electric Backups /wp-admin/tools.php?page=electric-backups | 3.24 | 34.00 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- You have illegally modified 2 files (255.75KB) outside of "wp-content/plugins/electric-backups/" and "wp-content/uploads/"
- (new file) wp-content/backups/2023-10-18-23-28-28.zip
- (new file) wp-content/backups/.htaccess
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
electric_backups_history |
db_upgraded |
widget_recent-posts |
electric_backups_last_run |
widget_recent-comments |
can_compress_scripts |
electric_backups_time |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Electric Backups
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.72 ▲0.37 | 1.96 ▲0.25 | 46.98 ▲3.49 |
Dashboard /wp-admin | 2,199 ▲25 | 5.61 ▲0.06 | 88.75 ▼1.43 | 41.25 ▼2.65 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.04 | 36.74 ▲0.99 | 35.16 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.04 ▼0.41 | 661.85 ▼30.94 | 55.07 ▲4.32 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.12 ▼0.01 | 99.82 ▼2.94 | 46.19 ▲2.09 |
Electric Backups /wp-admin/tools.php?page=electric-backups | 851 | 1.99 | 22.03 | 32.77 |
Uninstaller [IO: ▲0.25MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- widget_recent-comments
- electric_backups_last_run
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- electric_backups_history
- theysaidso_admin_options
- electric_backups_time
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/electric-backups/electric-backups.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: backups, database
electric-backups/electric-backups.php Passed 13 tests
The principal PHP file in "Electric Backups" v. 1.0.2 is loaded by WordPress automatically on each request
55 characters long description:
Automatically create backups of your WordPress database
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected202 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 59 | 202 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected