Benchmarks
Plugin footprint 46% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲10.30MB] [CPU: ▲66.90ms] 50% from 4 tests
A check of server-side resources used by Migration, Backup, Staging - WPvivid
Please fix the following
- RAM: Total memory usage should be kept under 10MB (currently 13.94MB on /wp-admin/admin.php?page=wpvivid-cleaner)
- Extra RAM: Extra memory usage must be kept under 5MB (currently 10.30MB on /wp-admin/admin.php?page=wpvivid-cleaner)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 12.48 ▲9.02 | 96.84 ▲56.93 |
Dashboard /wp-admin | 14.08 ▲10.77 | 113.23 ▲64.43 |
Posts /wp-admin/edit.php | 14.13 ▲10.77 | 118.20 ▲71.62 |
Add New Post /wp-admin/post-new.php | 16.59 ▲10.71 | 172.03 ▲89.64 |
Media Library /wp-admin/upload.php | 13.94 ▲10.71 | 111.12 ▲74.60 |
Database Snapshots /wp-admin/admin.php?page=wpvivid-snapshot-ex | 13.92 | 103.21 |
Settings /wp-admin/admin.php?page=wpvivid-setting | 15.13 | 127.96 |
Export & Import /wp-admin/admin.php?page=wpvivid-export-import | 13.92 | 93.82 |
Staging /wp-admin/admin.php?page=wpvivid-staging | 13.96 | 109.78 |
Backup & Restore /wp-admin/admin.php?page=WPvivid | 15.15 | 114.65 |
Image Cleaner /wp-admin/admin.php?page=wpvivid-cleaner | 13.94 | 117.94 |
Server storage [IO: ▲10.66MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- Illegal file modification found: 7 files (0.23KB) outside of "wp-content/plugins/wpvivid-backuprestore/" and "wp-content/uploads/"
- (new file) wp-content/wpvividbackups/wpvivid_log/index.html
- (new file) wp-content/wpvivid_staging/index.html
- (new file) wp-content/wpvividbackups/.htaccess
- (new file) wp-content/wpvivid_staging/.htaccess
- (new file) wp-content/wpvividbackups/index.html
- (new file) wp-content/wpvivid_uploads/Isolate/.empty
- (new file) wp-content/wpvividbackups/wpvivid_log/.htaccess
Filesystem: 1,254 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_wpvivid_unused_uploads_files |
wp_wpvivid_scan_result |
wp_wpvivid_options |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
wpvivid_current_running_staging_task |
db_upgraded |
wpvivid_check_htaccess_rule_free |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Migration, Backup, Staging - WPvivid
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲98 | 14.24 ▼0.17 | 1.80 ▲0.21 | 40.95 ▼7.00 |
Dashboard /wp-admin | 2,262 ▲88 | 5.52 ▼0.00 | 86.25 ▼6.91 | 37.42 ▼4.31 |
Posts /wp-admin/edit.php | 2,170 ▲73 | 1.95 ▼0.07 | 40.47 ▲2.59 | 36.63 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,579 ▲52 | 20.79 ▼2.71 | 649.44 ▼43.03 | 48.35 ▼11.45 |
Media Library /wp-admin/upload.php | 1,473 ▲70 | 4.15 ▼0.03 | 99.50 ▲0.98 | 41.10 ▼5.22 |
Database Snapshots /wp-admin/admin.php?page=wpvivid-snapshot-ex | 1,223 | 2.26 | 37.11 | 31.83 |
Settings /wp-admin/admin.php?page=wpvivid-setting | 6,343 | 2.69 | 66.31 | 53.26 |
Export & Import /wp-admin/admin.php?page=wpvivid-export-import | 1,319 | 2.44 | 42.56 | 32.67 |
Staging /wp-admin/admin.php?page=wpvivid-staging | 2,160 | 2.46 | 42.68 | 25.94 |
Backup & Restore /wp-admin/admin.php?page=WPvivid | 6,321 | 2.69 | 61.90 | 37.02 |
Image Cleaner /wp-admin/admin.php?page=wpvivid-cleaner | 1,425 | 2.38 | 33.04 | 35.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wpvivid-backuprestore/uninstall.php+108
Constant WPVIVID_MAIN_SCHEDULE_EVENT already defined
- The uninstall procedure failed, leaving 3 tables in the database
- wp_wpvivid_scan_result
- wp_wpvivid_unused_uploads_files
- wp_wpvivid_options
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- wpvivid_current_running_staging_task
- widget_theysaidso_widget
- theysaidso_admin_options
- wpvivid_check_htaccess_rule_free
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 return non-empty strings:
- > /wp-content/plugins/wpvivid-backuprestore/admin/partials/wpvivid-website-info-page-display.php
- 776× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Common\\Model\\MultipartUpload\\UploadIdInterface' not found in wp-content/plugins/wpvivid-backuprestore/includes/lib/aws-sdk-php-2.8.31/src/Aws/Common/Model/MultipartUpload/AbstractUploadId.php:24
- > PHP Fatal error
Uncaught Error: Class 'WPvivid_Google_Service_Resource' not found in wp-content/plugins/wpvivid-backuprestore/includes/lib2/google-api-php-client/src/WPvivid/Google/Service/Drive/Resource/Revisions.php:26
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Iam\\Exception\\IamException' not found in wp-content/plugins/wpvivid-backuprestore/includes/lib/aws-sdk-php-2.8.31/src/Aws/Iam/Exception/InvalidCertificateException.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpvivid-backuprestore/vendor/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Common\\HasDispatcherInterface' not found in wp-content/plugins/wpvivid-backuprestore/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMultiInterface.php:12
- > PHP Fatal error
Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/wpvivid-backuprestore/includes/lib/aws-sdk-php-2.8.31/src/Aws/S3/Exception/InvalidPayerException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Common\\Enum' not found in wp-content/plugins/wpvivid-backuprestore/includes/lib/aws-sdk-php-2.8.31/src/Aws/S3/Enum/Permission.php:24
- > PHP Fatal error
Uncaught Error: Class 'WPvivid_Google_Model' not found in wp-content/plugins/wpvivid-backuprestore/includes/lib2/google-api-php-client/src/WPvivid/Google/Service/Drive/DriveFileContentHints.php:18
- > PHP Fatal error
Uncaught Error: Interface 'WPvividPsr\\Log\\LoggerInterface' not found in wp-content/plugins/wpvivid-backuprestore/vendor/monolog/monolog/src/Monolog/Logger.php:28
- > PHP Fatal error
Uncaught Error: Class 'WPvividMonolog\\TestCase' not found in wp-content/plugins/wpvivid-backuprestore/vendor/monolog/monolog/tests/Monolog/Handler/FingersCrossedHandlerTest.php:20
- > 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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: restore, duplicate, backup, migrate, cloud backup...
wpvivid-backuprestore/wpvivid-backuprestore.php 92% from 13 tests
The main PHP script in "Migration, Backup, Staging - WPvivid" version 0.9.93 is automatically included on every request by WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 148 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin193,460 lines of code in 1,165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,070 | 26,110 | 59,147 | 171,758 |
JavaScript | 4 | 210 | 2,369 | 6,742 |
Markdown | 34 | 1,710 | 0 | 5,756 |
CSS | 9 | 285 | 139 | 4,800 |
JSON | 37 | 8 | 0 | 2,149 |
PO File | 2 | 992 | 1,336 | 2,056 |
XML | 5 | 14 | 0 | 125 |
YAML | 3 | 12 | 0 | 65 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 918.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.00 |
Code structure | ||
---|---|---|
Namespaces | 104 | |
Interfaces | 99 | |
Traits | 5 | |
Classes | 1,040 | |
▷ Abstract classes | 45 | 4.33% |
▷ Concrete classes | 995 | 95.67% |
▷ Final classes | 17 | 1.71% |
Methods | 8,931 | |
▷ Static methods | 525 | 5.88% |
▷ Public methods | 7,896 | 88.41% |
▷ Protected methods | 509 | 5.70% |
▷ Private methods | 526 | 5.89% |
Functions | 379 | |
▷ Named functions | 121 | 31.93% |
▷ Anonymous functions | 258 | 68.07% |
Constants | 868 | |
▷ Global constants | 402 | 46.31% |
▷ Class constants | 466 | 53.69% |
▷ Public constants | 466 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
51 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/images/locked.png | 1.19KB | 0.29KB | ▼ 75.33% |
admin/partials/images/staging/staging.png | 2.11KB | 1.11KB | ▼ 47.55% |
admin/partials/images/storage-dropbox.png | 4.11KB | 0.78KB | ▼ 81.00% |
admin/partials/images/storage-amazon-s3.png | 3.98KB | 0.79KB | ▼ 80.09% |
admin/partials/images/storage-amazon-s3(gray).png | 1.41KB | 0.79KB | ▼ 43.88% |