73% backup2email

Code Review | Backup2Email

WordPress plugin Backup2Email scored73%from 54 tests.

About plugin

  • Plugin page: backup2email
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2012
  • Latest release: Oct 29, 2012
  • Number of updates: 4
  • Update frequency: every 2.5 days
  • Top authors: gigorok (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,829 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.85ms] Passed 4 tests

A check of server-side resources used by Backup2Email
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.07 ▼0.44
Dashboard /wp-admin3.35 ▲0.0449.66 ▼3.50
Posts /wp-admin/edit.php3.40 ▲0.0443.35 ▼3.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.83 ▼3.92
Media Library /wp-admin/upload.php3.27 ▲0.0435.73 ▲1.83

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

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

Browser metrics Passed 4 tests

Backup2Email: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.74 ▲0.351.87 ▲0.1044.02 ▼6.39
Dashboard /wp-admin2,207 ▲195.89 ▲0.99109.77 ▼5.4242.06 ▼6.14
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0233.46 ▼2.6033.72 ▼0.58
Add New Post /wp-admin/post-new.php1,537 ▲123.13 ▲0.02660.96 ▼21.9052.84 ▼9.96
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0199.52 ▼5.9144.69 ▼1.59
Setup Backup2Email /wp-admin/backup2email.php260.440.0913.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/backup2email/settings_template.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/backup2email/backup2email.php:30

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/backup2email.php
    • > Network (severe)
    wp-admin/backup2email.php - Failed to load resource: the server responded with a status of 404 (Not Found)

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
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

backup2email/backup2email.php Passed 13 tests

The main file in "Backup2Email" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
This plugin make backups for your blog. Include files and database.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected261 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34524260
HTML1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin