68% wpsbackup

Code Review | WPSBackup

WordPress plugin WPSBackup scored 68% from 54 tests.

About plugin

  • Plugin page: wpsbackup
  • Plugin version: 1.31
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 5.8.1
  • First release: May 14, 2020
  • Latest release: May 14, 2020
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: wpsbackup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 202 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼146.22ms] Passed 4 tests

Server-side resources used by WPSBackup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1542.52 ▲19.84
Dashboard /wp-admin3.11 ▲0.0546.22 ▼3.23
Posts /wp-admin/edit.php3.16 ▲0.0443.51 ▼10.83
Add New Post /wp-admin/post-new.php5.46 ▲0.0389.27 ▼568.58
Media Library /wp-admin/upload.php3.05 ▲0.0532.54 ▼2.22
Jobs /wp-admin/admin.php?page=wps-backup-jobs3.0030.07
WPS Backup /wp-admin/admin.php?page=wpsbackup/wpsbackup.php1.835.94
Restore /wp-admin/admin.php?page=wps-backup-restore1.835.65

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
wps_backup_options

Browser metrics Passed 4 tests

An overview of browser requirements for WPSBackup
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,736 ▲9915.91 ▲0.328.66 ▼0.7447.77 ▼4.53
Dashboard /wp-admin2,987 ▲565.90 ▼0.25164.18 ▲11.61137.56 ▲33.92
Posts /wp-admin/edit.php2,790 ▲512.70 ▼0.0073.23 ▲10.3688.56 ▲6.41
Add New Post /wp-admin/post-new.php1,694 ▲19418.80 ▲0.05401.56 ▼86.10115.64 ▼9.93
Media Library /wp-admin/upload.php1,781 ▼265.03 ▼0.01138.44 ▼13.30136.23 ▲27.59
Jobs /wp-admin/admin.php?page=wps-backup-jobs1,1392.0653.7589.23
WPS Backup /wp-admin/admin.php?page=wpsbackup/wpsbackup.php1,1972.0653.3088.20
Restore /wp-admin/admin.php?page=wps-backup-restore1,1422.0554.3077.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/wpsbackup/wpsbackup.php+26
    Undefined index: vcti_a
  • Zombie WordPress options detected upon uninstall: 1 option
    • wps_backup_options

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
These errors were triggered by the plugin
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wps-backup-restore
    • > Notice in wp-content/plugins/wpsbackup/wpsbackup.php+234
    Undefined index: vcti_a
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wps-backup-restore
    • > Notice in wp-content/plugins/wpsbackup/wpsbackup.php+252
    Undefined index: vcti_b
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wps-backup-restore
    • > Notice in wp-content/plugins/wpsbackup/wpsbackup.php+216
    Undefined index: vcti_c
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wps-backup-restore
    • > Deprecated in wp-content/plugins/wpsbackup/wpsbackup.php+26
    strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpsbackup/uninstall.php

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: backup, protection, disaster, recovery, restore

wpsbackup/wpsbackup.php Passed 13 tests

The entry point to "WPSBackup" version 1.31 is a PHP file that has certain tags in its header comment area
10 characters long description:
WPS Backup

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
No dangerous file extensions were detected201 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25012201

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/icon1.png3.44KB0.40KB▼ 88.50%