10% backwp

Code Review | Backwp

WordPress plugin Backwp scored10%from 54 tests.

About plugin

  • Plugin page: backwp
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: May 23, 2013
  • Latest release: Jul 10, 2013
  • Number of updates: 7
  • Update frequency: every 200.6 days
  • Top authors: darell (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /11,462 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/backwp/backwp.php+72
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.01ms] Passed 4 tests

A check of server-side resources used by Backwp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.34 ▼32.57
Dashboard /wp-admin2.05 ▼1.256.11 ▼46.24
Posts /wp-admin/edit.php2.05 ▼1.315.80 ▼43.78
Add New Post /wp-admin/post-new.php2.05 ▼3.845.32 ▼97.45
Media Library /wp-admin/upload.php2.05 ▼1.186.96 ▼31.91
Archives /wp-admin/admin.php?page=backwp-archives2.055.60
Backup /wp-admin/admin.php?page=backwp2.056.90
Premium Extensions /wp-admin/admin.php?page=backwp-premium-extensions2.055.23

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Backwp
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.31 ▼0.041.71 ▼0.0644.63 ▲1.18
Dashboard /wp-admin2,224 ▲445.51 ▼0.1687.87 ▼7.4638.27 ▼2.22
Posts /wp-admin/edit.php2,190 ▲934.81 ▲2.8256.26 ▲19.0233.45 ▼1.69
Add New Post /wp-admin/post-new.php1,577 ▲4923.33 ▲0.25643.33 ▼53.1936.12 ▼22.76
Media Library /wp-admin/upload.php1,480 ▲836.60 ▲2.41108.98 ▲8.0444.69 ▼2.55
Archives /wp-admin/admin.php?page=backwp-archives1,1044.4641.7351.68
Backup /wp-admin/admin.php?page=backwp1,0374.5853.8545.57
Premium Extensions /wp-admin/admin.php?page=backwp-premium-extensions1,0164.7342.8338.76

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
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/backwp/backwp.php+72
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • backwp_opts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=backwp-premium-extensions
    • > Deprecated in wp-content/plugins/backwp/backwp.php+72
    Function create_function() is deprecated
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=backwp-premium-extensions
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/backwp/index.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=backwp-archives
    • > Warning in wp-content/plugins/backwp/includes/backwp_list_table.php+306
    opendir(wp-content/uploads/backwp_backups/): failed to open dir: No such file or directory

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 take a closer look at the following
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/backwp/backwp.php:18
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/backwp/includes/backwp_list_table.php on line 8

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 88% 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 need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === backwp === )
  • Screenshots: Please add images for these screenshots: #1 (Backup Selection), #2 (Backup Monitor), #3 (Backup Archives)
You can take inspiration from this readme.txt

backwp/backwp.php Passed 13 tests

The principal PHP file in "Backwp" v. 2.0.2 is loaded by WordPress automatically on each request
47 characters long description:
Backup your wordpress site files and databases.

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
There were no executable files found in this plugin3,669 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP101,0102,7283,542
CSS18993
JavaScript18534

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity106.00
▷ Minimum class complexity2.00
▷ Maximum class complexity491.00
Average method complexity7.79
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods77
▷ Static methods11.30%
▷ Public methods77100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants59
▷ Global constants59100.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
15 PNG files occupy 0.46MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/document-lined-pen.png1.04KB0.80KB▼ 22.89%
includes/images/backup_sprite.png13.58KB4.10KB▼ 69.83%
screenshot-2.png218.41KB86.57KB▼ 60.36%
includes/images/backwp-menu.png4.22KB1.36KB▼ 67.75%
includes/images/icons32.png14.31KB7.24KB▼ 49.36%