80% advanced-backwpup-s3-destinations

Code Review | Advanced S3 Destinations for BackWPup

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

About plugin

  • Plugin page: advanced-backwpup...
  • Plugin version: 2.0.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 4, 2019
  • Latest release: Sep 2, 2023
  • Number of updates: 16
  • Update frequency: every 93.1 days
  • Top authors: noplanman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,115 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.27ms] Passed 4 tests

Server-side resources used by Advanced S3 Destinations for BackWPup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.76 ▼6.30
Dashboard /wp-admin3.31 ▲0.0045.81 ▼7.85
Posts /wp-admin/edit.php3.36 ▲0.0046.98 ▲0.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.60 ▼3.58
Media Library /wp-admin/upload.php3.23 ▲0.0036.75 ▲1.73

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced S3 Destinations for BackWPup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.121.55 ▼0.4936.60 ▼8.14
Dashboard /wp-admin2,206 ▲575.90 ▲0.27105.75 ▼2.6940.14 ▼6.09
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.95 ▲3.1734.60 ▼0.28
Add New Post /wp-admin/post-new.php1,514 ▼2817.64 ▼0.68660.61 ▲46.3053.57 ▲8.01
Media Library /wp-admin/upload.php1,388 ▼34.30 ▲0.10104.33 ▲9.1346.06 ▲3.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 4 files (0.03MB) in the plugin directory
    • (new file) readme.txt
    • (new file) advanced-backwpup-s3-destinations.php
    • (new file) uninstall.php
    • (new file) LICENSE
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: backup, backwpup, storage, destination, s3

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

The primary PHP file in "Advanced S3 Destinations for BackWPup" version 2.0.0 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 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin185 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23665185

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for 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%
Functions9
▷ Named functions333.33%
▷ Anonymous functions666.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin