Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.39MB] [CPU: ▼25.21ms] Passed 4 tests
Analyzing server-side resources used by WP MyBackup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 4.62 ▼38.16 |
Dashboard /wp-admin | 2.63 ▼0.72 | 10.32 ▼56.14 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 47.64 ▲3.27 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 84.69 ▼7.27 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 34.92 ▲0.75 |
WP MyBackup /wp-admin/tools.php?page=e7606c0f01e39eeeebf16123bfdb5a48 | 2.64 | 11.40 |
Server storage [IO: ▲2.39MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 295 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
wp_mybackup_options |
db_upgraded |
Browser metrics Passed 4 tests
WP MyBackup: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲119 | 14.57 ▲0.33 | 1.86 ▲0.19 | 29.15 ▼16.76 |
Dashboard /wp-admin | 2,273 ▲98 | 5.57 ▼0.15 | 97.08 ▼15.89 | 91.64 ▲45.85 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.07 | 38.91 ▲3.39 | 33.32 ▼3.20 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.41 ▲0.65 | 668.92 ▼6.10 | 53.95 ▼4.76 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.03 | 95.24 ▼3.73 | 41.02 ▲0.68 |
WP MyBackup /wp-admin/tools.php?page=e7606c0f01e39eeeebf16123bfdb5a48 | 2,644 | 13.00 | 285.89 | 87.81 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- wp_mybackup_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=e7606c0f01e39eeeebf16123bfdb5a48
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/wp-mybackup/class/functions/utils/wp-wrappers.php+55
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- > GET request to /wp-admin/tools.php?page=e7606c0f01e39eeeebf16123bfdb5a48
- > Deprecated in wp-content/plugins/wp-mybackup/class/Dashboard.php+59
Function get_magic_quotes_gpc() is deprecated
- > GET request to /wp-admin/tools.php?page=e7606c0f01e39eeeebf16123bfdb5a48
- > Notice in wp-content/plugins/wp-mybackup/class/lib/editor/AbstractTargetEditor.php+116
Trying to access array offset on value of type null
- > GET request to /wp-admin/tools.php?page=e7606c0f01e39eeeebf16123bfdb5a48
- > Deprecated in wp-content/plugins/wp-mybackup/class/lib/curl/CurlFtpWrapper.php+137
Array and string offset access syntax with curly braces is deprecated
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=e7606c0f01e39eeeebf16123bfdb5a48
- > Warning in wp-content/plugins/wp-mybackup/class/functions/utils/ui.php+84
constant(): Couldn't find constant MyBackup\APP_RESTORE
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=e7606c0f01e39eeeebf16123bfdb5a48
- > Warning in wp-content/plugins/wp-mybackup/class/functions/utils/ui.php+84
constant(): Couldn't find constant MyBackup\APP_LISTVIEW_TARGETS
- 6 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=e7606c0f01e39eeeebf16123bfdb5a48
- > Warning in wp-content/plugins/wp-mybackup/class/functions/utils/ui.php+84
constant(): Couldn't find constant MyBackup\APP_LICENSE
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=e7606c0f01e39eeeebf16123bfdb5a48
- > Warning in wp-content/plugins/wp-mybackup/class/functions/utils/ui.php+84
constant(): Couldn't find constant MyBackup\APP_ADDONDROPIN
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-mybackup/class/lib/editor/templates/_not_found_template_.php
- > /wp-content/plugins/wp-mybackup/WPMyBackup.php
- 351× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'FUNCTIONS_PATHutils.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-mybackup/class/MySQLBackupHandler.php on line 38
- > PHP Warning
Use of undefined constant FUNCTIONS_PATH - assumed 'FUNCTIONS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mybackup/class/AjaxRequests.php on line 38
- > PHP Warning
Use of undefined constant CURL_PATH - assumed 'CURL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mybackup/class/autoloader.php on line 68
- > PHP Warning
Use of undefined constant STORAGE_PATH - assumed 'STORAGE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mybackup/class/autoloader.php on line 54
- > PHP Fatal error
Uncaught Error: Call to undefined function MyBackup\\register_settings() in wp-content/plugins/wp-mybackup/config/addons/10-cpu_sleep.php:48
- > PHP Fatal error
require_once(): Failed opening required 'LIB_PATHMyException.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-mybackup/class/LocalFilesMD5.php on line 38
- > PHP Warning
Use of undefined constant UTILS_PATH - assumed 'UTILS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mybackup/class/functions/utils.php on line 68
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-mybackup/class/functions/addonfunc/restore_mysql.php:189
- > PHP Fatal error
require_once(): Failed opening required 'LIB_PATHMyException.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-mybackup/class/TarArchive.php on line 46
- > PHP Fatal error
require_once(): Failed opening required 'CLASS_PATHconstants.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-mybackup/config/config-custom.php on line 43
- > 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)
No browser issues were found
Optimizations
Plugin configuration 76% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-mybackup ===
) - Screenshots: These screenshots lack descriptions #16, #17, #18, #19 in wp-mybackup/assets to your readme.txt
- Tags: There were no tags found
wp-mybackup/WPMyBackup.php 69% from 13 tests
Analyzing the main PHP file in "WP MyBackup" version 1.0-3 $...
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-mybackup.php" instead of "WPMyBackup.php")
- Description: Please use more than 10 characters for the plugin description (currently 0 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.0-3 $...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin28,852 lines of code in 196 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 185 | 300 | 6,116 | 28,752 |
HTML | 1 | 5 | 0 | 89 |
JavaScript | 5 | 0 | 0 | 5 |
CSS | 3 | 0 | 0 | 3 |
INI | 1 | 2 | 0 | 2 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 39.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 321.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 83 | |
▷ Abstract classes | 6 | 7.23% |
▷ Concrete classes | 77 | 92.77% |
▷ Final classes | 0 | 0.00% |
Methods | 939 | |
▷ Static methods | 15 | 1.60% |
▷ Public methods | 512 | 54.53% |
▷ Protected methods | 201 | 21.41% |
▷ Private methods | 226 | 24.07% |
Functions | 522 | |
▷ Named functions | 359 | 68.77% |
▷ Anonymous functions | 163 | 31.23% |
Constants | 482 | |
▷ Global constants | 471 | 97.72% |
▷ Class constants | 11 | 2.28% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
73 PNG files occupy 0.60MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/help.png | 0.15KB | 0.17KB | 0.00% |
assets/screenshot-9.png | 32.83KB | 32.15KB | ▼ 2.07% |
img/ssl-icon.png | 1.29KB | 1.31KB | 0.00% |
img/key.png | 0.66KB | 0.42KB | ▼ 36.70% |
img/twitter.png | 1.79KB | 0.69KB | ▼ 61.63% |