84% accu-auto-backup

Code Review | Accu Auto Backup

WordPress plugin Accu Auto Backup scored 84% 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: 5.9.2
  • 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,212 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼291.74ms] Passed 4 tests

A check of server-side resources used by Accu Auto Backup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1156.28 ▲1.86
Dashboard /wp-admin3.47 ▲0.0738.94 ▲5.84
Posts /wp-admin/edit.php3.70 ▲0.0639.19 ▲1.06
Add New Post /wp-admin/post-new.php7.00 ▲0.03105.74 ▼1,172.09
Media Library /wp-admin/upload.php3.41 ▲0.1226.74 ▲2.21
Accu Auto Backup /wp-admin/tools.php?page=accu_auto_backup3.3826.98

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 54 new files
Database: 1 new table, 4 new options
New tables
wp_accubackup
New WordPress options
accu_auto_backup_sc_auto_interval
accu_auto_backup_backup_method
accu_auto_backup_bkp_store_limit
accu_auto_backup_sc_auto_enabled

Browser metrics Passed 4 tests

A check of browser resources used by Accu Auto Backup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1415.81 ▲0.195.86 ▼0.162.54 ▲0.22
Dashboard /wp-admin2,897 ▲436.18 ▼0.01118.61 ▼23.96155.80 ▼7.20
Posts /wp-admin/edit.php2,696 ▲113.24 ▲0.0060.34 ▼6.22140.34 ▲3.94
Add New Post /wp-admin/post-new.php1,714 ▼3821.27 ▲0.29442.33 ▼18.70162.11 ▲6.73
Media Library /wp-admin/upload.php1,700 ▲25.49 ▼0.06150.76 ▲6.78183.93 ▼1.62
Accu Auto Backup /wp-admin/tools.php?page=accu_auto_backup1,2862.8459.75146.57

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
  • This plugin does not fully uninstall, leaving 4 options in the database
    • accu_auto_backup_bkp_store_limit
    • accu_auto_backup_sc_auto_interval
    • accu_auto_backup_backup_method
    • accu_auto_backup_sc_auto_enabled

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > 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=5.9.2 - 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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can take inspiration from this readme.txt

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

The main PHP file in "Accu Auto Backup" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous 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 plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for 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

All PNG images should be compressed to minimize bandwidth usage for end users
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%
accu-auto-backup-logo.png5.57KB3.61KB▼ 35.18%
trunk/admin/images/sort_both.png0.20KB0.29KB0.00%
trunk/admin/images/sort_asc.png0.15KB0.25KB0.00%
admin/images/sort_desc.png0.15KB0.25KB0.00%