84% accu-auto-backup

Code Review | Accu Auto Backup

WordPress plugin Accu Auto Backup scored84%from 54 tests.

About plugin

  • Plugin page: accu-auto-backup
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 14, 2018
  • Latest release: Feb 10, 2022
  • Number of updates: 18
  • Update frequency: every 80.9 days
  • Top authors: dhanashreeinc (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /7,914 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼1.87ms] Passed 4 tests

Server-side resources used by Accu Auto Backup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2840.54 ▼1.73
Dashboard /wp-admin3.64 ▲0.3346.10 ▼0.89
Posts /wp-admin/edit.php3.69 ▲0.3352.75 ▲5.95
Add New Post /wp-admin/post-new.php6.16 ▲0.2784.73 ▼4.79
Media Library /wp-admin/upload.php3.50 ▲0.2738.19 ▼0.06
Accu Auto Backup /wp-admin/tools.php?page=accu_auto_backup3.4832.37

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 54 new files
Database: 1 new table, 10 new options
New tables
wp_accubackup
New WordPress options
accu_auto_backup_sc_auto_enabled
can_compress_scripts
widget_theysaidso_widget
accu_auto_backup_sc_auto_interval
accu_auto_backup_backup_method
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
accu_auto_backup_bkp_store_limit

Browser metrics Passed 4 tests

An overview of browser requirements for Accu Auto Backup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.49 ▲0.481.66 ▼0.0838.18 ▼2.53
Dashboard /wp-admin2,210 ▲224.85 ▼0.96113.41 ▼1.8041.59 ▼2.19
Posts /wp-admin/edit.php2,093 ▲72.03 ▲0.0236.18 ▼1.9434.63 ▲1.67
Add New Post /wp-admin/post-new.php1,536 ▲1723.19 ▲0.16687.44 ▲69.9759.94 ▲9.81
Media Library /wp-admin/upload.php1,395 ▲134.22 ▼0.0795.86 ▼5.4640.75 ▼4.03
Accu Auto Backup /wp-admin/tools.php?page=accu_auto_backup1,0312.0934.3233.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 10 options
    • accu_auto_backup_bkp_store_limit
    • db_upgraded
    • accu_auto_backup_sc_auto_interval
    • accu_auto_backup_sc_auto_enabled
    • accu_auto_backup_backup_method
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 fix the following browser errors
    • > GET request to /wp-admin/tools.php?page=accu_auto_backup
    • > Network (severe)
    wp-content/plugins/accu-auto-backup/admin//css/jquery.dataTables.min.css?ver=6.3.1 - 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

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:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

accu-auto-backup/accu-auto-backup.php Passed 13 tests

This is the main PHP file of "Accu Auto Backup" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
92 characters long description:
Accu auto backup plugin takes WordPress database backup automatically with defined schedule.

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
There were no executable files found in this plugin1,860 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP113041,1801,304
SVG100229
JavaScript21763196
CSS2304131

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity26.25
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods150
▷ Static methods64.00%
▷ Public methods14294.67%
▷ Protected methods00.00%
▷ Private methods85.33%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
8 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/accu-auto-backup-logo.png5.57KB3.61KB▼ 35.18%
trunk/admin/images/sort_desc.png0.15KB0.25KB0.00%
trunk/admin/images/sort_asc.png0.15KB0.25KB0.00%
admin/images/sort_both.png0.20KB0.29KB0.00%
trunk/admin/images/sort_both.png0.20KB0.29KB0.00%