Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.56MB] [CPU: ▲10.96ms] 75% from 4 tests
A check of server-side resources used by Jetpack VaultPress Backup
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,117.35ms on /wp-admin/admin.php?page=my-jetpack)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.31 ▲3.84 | 47.37 ▲8.59 |
Dashboard /wp-admin | 5.72 ▲2.41 | 58.48 ▲11.90 |
Posts /wp-admin/edit.php | 5.83 ▲2.47 | 56.98 ▲13.47 |
Add New Post /wp-admin/post-new.php | 8.83 ▲2.94 | 111.44 ▲9.87 |
Media Library /wp-admin/upload.php | 5.64 ▲2.41 | 51.97 ▲20.60 |
VaultPress Backup /wp-admin/admin.php?page=jetpack-backup | 5.82 | 51.09 |
My Jetpack /wp-admin/admin.php?page=my-jetpack | 6.38 | 1,117.35 |
Server storage [IO: ▲5.34MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 457 new files
Database: no new tables, 13 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
jetpack_sync_https_history_home_url |
widget_recent-posts |
jetpack_options |
theysaidso_admin_options |
jetpack_backup_db_version |
jetpack_connection_active_plugins |
_upgrade_clear_disabled_plugin |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Jetpack VaultPress Backup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.42 ▼0.22 | 3.01 ▲1.41 | 38.38 ▼0.91 |
Dashboard /wp-admin | 2,238 ▲57 | 5.74 ▲0.07 | 89.82 ▼11.03 | 39.51 ▼7.08 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.24 ▲0.23 | 42.42 ▲8.20 | 34.21 ▲2.90 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 18.00 ▼5.05 | 630.16 ▼19.90 | 66.74 ▲9.63 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.25 ▲0.04 | 99.82 ▼4.67 | 43.83 ▼2.28 |
VaultPress Backup /wp-admin/admin.php?page=jetpack-backup | 2,143 | 7.52 | 202.31 | 62.85 |
My Jetpack /wp-admin/admin.php?page=my-jetpack | 1,244 | 9.93 | 161.73 | 39.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 13 options in the database
- widget_recent-comments
- db_upgraded
- _upgrade_clear_disabled_plugin
- can_compress_scripts
- theysaidso_admin_options
- jetpack_connection_active_plugins
- jetpack_sync_https_history_home_url
- widget_theysaidso_widget
- jetpack_backup_db_version
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 items
- 60× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\Sync\\Modules\\Module' not found in wp-content/plugins/jetpack-backup/jetpack_vendor/automattic/jetpack-sync/src/modules/class-network-options.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Automattic\\Jetpack\\Sync\\Replicastore_Interface' not found in wp-content/plugins/jetpack-backup/jetpack_vendor/automattic/jetpack-sync/src/class-replicastore.php:20
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\My_Jetpack\\Product' not found in wp-content/plugins/jetpack-backup/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-hybrid-product.php:23
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\My_Jetpack\\Product' not found in wp-content/plugins/jetpack-backup/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-jetpack-ai.php:16
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/jetpack-backup/jetpack_vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\Sync\\Modules\\Module' not found in wp-content/plugins/jetpack-backup/jetpack_vendor/automattic/jetpack-sync/src/modules/class-full-sync.php:27
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\My_Jetpack\\Product' not found in wp-content/plugins/jetpack-backup/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-crm.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jp9559eef123208b7d1b9c15b978567267_backup\xe2\x93\xa52_2\\wp_normalize_path() in wp-content/plugins/jetpack-backup/vendor/jetpack-autoloader/class-path-processor.php:73
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\Sync\\Modules\\Module' not found in wp-content/plugins/jetpack-backup/jetpack_vendor/automattic/jetpack-sync/src/modules/class-comments.php:16
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\My_Jetpack\\Product' not found in wp-content/plugins/jetpack-backup/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-extras.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=my-jetpack
- > Network (severe)
index.php/wp-json/my-jetpack/v1/site/purchases?_locale=user - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: restore, backup, jetpack
jetpack-backup/jetpack-backup.php Passed 13 tests
This is the main PHP file of "Jetpack VaultPress Backup" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
Easily restore or download a backup of your site from a specific moment in time.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin45,062 lines of code in 373 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 207 | 6,676 | 22,629 | 30,630 |
Markdown | 24 | 2,032 | 0 | 6,599 |
JavaScript | 59 | 258 | 90 | 2,821 |
JSON | 23 | 0 | 0 | 2,440 |
Sass | 16 | 292 | 60 | 1,575 |
JSX | 8 | 54 | 16 | 527 |
TypeScript | 7 | 38 | 10 | 234 |
SVG | 21 | 1 | 3 | 228 |
CSS | 8 | 0 | 0 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 23.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 294.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 172 | |
▷ Abstract classes | 4 | 2.33% |
▷ Concrete classes | 168 | 97.67% |
▷ Final classes | 0 | 0.00% |
Methods | 2,053 | |
▷ Static methods | 802 | 39.06% |
▷ Public methods | 1,820 | 88.65% |
▷ Protected methods | 93 | 4.53% |
▷ Private methods | 140 | 6.82% |
Functions | 55 | |
▷ Named functions | 3 | 5.45% |
▷ Anonymous functions | 52 | 94.55% |
Constants | 162 | |
▷ Global constants | 6 | 3.70% |
▷ Class constants | 156 | 96.30% |
▷ Public constants | 156 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 1.80MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jetpack_vendor/automattic/jetpack-my-jetpack/build/images/extras-26daf36507504c96d066.png | 25.35KB | 28.14KB | 0.00% |
jetpack_vendor/automattic/jetpack-backup/src/js/hooks/assets/connect-right.png | 60.55KB | 35.14KB | ▼ 41.96% |
jetpack_vendor/automattic/jetpack-backup/src/js/hooks/assets/tim-ferriss-testimonial.png | 72.75KB | 61.68KB | ▼ 15.21% |
jetpack_vendor/automattic/jetpack-backup/build/images/connect-backup-a39e4064c9a6c6df2030.png | 79.56KB | 37.75KB | ▼ 52.55% |
jetpack_vendor/automattic/jetpack-backup/src/js/hooks/assets/ben-giordano-testimonial.png | 126.46KB | 133.65KB | 0.00% |