90% website-backups

Code Review | Ero Website Backups

WordPress plugin Ero Website Backups scored90%from 54 tests.

About plugin

  • Plugin page: website-backups
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 24, 2018
  • Latest release: Sep 3, 2018
  • Number of updates: 8
  • Update frequency: every 1.3 days
  • Top authors: khushwant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.62MB] [CPU: ▲2.62ms] Passed 4 tests

Server-side resources used by Ero Website Backups
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.6053.53 ▲11.65
Dashboard /wp-admin3.97 ▲0.6750.24 ▲0.62
Posts /wp-admin/edit.php4.03 ▲0.6753.48 ▲6.54
Add New Post /wp-admin/post-new.php6.51 ▲0.6289.68 ▼1.96
Media Library /wp-admin/upload.php3.83 ▲0.6039.29 ▲5.27

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Ero Website Backups
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲4113.26 ▼1.031.66 ▼0.4138.99 ▼5.41
Dashboard /wp-admin2,221 ▲364.85 ▼0.99108.51 ▼6.8238.87 ▼2.51
Posts /wp-admin/edit.php2,104 ▲152.04 ▲0.0441.84 ▲5.8735.71 ▼0.29
Add New Post /wp-admin/post-new.php1,543 ▲2423.35 ▲0.15660.64 ▼12.2862.19 ▼9.50
Media Library /wp-admin/upload.php1,394 ▲34.21 ▼0.0295.04 ▲0.1240.22 ▼2.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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: website backups, backup, wordpress, database, full

website-backups/website-backups.php Passed 13 tests

Analyzing the main PHP file in "Ero Website Backups" version 1.0
70 characters long description:
This is a plugin for downloading the website file and database backups

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
There were no executable files found in this plugin23,202 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript155,04115,63417,308
PHP91,0141,9783,507
CSS16721682,387

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity103.33
▷ Minimum class complexity2.00
▷ Maximum class complexity554.00
Average method complexity8.85
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods79
▷ Static methods11.27%
▷ Public methods7797.47%
▷ Protected methods00.00%
▷ Private methods22.53%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants62
▷ Global constants62100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/plugins/datatables/DataTables-1.10.18/images/sort_asc.png0.16KB0.25KB0.00%
assets/plugins/datatables/DataTables-1.10.18/images/sort_asc_disabled.png0.14KB0.25KB0.00%
assets/plugins/datatables/DataTables-1.10.18/images/sort_desc_disabled.png0.14KB0.25KB0.00%
assets/plugins/datatables/DataTables-1.10.18/images/sort_desc.png0.15KB0.25KB0.00%
assets/plugins/datatables/DataTables-1.10.18/images/sort_both.png0.20KB0.29KB0.00%