90% wpbackupessentials

Code Review | WPBackupEssentials

WordPress plugin WPBackupEssentials scored90%from 54 tests.

About plugin

  • Plugin page: wpbackupessentials
  • Plugin version: 16.6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2016
  • Latest release: Jun 5, 2016
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: risharde (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /915 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.89ms] Passed 4 tests

Analyzing server-side resources used by WPBackupEssentials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.68 ▲0.09
Dashboard /wp-admin3.31 ▼0.0344.68 ▼16.42
Posts /wp-admin/edit.php3.36 ▲0.0149.50 ▲3.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.21 ▼14.24
Media Library /wp-admin/upload.php3.23 ▲0.0137.80 ▲5.83

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WPBackupEssentials
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6714.74 ▲0.361.85 ▲0.1841.09 ▲0.27
Dashboard /wp-admin2,222 ▲315.88 ▲1.00100.29 ▼8.3381.12 ▲36.96
Posts /wp-admin/edit.php2,105 ▲131.99 ▼0.0340.23 ▼2.1834.86 ▼3.61
Add New Post /wp-admin/post-new.php1,531 ▼223.17 ▼0.01672.20 ▲63.1561.21 ▲10.92
Media Library /wp-admin/upload.php1,398 ▲134.21 ▼0.03104.50 ▲2.4049.29 ▲7.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: copy, backups, migrate, restore, plugin...

wpbackupessentials/wpbackupessentials.php Passed 13 tests

The principal PHP file in "WPBackupEssentials" v. 16.6.4 is loaded by WordPress automatically on each request
96 characters long description:
WP Backup Essentials is all you'll need to backup your Wordpress website quickly and painlessly!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin609 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1311970518
CSS117091

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/destinations-128px.png11.56KB3.36KB▼ 70.94%
icons/home-128px.png13.81KB4.76KB▼ 65.53%
icons/migrate-128px.png7.92KB3.13KB▼ 60.49%
icons/icon24.png2.65KB1.36KB▼ 48.73%
icons/restore-128px.png8.15KB3.32KB▼ 59.27%