78% easybackup

Code Review | EasyBackup

WordPress plugin EasyBackup scored78%from 54 tests.

About plugin

  • Plugin page: easybackup
  • Plugin version: 1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4
  • WordPress version: 6.3.1
  • First release: Apr 22, 2020
  • Latest release: May 7, 2020
  • Number of updates: 24
  • Update frequency: every 0.7 days
  • Top authors: emorales15b (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /661 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.10ms] Passed 4 tests

Server-side resources used by EasyBackup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.52 ▼3.43
Dashboard /wp-admin3.34 ▲0.0444.66 ▼5.04
Posts /wp-admin/edit.php3.39 ▲0.0344.45 ▼3.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.90 ▼0.70
Media Library /wp-admin/upload.php3.26 ▲0.0341.15 ▲6.12
EasyBackup /wp-admin/admin.php?page=easybackup3.2330.12
Credits /wp-admin/admin.php?page=easybackup-credits3.2330.04

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

EasyBackup: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.22 ▼1.051.62 ▼0.1543.56 ▲0.06
Dashboard /wp-admin2,235 ▲474.93 ▼0.9795.53 ▼17.4074.96 ▲31.78
Posts /wp-admin/edit.php2,115 ▲262.01 ▼0.0538.44 ▲3.2733.43 ▼0.62
Add New Post /wp-admin/post-new.php1,699 ▲16724.60 ▲1.51681.82 ▲11.7458.14 ▲1.32
Media Library /wp-admin/upload.php1,414 ▲294.10 ▼0.09103.73 ▲2.4691.02 ▲47.39
EasyBackup /wp-admin/admin.php?page=easybackup9521.9430.9635.84
Credits /wp-admin/admin.php?page=easybackup-credits8402.0124.0938.33

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easybackup/admin/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easybackup/admin/includes/ajax/ajax.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easybackup/admin/includes/ajax/ajax.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/easybackup/admin/includes/dashboard.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/easybackup/admin/includes/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/easybackup/admin/includes/credits.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=easybackup
    • > Network (severe)
    https://www.paypalobjects.com/en_MX/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Please a description for screenshot #0 in easybackup/assets to your readme.txt
  • Tags: There are too many tags (20 tag instead of maximum 10)
Please take inspiration from this readme.txt

easybackup/easybackup.php 92% from 13 tests

The main PHP file in "EasyBackup" ver. 1.9 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin693 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP615532352
CSS3844300
JavaScript215040
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/includes/images/how_2.png2.41KB1.60KB▼ 33.69%
admin/includes/images/how_1.png2.11KB1.44KB▼ 31.84%
admin/includes/images/icon_bck.png0.40KB0.33KB▼ 18.73%
admin/includes/images/logoeb1.png52.61KB18.48KB▼ 64.87%
admin/includes/images/logoeb.png2.89KB1.46KB▼ 49.51%