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: 6.3.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,663 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install 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

Server metrics [RAM: ▼1.25MB] [CPU: ▼54.59ms] Passed 4 tests

This is a short check of server-side resources used by StorageMadeEasy Multi-Cloud WordPress Backup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.736.96 ▼45.73
Dashboard /wp-admin2.76 ▼0.557.88 ▼37.95
Posts /wp-admin/edit.php2.76 ▼0.609.53 ▼40.64
Add New Post /wp-admin/post-new.php2.76 ▼3.139.13 ▼94.04
Media Library /wp-admin/upload.php2.76 ▼0.479.68 ▼29.66
Cloud Backup /wp-admin/tools.php?page=wp-db-backup-storagemadeeasy2.767.91

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

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • The plugin 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, 9 new options
New WordPress options
widget_recent-comments
can_compress_scripts
storagemadeeasy_server
storagemadeeasy_username
storagemadeeasy_password
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for StorageMadeEasy Multi-Cloud WordPress Backup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.18 ▼1.431.54 ▼0.4340.86 ▼1.63
Dashboard /wp-admin2,207 ▲225.77 ▼0.0897.42 ▼5.2738.37 ▼6.87
Posts /wp-admin/edit.php2,090 ▲11.98 ▼0.0538.92 ▼2.0834.61 ▲0.34
Add New Post /wp-admin/post-new.php1,516 ▼16122.36 ▼2.33668.79 ▼14.1360.73 ▲11.44
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0196.68 ▼5.7642.42 ▼1.36
Cloud Backup /wp-admin/tools.php?page=wp-db-backup-storagemadeeasy1,0821.7223.5834.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended 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 detected upon uninstall: 9 options
    • storagemadeeasy_server
    • storagemadeeasy_username
    • storagemadeeasy_password
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > 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+5453
    Function 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 | 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 | This is just a short smoke test looking for browser issues
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
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

The main file in "StorageMadeEasy Multi-Cloud WordPress Backup" v. 2.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 297 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("storagemadeeasy-multicloud-files-backup.php" instead of "wp-db-backup-storagemadeeasy.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin9,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

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Method cyclomatic complexity has to 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

PNG files should be compressed to save space and 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%