89% fbc-latest-backup-for-updraftplus

Code Review | FBC Latest Backup for UpdraftPlus

WordPress plugin FBC Latest Backup for UpdraftPlus scored89%from 54 tests.

About plugin

  • Plugin page: fbc-latest-backup...
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 6.3.1
  • First release: Mar 12, 2021
  • Latest release: Feb 20, 2022
  • Number of updates: 12
  • Update frequency: every 29.0 days
  • Top authors: ludossin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /784 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.39ms] Passed 4 tests

Analyzing server-side resources used by FBC Latest Backup for UpdraftPlus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.53 ▲2.25
Dashboard /wp-admin3.33 ▲0.0343.66 ▼6.19
Posts /wp-admin/edit.php3.38 ▲0.0244.84 ▼1.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.54 ▼6.62
Media Library /wp-admin/upload.php3.25 ▲0.0232.84 ▼3.03

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for FBC Latest Backup for UpdraftPlus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲12513.35 ▼0.974.67 ▲3.0540.52 ▲0.58
Dashboard /wp-admin2,238 ▲505.88 ▲0.97106.27 ▼6.1439.95 ▼3.79
Posts /wp-admin/edit.php2,094 ▲52.06 ▲0.0743.46 ▲3.4039.81 ▲3.64
Add New Post /wp-admin/post-new.php1,516 ▼2017.42 ▼5.78664.61 ▲64.4544.07 ▼6.91
Media Library /wp-admin/upload.php1,387 ▲24.17 ▲0.0098.91 ▼2.3144.02 ▼3.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: updraftplus, log, backup

fbc-latest-backup-for-updraftplus/fbc-latest-backup.php 77% from 13 tests

The primary PHP file in "FBC Latest Backup for UpdraftPlus" version 1.1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fbc-latest-backup-for-updraftplus.php" instead of "fbc-latest-backup.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 307 characters long)

Code Analysis Passed 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 detected255 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP42425150
PO File2222274
CSS10031

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected