Benchmarks
Plugin footprint 99% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.33MB] [CPU: ▼280.06ms] 75% from 4 tests
An overview of server-side resources used by Backup & Restore Manager
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 15,112.42ms on /wp-admin/admin.php?page=backup-restore-manager_extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.68 ▲1.17 | 61.91 ▲12.30 |
Dashboard /wp-admin | 4.79 ▲1.38 | 49.87 ▲14.41 |
Posts /wp-admin/edit.php | 5.08 ▲1.44 | 53.60 ▲17.07 |
Add New Post /wp-admin/post-new.php | 8.31 ▲1.34 | 109.42 ▼1,164.03 |
Media Library /wp-admin/upload.php | 4.74 ▲1.44 | 44.53 ▲19.74 |
Extensions /wp-admin/admin.php?page=backup-restore-manager_extensions | 4.76 | 15,112.42 |
Backups /wp-admin/tools.php?page=backup-restore-manager | 5.01 | 144.86 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- You have illegally modified 4 files (30.93KB) outside of "wp-content/plugins/backup-restore-manager/" and "wp-content/uploads/"
- (new file) wp-content/backupwordpress-4d84ca6083-backups/index.html
- (new file) wp-content/backupwordpress-4d84ca6083-backups/.htaccess
- (new file) wp-content/backupwordpress-4d84ca6083-backups/backup-restore-manager-cron
- (new file) wp-content/backupwordpress-4d84ca6083-backups/.files
Filesystem: 193 new files
Database: no new tables, 3 new options
New WordPress options |
---|
obzbrm_plugin_version |
hmbkp_schedule_1647681718 |
hmbkp_schedule_1647681717 |
Browser metrics Passed 4 tests
A check of browser resources used by Backup & Restore Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲46 | 15.80 ▲0.09 | 5.99 ▲0.11 | 2.30 ▼0.11 |
Dashboard /wp-admin | 2,897 ▲36 | 6.17 ▼0.01 | 114.54 ▼17.90 | 156.22 ▼5.80 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.23 ▼0.00 | 61.23 ▼1.81 | 143.17 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,776 ▲115 | 22.08 ▲6.23 | 480.16 ▲34.00 | 162.80 ▲14.62 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.51 ▼0.02 | 151.86 ▲9.37 | 187.22 ▲0.40 |
Extensions /wp-admin/admin.php?page=backup-restore-manager_extensions | 1,041 | 2.37 | 57.41 | 130.85 |
Backups /wp-admin/tools.php?page=backup-restore-manager | 2,369 | 2.78 | 70.53 | 135.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=backup-restore-manager_extensions
- > Warning in wp-content/plugins/backup-restore-manager/admin/extensions.php+50
Invalid argument supplied for foreach()
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/backup-restore-manager/sar/srdb.cli.php
- 98× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/backup-restore-manager/vendor/symfony/process/Tests/PhpExecutableFinderTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/backup-restore-manager/vendor/symfony/process/Tests/ProcessFailedExceptionTest.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function HM\\BackUpWordPress\\add_action() in wp-content/plugins/backup-restore-manager/admin/actions.php:25
- > PHP Warning
stream_select(): supplied argument is not a valid stream resource in wp-content/plugins/backup-restore-manager/vendor/symfony/process/Tests/PipeStdinInStdoutStdErrStreamSelect.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Process\\Exception\\RuntimeException' not found in wp-content/plugins/backup-restore-manager/vendor/symfony/process/Exception/ProcessTimedOutException.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Finder\\Expression\\ValueInterface' not found in wp-content/plugins/backup-restore-manager/vendor/symfony/finder/Expression/Glob.php:21
- > PHP Fatal error
Uncaught Error: Call to a member function get_excludes() on null in wp-content/plugins/backup-restore-manager/admin/schedule-form-excludes.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/backup-restore-manager/vendor/symfony/process/Tests/ProcessBuilderTest.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/backup-restore-manager/admin/faq.php:2
- > PHP Warning
Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/backup-restore-manager/sar/srdb.cli.php on line 180
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
backup-restore-manager/backup-restore-manager.php Passed 13 tests
This is the main PHP file of "Backup & Restore Manager" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Simple automated Backup and Restore of your WordPress Website.
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected22,458 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 4,459 | 6,864 | 12,405 |
PO File | 22 | 4,147 | 4,618 | 9,216 |
Bourne Shell | 1 | 37 | 27 | 269 |
JSON | 4 | 0 | 0 | 250 |
JavaScript | 2 | 53 | 11 | 138 |
CSS | 2 | 20 | 2 | 66 |
Markdown | 2 | 19 | 0 | 60 |
XML | 2 | 6 | 0 | 54 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 144 | |
▷ Abstract classes | 16 | 11.11% |
▷ Concrete classes | 128 | 88.89% |
▷ Final classes | 2 | 1.56% |
Methods | 960 | |
▷ Static methods | 106 | 11.04% |
▷ Public methods | 844 | 87.92% |
▷ Protected methods | 46 | 4.79% |
▷ Private methods | 70 | 7.29% |
Functions | 97 | |
▷ Named functions | 65 | 67.01% |
▷ Anonymous functions | 32 | 32.99% |
Constants | 54 | |
▷ Global constants | 12 | 22.22% |
▷ Class constants | 42 | 77.78% |
▷ Public constants | 42 | 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
There were not PNG files found in your plugin