10% backuppressgenius

Code Review | BackupPress GENIUS

WordPress plugin BackupPress GENIUS scored10%from 54 tests.

About plugin

  • Plugin page: backuppressgenius
  • Plugin version: 0.96
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 14, 2015
  • Latest release: May 23, 2016
  • Number of updates: 25
  • Update frequency: every 47.0 days
  • Top authors: laempe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,226 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/backuppressgenius/PHPSecLib/Crypt/Base.php+121
    Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_Base has a deprecated constructor

Server metrics [RAM: ▼1.15MB] [CPU: ▼54.04ms] Passed 4 tests

Server-side resources used by BackupPress GENIUS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.639.30 ▼32.17
Dashboard /wp-admin2.85 ▼0.4511.15 ▼46.72
Posts /wp-admin/edit.php2.85 ▼0.509.21 ▼44.94
Add New Post /wp-admin/post-new.php2.85 ▼3.039.45 ▼92.33
Media Library /wp-admin/upload.php2.85 ▼0.3810.87 ▼26.93
BackupPress GENIUS /wp-admin/options-general.php?page=bpg_plugin_options2.859.17

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BackupPress GENIUS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.67 ▲0.121.98 ▲0.2443.01 ▼1.57
Dashboard /wp-admin2,204 ▲305.61 ▲0.0391.55 ▼1.8832.69 ▼7.34
Posts /wp-admin/edit.php2,106 ▲61.96 ▼0.0534.09 ▼2.4930.01 ▼6.28
Add New Post /wp-admin/post-new.php1,533 ▲423.22 ▲0.20629.45 ▼104.4466.53 ▲12.72
Media Library /wp-admin/upload.php1,406 ▲64.21 ▲0.02105.54 ▼0.6641.01 ▼4.20
BackupPress GENIUS /wp-admin/options-general.php?page=bpg_plugin_options8921.9924.7628.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/backuppressgenius/PHPSecLib/Crypt/Base.php+121
    Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_Base has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=bpg_plugin_options
    • > Deprecated in wp-content/plugins/backuppressgenius/PHPSecLib/Crypt/Base.php+121
    Methods with the same name as their class will not be constructors in a future version of PHP; Crypt_Base has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=bpg_plugin_options
    • > Deprecated in wp-content/plugins/backuppressgenius/BackuppressGenius.php+1031
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=bpg_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=bpg_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/backuppressgenius/BackuppressGenius.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 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
6 plugin tags: datensicherheit, backup, rcksicherung, sicherung, datensicherung...

backuppressgenius/BackuppressGenius.php 85% from 13 tests

This is the main PHP file of "BackupPress GENIUS" version 0.96, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("backuppressgenius.php" instead of "BackuppressGenius.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected18,623 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP243,42712,03818,584
CSS11039

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 168)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity130.46
▷ Minimum class complexity1.00
▷ Maximum class complexity549.00
Average method complexity6.53
▷ Minimum method complexity1.00
▷ Maximum method complexity168.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods562
▷ Static methods10.18%
▷ Public methods562100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants232
▷ Global constants232100.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
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
PlugInTitelV1.png4.34KB2.18KB▼ 49.88%