90% advanced-backwpup-s3-destinations

Code Review | Advanced S3 Destinations for BackWPup

WordPress plugin Advanced S3 Destinations for BackWPup scored 90% from 54 tests.

About plugin

  • Plugin page: advanced-backwpup...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.3.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6.1
  • WordPress version: 5.9.2
  • First release: Aug 4, 2019
  • Latest release: Feb 18, 2021
  • Number of updates: 13
  • Update frequency: every 43.4 days
  • Top authors: noplanman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,196 total downloads

Benchmarks

Plugin footprint 83% 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.02MB] [CPU: ▼295.70ms] Passed 4 tests

A check of server-side resources used by Advanced S3 Destinations for BackWPup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0156.11 ▲6.51
Dashboard /wp-admin3.41 ▲0.0032.57 ▼0.21
Posts /wp-admin/edit.php3.64 ▲0.0039.94 ▲3.86
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.99 ▼1,181.60
Media Library /wp-admin/upload.php3.29 ▼0.0125.45 ▼4.83

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced S3 Destinations for BackWPup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.79 ▲0.156.95 ▲0.452.93 ▲0.56
Dashboard /wp-admin2,895 ▲346.16 ▲0.01118.24 ▼22.56157.20 ▼1.66
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0164.62 ▲0.20140.54 ▲1.72
Add New Post /wp-admin/post-new.php1,711 ▲5020.84 ▲4.09443.08 ▲31.23160.14 ▲3.89
Media Library /wp-admin/upload.php1,698 ▲35.51 ▼0.00142.54 ▼13.15191.64 ▼7.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Incomplete uninstall procedure, leaving 4 files (0.03MB) in the plugin directory
    • (new file) advanced-backwpup-s3-destinations.php
    • (new file) readme.txt
    • (new file) LICENSE
    • (new file) uninstall.php

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: backwpup, backup, destination, s3, storage

advanced-backwpup-s3-destinations/advanced-backwpup-s3-destinations.php Passed 13 tests

The primary PHP file in "Advanced S3 Destinations for BackWPup" version 1.1.2 is used by WordPress to initiate all plugin functionality
47 characters long description:
Easily add custom S3 destinations for BackWPup.

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 plugin175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23564175

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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
Namespaces1
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%
Functions8
▷ Named functions337.50%
▷ Anonymous functions562.50%
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
No PNG images were found in this plugin