Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wptio-backups/classes/wptio.config.php+16
Use of undefined constant WPTIO_UPLOAD_URL - assumed 'WPTIO_UPLOAD_URL' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.88MB] [CPU: ▼54.81ms] Passed 4 tests
An overview of server-side resources used by WPtools.io Cloud Backup & Restore Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.89 ▼34.05 |
Dashboard /wp-admin | 2.12 ▼1.18 | 6.14 ▼46.06 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 6.29 ▼45.64 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 7.29 ▼93.49 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.87 ▼27.65 |
Setting /wp-admin/admin.php?page=setting-website-proccess | 2.12 | 5.56 |
Server storage [IO: ▲2.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wptio_restore |
wp_wptio_backup |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
WPtools.io Cloud Backup & Restore Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.65 ▼0.96 | 1.70 ▼0.06 | 29.06 ▼12.46 |
Dashboard /wp-admin | 2,228 ▲37 | 4.95 ▼0.95 | 97.10 ▼9.02 | 77.56 ▲36.26 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.07 ▲0.07 | 36.35 ▼8.52 | 41.63 ▲5.79 |
Add New Post /wp-admin/post-new.php | 1,699 ▲166 | 22.61 ▼0.65 | 758.98 ▲94.09 | 41.84 ▼13.60 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.29 ▲0.08 | 96.81 ▼0.97 | 78.79 ▲33.61 |
Setting /wp-admin/admin.php?page=setting-website-proccess | 1,055 | 1.89 | 31.38 | 66.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/wptio-backups/classes/wptio.config.php+16
Use of undefined constant WPTIO_UPLOAD_URL - assumed 'WPTIO_UPLOAD_URL' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=setting-website-proccess
- > Warning in wp-content/plugins/wptio-backups/classes/wptio.config.php+16
Use of undefined constant WPTIO_UPLOAD_URL - assumed 'WPTIO_UPLOAD_URL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=setting-website-proccess
- > Warning in wp-content/plugins/wptio-backups/classes/wptio.config.php+17
Use of undefined constant WPTIO_PATCH_URL - assumed 'WPTIO_PATCH_URL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=setting-website-proccess
- > Warning in wp-content/plugins/wptio-backups/classes/wptio.config.php+18
Use of undefined constant WPTIO_CONNECT_URL - assumed 'WPTIO_CONNECT_URL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=setting-website-proccess
- > Warning in wp-content/plugins/wptio-backups/classes/wptio.config.php+19
Use of undefined constant WPTIO_RESTORE_URL - assumed 'WPTIO_RESTORE_URL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=setting-website-proccess
- > Warning in wp-content/plugins/wptio-backups/classes/wptio.config.php+20
Use of undefined constant WPTIO_DISPATCH_URL - assumed 'WPTIO_DISPATCH_URL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=setting-website-proccess
- > Warning in wp-content/plugins/wptio-backups/classes/wptio.config.php+21
Use of undefined constant WPTIO_ACTIVATION_URL - assumed 'WPTIO_ACTIVATION_URL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=setting-website-proccess
- > Warning in wp-content/plugins/wptio-backups/classes/wptio.config.php+22
Use of undefined constant WPTIO_GENERATE_TOKEN - assumed 'WPTIO_GENERATE_TOKEN' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=setting-website-proccess
- > Warning in wp-content/plugins/wptio-backups/classes/wptio.config.php+23
Use of undefined constant WPTIO_DOWNLOAD_URL - assumed 'WPTIO_DOWNLOAD_URL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=setting-website-proccess
- > Notice in wp-content/plugins/wptio-backups/pages/wptio-settings.php+243
Trying to access array offset on value of type bool
SRP 50% 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
Please fix the following items
- 3× 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/wptio-backups/pages/wptio-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptio-backups/pages/wptio-restore.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wptio-backups/pages/wptio-backup.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in wptio-backups/assets to your readme.txt
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wptio-backups/init.php 85% from 13 tests
"WPtools.io Cloud Backup & Restore Plugin" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 470 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wptio-backups.php" instead of "init.php")
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
No dangerous file extensions were detected17,956 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 1,150 | 41 | 9,114 |
JavaScript | 6 | 1,879 | 1,703 | 7,161 |
PHP | 12 | 494 | 102 | 1,667 |
Markdown | 1 | 6 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 6 | 18.75% |
▷ Public methods | 21 | 65.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 34.38% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon/icon.png | 0.41KB | 0.31KB | ▼ 23.75% |