Benchmarks
Plugin footprint 81% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲3.05MB] [CPU: ▼278.29ms] 75% from 4 tests
A check of server-side resources used by UpdraftPlus WordPress Backup Plugin
Please have a look at the following items
- RAM: Try to keep total memory usage under 10MB (currently 10.20MB on /wp-admin/options-general.php?page=updraftplus)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.25 ▲1.74 | 64.98 ▲5.68 |
Dashboard /wp-admin | 7.25 ▲3.85 | 56.96 ▲20.95 |
Posts /wp-admin/edit.php | 7.25 ▲3.61 | 83.10 ▲45.37 |
Add New Post /wp-admin/post-new.php | 9.97 ▲3.00 | 113.66 ▼1,160.85 |
Media Library /wp-admin/upload.php | 7.25 ▲3.96 | 46.45 ▲21.08 |
UpdraftPlus Backups /wp-admin/options-general.php?page=updraftplus | 10.20 | 218.61 |
Server storage [IO: ▲25.77MB] [DB: ▲0.20MB] 33% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Illegal file modification detected: 3 files (0.24KB) outside of "wp-content/plugins/updraftplus/" and "wp-content/uploads/"
- (new file) wp-content/updraft/.htaccess
- (new file) wp-content/updraft/index.html
- (new file) wp-content/updraft/web.config
- The filesystem usage should be lower than 25MB (currently using 25.77MB)
Filesystem: 1,640 new files
Database: no new tables, 16 new options
New WordPress options |
---|
updraft_cloudfiles |
updraft_dropbox |
updraft_openstack |
updraft_googlecloud |
updraft_azure |
updraft_s3generic |
updraft_googledrive |
updraft_backblaze |
updraft_ftp |
updraftplus_version |
... |
Browser metrics Passed 4 tests
UpdraftPlus WordPress Backup Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,828 ▲74 | 15.83 ▲0.19 | 6.02 ▼0.74 | 2.36 ▼0.20 |
Dashboard /wp-admin | 2,957 ▲99 | 6.20 ▲0.04 | 126.61 ▼19.92 | 163.84 ▼31.04 |
Posts /wp-admin/edit.php | 2,729 ▲59 | 3.23 ▼0.02 | 63.08 ▼48.98 | 146.59 ▼16.22 |
Add New Post /wp-admin/post-new.php | 1,671 ▼48 | 20.83 ▲3.95 | 460.54 ▲0.78 | 145.34 ▼16.61 |
Media Library /wp-admin/upload.php | 1,742 ▲47 | 5.47 ▼0.07 | 148.61 ▲4.52 | 190.46 ▲1.45 |
UpdraftPlus Backups /wp-admin/options-general.php?page=updraftplus | 7,801 | 7.36 | 240.74 | 271.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.20MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 16 options
- updraft_openstack
- updraft_updraftvault
- updraft_googledrive
- updraft_backblaze
- updraft_dropbox
- updraft_onedrive
- updraft_webdav
- updraft_azure
- updraft_s3
- updraft_sftp
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 122× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/updraftplus/templates/wp-admin/settings/footer.php
- > /wp-content/plugins/updraftplus/vendor/team-updraft/common-libs/src/updraft-tasks/class-updraft-task-options.php
- > /wp-content/plugins/updraftplus/templates/wp-admin/settings/delete-and-restore-modals.php
- > /wp-content/plugins/updraftplus/central/bootstrap.php
- > /wp-content/plugins/updraftplus/includes/updraftcentral.php
- > /wp-content/plugins/updraftplus/methods/remotesend.php
- > /wp-content/plugins/updraftplus/includes/class-backup-history.php
- > /wp-content/plugins/updraftplus/templates/wp-admin/notices/report.php
- > /wp-content/plugins/updraftplus/templates/wp-admin/settings/exclude-modal.php
- > /wp-content/plugins/updraftplus/includes/class-commands.php
- 538× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Parser\\Message\\MessageParserInterface' not found in wp-content/plugins/updraftplus/vendor/guzzle/guzzle/src/Guzzle/Parser/Message/AbstractMessageParser.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/updraftplus/vendor/aws/aws-sdk-php/src/Exception/IncalculablePayloadException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Process\\Pipes\\AbstractPipes' not found in wp-content/plugins/updraftplus/vendor/symfony/process/Pipes/WindowsPipes.php:27
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Common\\AbstractHasDispatcher' not found in wp-content/plugins/updraftplus/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMultiProxy.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Endpoint\\UseDualstackEndpoint\\ConfigurationInterface' not found in wp-content/plugins/updraftplus/vendor/aws/aws-sdk-php/src/Endpoint/UseDualstackEndpoint/Configuration.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/updraftplus/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Assetic\\Filter\\FilterInterface' not found in wp-content/plugins/updraftplus/vendor/kriswallsmith/assetic/src/Assetic/Filter/MinifyCssCompressorFilter.php:25
- > PHP Fatal error
Uncaught Error: Class 'Assetic\\Filter\\BaseNodeFilter' not found in wp-content/plugins/updraftplus/vendor/kriswallsmith/assetic/src/Assetic/Filter/HandlebarsFilter.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/updraftplus/vendor/aws/aws-sdk-php/src/S3/RegionalEndpoint/Exception/ConfigurationException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Common\\Exception\\RuntimeException' not found in wp-content/plugins/updraftplus/vendor/guzzle/guzzle/src/Guzzle/Service/Exception/ResponseClassException.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
updraftplus/updraftplus.php 92% from 13 tests
The main PHP file in "UpdraftPlus WordPress Backup Plugin" ver. 1.22.11 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected351,626 lines of code in 1,445 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,221 | 28,937 | 67,822 | 160,171 |
PO File | 32 | 67,808 | 83,520 | 136,687 |
JavaScript | 31 | 6,834 | 7,542 | 33,728 |
CSS | 32 | 1,677 | 281 | 10,588 |
Markdown | 45 | 1,727 | 0 | 5,575 |
JSON | 59 | 74 | 0 | 4,072 |
XML | 9 | 19 | 8 | 189 |
Bourne Shell | 3 | 19 | 4 | 176 |
Sass | 1 | 28 | 0 | 167 |
reStructuredText | 1 | 35 | 29 | 59 |
GLSL | 1 | 17 | 0 | 55 |
HTML | 1 | 16 | 0 | 41 |
Ant | 1 | 10 | 1 | 34 |
YAML | 1 | 2 | 0 | 25 |
m4 | 1 | 4 | 4 | 22 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
Perl | 1 | 4 | 1 | 8 |
SVG | 1 | 0 | 0 | 7 |
INI | 2 | 0 | 0 | 3 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,463)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 277)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 17.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,463.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 277.00 |
Code structure | ||
---|---|---|
Namespaces | 151 | |
Interfaces | 115 | |
Traits | 20 | |
Classes | 1,221 | |
▷ Abstract classes | 72 | 5.90% |
▷ Concrete classes | 1,149 | 94.10% |
▷ Final classes | 41 | 3.57% |
Methods | 9,564 | |
▷ Static methods | 826 | 8.64% |
▷ Public methods | 8,120 | 84.90% |
▷ Protected methods | 434 | 4.54% |
▷ Private methods | 1,010 | 10.56% |
Functions | 583 | |
▷ Named functions | 188 | 32.25% |
▷ Anonymous functions | 395 | 67.75% |
Constants | 990 | |
▷ Global constants | 358 | 36.16% |
▷ Class constants | 632 | 63.84% |
▷ Public constants | 632 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
100 compressed PNG files occupy 0.48MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/email.png | 1.10KB | 1.01KB | ▼ 7.65% |
images/icons/cloudfiles.png | 1.73KB | 1.66KB | ▼ 4.50% |
images/addons-images/sftp.png | 0.99KB | 0.99KB | 0.00% |
includes/jstree/themes/default-dark/32px.png | 1.49KB | 1.53KB | 0.00% |
images/addons-images/morefiles.png | 2.18KB | 2.33KB | 0.00% |