10% wp-easy-backup

Code Review | WP Easy Backup

WordPress plugin WP Easy Backup scored 10% from 54 tests.

About plugin

  • Plugin page: wp-easy-backup
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2012
  • Latest release: Feb 9, 2014
  • Number of updates: 33
  • Update frequency: every 22.4 days
  • Top authors: mrhunter26 (78.79%)jocke_gbg (24.24%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 16,219 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
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.

Server metrics [RAM: ▼1.76MB] [CPU: ▼50.59ms] Passed 4 tests

Analyzing server-side resources used by WP Easy Backup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.235.16 ▼37.91
Dashboard /wp-admin2.25 ▼1.067.39 ▼40.84
Posts /wp-admin/edit.php2.25 ▼1.117.36 ▼41.12
Add New Post /wp-admin/post-new.php2.25 ▼3.646.60 ▼82.47
Media Library /wp-admin/upload.php2.25 ▼0.987.22 ▼27.07
WP Easy Backup /wp-admin/tools.php?page=wp-easy-backup2.256.32

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Easy Backup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.85 ▲0.291.59 ▼0.1739.85 ▼5.14
Dashboard /wp-admin2,213 ▲255.90 ▲0.9895.70 ▼16.0841.56 ▲0.37
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0440.61 ▲5.3135.66 ▲1.36
Add New Post /wp-admin/post-new.php1,551 ▲3718.33 ▲0.85593.04 ▼103.5872.59 ▲21.40
Media Library /wp-admin/upload.php1,392 ▲14.22 ▲0.0496.18 ▼3.9840.48 ▼4.51
WP Easy Backup /wp-admin/tools.php?page=wp-easy-backup7752.0323.9325.70

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
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • 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
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wp-easy-backup
    • > User deprecated in wp-includes/functions.php+5737
    Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option 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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-easy-backup/wp-easy-backup.php:38
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-easy-backup/wp-easy-backup.php on line 37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-easy-backup === )
You can look at the official readme.txt

wp-easy-backup/wp-easy-backup.php Passed 13 tests

The main PHP script in "WP Easy Backup" version 1.0.3 is automatically included on every request by WordPress
85 characters long description:
Create a database dump and zip all your media, theme and plugin files with one click.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected391 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18953391

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity80.00
▷ Minimum class complexity80.00
▷ Maximum class complexity80.00
Average method complexity5.65
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin