68% zoneit-backup

Code Review | ZoneIT Backup

WordPress plugin ZoneIT Backup scored68%from 54 tests.

About plugin

  • Plugin page: zoneit-backup
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 22, 2022
  • Latest release: May 24, 2023
  • Number of updates: 9
  • Update frequency: every 21.7 days
  • Top authors: zoneit (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /359 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by ZoneIT Backup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.316.65 ▼35.53
Dashboard /wp-admin3.76 ▲0.4250.82 ▼8.96
Posts /wp-admin/edit.php3.81 ▲0.4649.69 ▲5.02
Add New Post /wp-admin/post-new.php6.29 ▲0.4084.87 ▼3.63
Media Library /wp-admin/upload.php3.62 ▲0.3944.33 ▲6.91
Cron Backup /wp-admin/admin.php?page=zoneit-cron-backup3.5935.59
Backup Services /wp-admin/admin.php?page=backup-services3.5738.97
Backups List /wp-admin/admin.php?page=zoneit-backups3.6042.09

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 47 new files
Database: 2 new tables, 7 new options
New tables
wp_zoneit_backups
wp_zoneit_backup_services
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
zoneit_backup_settings
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by ZoneIT Backup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7814.21 ▼0.151.63 ▼0.1641.75 ▼1.29
Dashboard /wp-admin2,248 ▲715.59 ▲0.0585.06 ▼17.3640.32 ▼2.84
Posts /wp-admin/edit.php2,157 ▲571.98 ▼0.0538.76 ▲3.1936.00 ▲3.14
Add New Post /wp-admin/post-new.php1,559 ▲3318.24 ▼4.86618.24 ▼5.4063.72 ▼2.48
Media Library /wp-admin/upload.php1,453 ▲504.23 ▲0.0295.02 ▼5.9943.89 ▲0.22
Cron Backup /wp-admin/admin.php?page=zoneit-cron-backup1,1591.7028.7423.82
Backup Services /wp-admin/admin.php?page=backup-services1,1041.7130.0630.02
Backups List /wp-admin/admin.php?page=zoneit-backups1,0711.9129.6828.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_zoneit_backup_services
    • wp_zoneit_backups
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • zoneit_backup_settings

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=backup-services
    • > Notice in wp-content/plugins/zoneit-backup/includes/services/class-backup-service-core.php+160
    Trying to access array offset on value of type int

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/zoneit-backup/includes/class-rest-api.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: wp backup, wpbackup, zoneit backup, local backup, db backup...

zoneit-backup/zoneit-backup.php 92% from 13 tests

The main PHP file in "ZoneIT Backup" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected6,410 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP301,0592,2525,264
Markdown31690644
JSON400208
JavaScript22327177
CSS204117

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity19.18
▷ Minimum class complexity1.00
▷ Maximum class complexity142.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes36
▷ Abstract classes411.11%
▷ Concrete classes3288.89%
▷ Final classes00.00%
Methods336
▷ Static methods9427.98%
▷ Public methods28384.23%
▷ Protected methods30.89%
▷ Private methods5014.88%
Functions9
▷ Named functions111.11%
▷ Anonymous functions888.89%
Constants22
▷ Global constants522.73%
▷ Class constants1777.27%
▷ Public constants952.94%

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
No PNG images were found in this plugin