Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/cyan-backup/cyan-backup.php+85
array_key_exists() expects parameter 2 to be array, bool given
Server metrics [RAM: ▼1.47MB] [CPU: ▼54.11ms] Passed 4 tests
A check of server-side resources used by CYAN Backup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.52 ▼0.94 | 7.16 ▼37.86 |
Dashboard /wp-admin | 2.54 ▼0.76 | 12.92 ▼34.30 |
Posts /wp-admin/edit.php | 2.54 ▼0.81 | 8.34 ▼42.79 |
Add New Post /wp-admin/post-new.php | 2.54 ▼3.34 | 7.84 ▼101.50 |
Media Library /wp-admin/upload.php | 2.54 ▼0.69 | 9.58 ▼24.82 |
Backups /wp-admin/admin.php?page=cyan-backup | 2.54 | 9.05 |
About /wp-admin/admin.php?page=cyan-backup-about | 2.54 | 10.15 |
Options /wp-admin/admin.php?page=cyan-backup-options | 2.54 | 7.95 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CYAN Backup
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲58 | 14.25 ▼0.09 | 1.67 ▼0.12 | 43.49 ▼1.97 |
Dashboard /wp-admin | 2,222 ▲42 | 5.54 ▼0.13 | 91.27 ▼5.65 | 72.65 ▲32.34 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 1.99 ▲0.03 | 38.85 ▼0.85 | 34.67 ▼4.89 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 23.16 ▼0.12 | 757.27 ▲83.12 | 58.31 ▲2.49 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.13 ▼0.10 | 103.46 ▲4.82 | 78.19 ▲35.86 |
Backups /wp-admin/admin.php?page=cyan-backup | 907 | 1.83 | 33.43 | 29.61 |
About /wp-admin/admin.php?page=cyan-backup-about | 989 | 1.74 | 26.50 | 26.69 |
Options /wp-admin/admin.php?page=cyan-backup-options | 2,395 | 2.03 | 36.20 | 36.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/cyan-backup/cyan-backup.php+85
array_key_exists() expects parameter 2 to be array, bool given
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Warning in wp-content/plugins/cyan-backup/cyan-backup.php+85
array_key_exists() expects parameter 2 to be array, bool given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cyan-backup
- > POST request to /index.php/json/status/
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- > GET request to /wp-admin/admin.php?page=cyan-backup
- > Notice in wp-content/plugins/cyan-backup/includes/class-cyan-wp-backuper.php+51
Undefined index: excluded
- > GET request to /wp-admin/admin.php?page=cyan-backup
- > POST request to /index.php/json/status/
- > Warning in wp-content/plugins/cyan-backup/cyan-backup.php+540
file_get_contents(/tmpstatus.log): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+318
Undefined index: remote
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+811
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+505
Undefined index: schedule
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+654
Undefined index: sendto
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+726
Undefined index: schedule_once
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+727
Undefined index: schedule_before
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+738
Undefined index: schedule_hours_label
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+738
Undefined index: schedule_days
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+738
Undefined index: schedule_weeks
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+738
Undefined index: schedule_months
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+739
Undefined index: schedule_on
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+741
Undefined index: schedule_dow
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+755
Undefined index: schedule_the
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+757
Undefined index: schedule_dom
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+770
Undefined index: schedule_at
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+811
Undefined index: prune
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+859
Undefined index: host
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+865
Undefined index: username
- > GET request to /wp-admin/admin.php?page=cyan-backup-options
- > Notice in wp-content/plugins/cyan-backup/includes/page-options.php+878
Undefined index: path
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 61× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: final_password in wp-content/plugins/cyan-backup/includes/protocol-ftpswrappers.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cyan-backup/includes/protocol-ftpwrappers.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cyan-backup/includes/page-backups.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cyan-backup/includes/protocol-ftpwrappers.php on line 22
- > PHP Notice
Undefined variable: remote_settings in wp-content/plugins/cyan-backup/includes/protocol-ftpswrappers.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cyan-backup/includes/protocol-ftpwrappers.php on line 15
- > PHP Notice
Undefined offset: 1 in wp-content/plugins/cyan-backup/includes/protocol-ftplibrary.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'splitbrain\\PHPArchive\\Archive' not found in wp-content/plugins/cyan-backup/vendor/splitbrain/php-archive/src/Zip.php:16
- > PHP Notice
Undefined variable: remote_settings in wp-content/plugins/cyan-backup/includes/protocol-ftpwrappers.php on line 22
- > PHP Notice
Undefined offset: 2 in wp-content/plugins/cyan-backup/includes/protocol-ftpwrappers.php on line 13
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: backup, ftp, ftps, sftp, schedule...
cyan-backup/cyan-backup.php Passed 13 tests
The main PHP file in "CYAN Backup" ver. 2.5.1 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Backup your entire WordPress site and its database into an archive file on a schedule.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected28,756 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 5,660 | 15,833 | 28,195 |
CSS | 3 | 17 | 25 | 299 |
JSON | 3 | 5 | 0 | 111 |
Markdown | 1 | 16 | 0 | 52 |
YAML | 2 | 9 | 0 | 50 |
Bourne Shell | 1 | 13 | 22 | 28 |
XML | 1 | 0 | 0 | 21 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 101.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 556.00 |
Average method complexity | 5.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 1 | 2.17% |
▷ Concrete classes | 45 | 97.83% |
▷ Final classes | 0 | 0.00% |
Methods | 940 | |
▷ Static methods | 23 | 2.45% |
▷ Public methods | 829 | 88.19% |
▷ Protected methods | 33 | 3.51% |
▷ Private methods | 78 | 8.30% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 309 | |
▷ Global constants | 295 | 95.47% |
▷ Class constants | 14 | 4.53% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cyan-backup.png | 9.44KB | 6.25KB | ▼ 33.75% |
images/backup32.png | 1.05KB | 0.94KB | ▼ 10.83% |
images/backup16.png | 0.36KB | 0.32KB | ▼ 9.07% |
images/success.png | 0.76KB | 0.81KB | 0.00% |
images/failure.png | 0.57KB | 0.62KB | 0.00% |