10% storagemadeeasy-multicloud-files-backup

Code Review | StorageMadeEasy Multi-Cloud WordPress Backup

WordPress plugin StorageMadeEasy Multi-Cloud WordPress Backup scored 10% from 54 tests.

About plugin

  • Plugin page: storagemadeeasy-m...
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.1.1
  • WordPress version: 5.8.1
  • First release: Jan 7, 2015
  • Latest release: Mar 2, 2015
  • Number of updates: 11
  • Update frequency: every 4.9 days
  • Top authors: storagemadeeasy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,452 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/storagemadeeasy-multicloud-files-backup/wp-db-backup-storagemadeeasy.php+50
    Methods with the same name as their class will not be constructors in a future version of PHP; wpdbBackup_StorageMadeEasy has a deprecated constructor

Server metrics [RAM: ▼1.18MB] [CPU: ▼184.66ms] Passed 4 tests

Analyzing server-side resources used by StorageMadeEasy Multi-Cloud WordPress Backup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.45 ▼0.396.40 ▼18.26
Dashboard /wp-admin2.47 ▼0.595.38 ▼37.62
Posts /wp-admin/edit.php2.47 ▼0.644.72 ▼31.24
Add New Post /wp-admin/post-new.php2.47 ▼2.975.35 ▼651.52
Media Library /wp-admin/upload.php2.47 ▼0.536.49 ▼16.87
Cloud Backup /wp-admin/tools.php?page=wp-db-backup-storagemadeeasy2.475.74

Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/storagemadeeasy-multicloud-files-backup/" and "wp-content/uploads/"
    • (new file) wp-content/backup-e4bd2/index.php
Filesystem: 37 new files
Database: no new tables, 3 new options
New WordPress options
storagemadeeasy_server
storagemadeeasy_password
storagemadeeasy_username

Browser metrics Passed 4 tests

StorageMadeEasy Multi-Cloud WordPress Backup: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,671 ▲7015.57 ▼0.206.15 ▲0.3975.65 ▲2.10
Dashboard /wp-admin2,935 ▲396.08 ▼0.10113.19 ▼17.44165.72 ▼7.00
Posts /wp-admin/edit.php2,745 ▲83.23 ▼0.0063.97 ▲3.38129.91 ▼14.76
Add New Post /wp-admin/post-new.php3,739 ▲3518.68 ▲0.88426.75 ▲6.76161.60 ▼14.21
Media Library /wp-admin/upload.php1,757 ▲85.54 ▲0.06139.34 ▼2.16183.03 ▲0.98
Cloud Backup /wp-admin/tools.php?page=wp-db-backup-storagemadeeasy1,4692.4254.54153.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/storagemadeeasy-multicloud-files-backup/wp-db-backup-storagemadeeasy.php+50
    Methods with the same name as their class will not be constructors in a future version of PHP; wpdbBackup_StorageMadeEasy has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 3 options
    • storagemadeeasy_username
    • storagemadeeasy_password
    • storagemadeeasy_server

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=wp-db-backup-storagemadeeasy
    • > Deprecated in wp-content/plugins/storagemadeeasy-multicloud-files-backup/wp-db-backup-storagemadeeasy.php+50
    Methods with the same name as their class will not be constructors in a future version of PHP; wpdbBackup_StorageMadeEasy has a deprecated constructor
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wp-db-backup-storagemadeeasy
    • > Deprecated in wp-content/plugins/storagemadeeasy-multicloud-files-backup/wp-db-backup-storagemadeeasy.php+1838
    Function create_function() is deprecated
    • > GET request to /wp-admin/tools.php?page=wp-db-backup-storagemadeeasy
    • > User deprecated in wp-includes/functions.php+5211
    add_contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab() instead.

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/storagemadeeasy-multicloud-files-backup/lib.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/storagemadeeasy-multicloud-files-backup/wp-db-backup-storagemadeeasy.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

storagemadeeasy-multicloud-files-backup/wp-db-backup-storagemadeeasy.php 85% from 13 tests

This is the main PHP file of "StorageMadeEasy Multi-Cloud WordPress Backup" version 2.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("storagemadeeasy-multicloud-files-backup.php" instead of "wp-db-backup-storagemadeeasy.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 297 characters long)

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected9,842 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP51,2452,0986,610
PO File151,2641,5213,232

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 122)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity368.50
▷ Minimum class complexity12.00
▷ Maximum class complexity580.00
Average method complexity12.40
▷ Minimum method complexity1.00
▷ Maximum method complexity122.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods129
▷ Static methods00.00%
▷ Public methods129100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants70
▷ Global constants70100.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
selectButton.png0.58KB0.20KB▼ 64.97%