74% site-backup

Code Review | Site Backup

WordPress plugin Site Backup scored 74% from 54 tests.

About plugin

  • Plugin page: site-backup
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Mar 14, 2017
  • Latest release: Mar 18, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: aihimel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 967 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.94MB] [CPU: ▼35.94ms] Passed 4 tests

Analyzing server-side resources used by Site Backup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.70 ▼4.20
Dashboard /wp-admin3.01 ▼0.3026.52 ▼26.78
Posts /wp-admin/edit.php3.01 ▼0.3527.81 ▼28.60
Add New Post /wp-admin/post-new.php3.01 ▼2.8830.52 ▼62.63
Media Library /wp-admin/upload.php3.01 ▼0.2225.55 ▼25.76
Backup /wp-admin/admin.php?page=gb-site-backup3.0126.01
Settings /wp-admin/admin.php?page=gb-site-backup-settings3.0127.45

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
gb_site-backup
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Site Backup: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲1613.20 ▼1.561.79 ▼0.4144.12 ▲1.03
Dashboard /wp-admin2,236 ▲334.86 ▼0.98110.59 ▼3.6342.19 ▲2.68
Posts /wp-admin/edit.php2,116 ▲242.06 ▲0.0242.55 ▲1.3736.40 ▲1.09
Add New Post /wp-admin/post-new.php1,564 ▲4518.37 ▼4.70605.09 ▼49.0658.48 ▼1.77
Media Library /wp-admin/upload.php1,415 ▲274.18 ▼0.10107.10 ▼0.9160.41 ▲15.31
Backup /wp-admin/admin.php?page=gb-site-backup9792.1831.0167.72
Settings /wp-admin/admin.php?page=gb-site-backup-settings1,4042.1929.9786.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/site-backup/site-backup.php+270
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • gb_site-backup
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gb-site-backup-settings
    • > Deprecated in wp-content/plugins/site-backup/site-backup.php+280
    Function create_function() is deprecated

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: backup, schedule, wordpress backup, files backup, wp backup...

site-backup/site-backup.php Passed 13 tests

The entry point to "Site Backup" version 1.0.0 is a PHP file that has certain tags in its header comment area
104 characters long description:
Backup and restore your site in one click. Schedule automatic backup of your site. No worries anymore!!!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected804 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP8151275429
SVG100288
JavaScript2213479
CSS41116
Markdown1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1083.33%
▷ Protected methods216.67%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin