83% backupbank-no-hassel-automated-backups

Code Review | BackupBank - No-Hassel WordPress BackUps

WordPress plugin BackupBank - No-Hassel WordPress BackUps scored83%from 54 tests.

About plugin

  • Plugin page: backupbank-no-has...
  • Plugin version: 1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2023
  • Latest release: Apr 26, 2023
  • Number of updates: 22
  • Update frequency: every 3.8 days
  • Top authors: brutebank (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼10.14ms] Passed 4 tests

An overview of server-side resources used by BackupBank - No-Hassel WordPress BackUps
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.78 ▼1.05
Dashboard /wp-admin3.42 ▲0.1148.73 ▼12.38
Posts /wp-admin/edit.php3.53 ▲0.1848.94 ▼12.41
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.56 ▼14.70
Media Library /wp-admin/upload.php3.34 ▲0.1139.08 ▲2.27

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 518 new files
Database: 1 new table, 7 new options
New tables
wp_backupbank_settings
New WordPress options
backupbank_db_version
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for BackupBank - No-Hassel WordPress BackUps
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲10713.63 ▼1.021.65 ▼0.0046.50 ▲1.71
Dashboard /wp-admin2,256 ▲685.87 ▲1.0098.01 ▼14.2438.93 ▼5.08
Posts /wp-admin/edit.php2,145 ▲562.02 ▲0.0340.43 ▲2.4336.22 ▲1.61
Add New Post /wp-admin/post-new.php1,546 ▲1723.25 ▲5.02620.49 ▼27.1556.27 ▲4.48
Media Library /wp-admin/upload.php1,444 ▲594.20 ▲0.0397.13 ▲1.5144.15 ▲0.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • backupbank_db_version
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 208× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'ParagonIE\\ConstantTime\\EncoderInterface' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/paragonie/constant_time_encoding/src/Base32.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\TwistedEdwards' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/Ed25519.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP160t1.php:32
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/backupbank-no-hassel-automated-backups/admin/settings.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS8' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/PKCS8.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\AsymmetricKey' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect163r2.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect409r1.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\secp256r1' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistp256.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\KoblitzPrime' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp224k1.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Configuration of plugin)
The official readme.txt might help

backupbank-no-hassel-automated-backups/backupbank.php 92% from 13 tests

The primary PHP file in "BackupBank - No-Hassel WordPress BackUps" version 1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("backupbank-no-hassel-automated-backups.php" instead of "backupbank.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin48,825 lines of code in 499 files:
LanguageFilesBlank linesComment linesLines of code
PHP4689,61230,30544,709
Markdown1541502,455
JSON11001,060
CSS17210537
SVG10022
JavaScript12220
XML10019
Bourne Shell1203

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.69
▷ Minimum class complexity1.00
▷ Maximum class complexity670.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity104.00
Code structure
Namespaces62
Interfaces20
Traits4
Classes438
▷ Abstract classes21448.86%
▷ Concrete classes22451.14%
▷ Final classes5022.32%
Methods2,332
▷ Static methods57924.83%
▷ Public methods1,79877.10%
▷ Protected methods25310.85%
▷ Private methods28112.05%
Functions62
▷ Named functions1524.19%
▷ Anonymous functions4775.81%
Constants500
▷ Global constants71.40%
▷ Class constants49398.60%
▷ Public constants48397.97%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin