73% backup-by-vogapress

Code Review | Backup by VOGA Press

WordPress plugin Backup by VOGA Press scored 73% from 54 tests.

About plugin

  • Plugin page: backup-by-vogapress
  • Plugin version: 0.5.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Jul 16, 2015
  • Latest release: Sep 24, 2016
  • Number of updates: 40
  • Update frequency: every 11.0 days
  • Top authors: vogapress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▼0.13MB] [CPU: ▼10.12ms] Passed 4 tests

This is a short check of server-side resources used by Backup by VOGA Press
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.96 ▼5.90
Dashboard /wp-admin3.24 ▼0.0732.50 ▼18.16
Posts /wp-admin/edit.php3.30 ▼0.0535.48 ▼9.97
Add New Post /wp-admin/post-new.php5.48 ▼0.4176.96 ▼6.45
Media Library /wp-admin/upload.php3.24 ▲0.0131.37 ▼0.52

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • Illegal file modification found: 1 file (0.97KB) outside of "wp-content/plugins/backup-by-vogapress/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables
backup_by_vogapress
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Backup by VOGA Press: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.20 ▼1.031.75 ▼0.3638.87 ▼9.29
Dashboard /wp-admin2,226 ▲415.78 ▲0.8997.16 ▼33.1537.08 ▼6.16
Posts /wp-admin/edit.php2,108 ▲191.98 ▼0.0337.28 ▼0.0834.48 ▲2.18
Add New Post /wp-admin/post-new.php1,560 ▲4118.58 ▼4.59616.27 ▼25.8057.72 ▲4.79
Media Library /wp-admin/upload.php1,408 ▲264.17 ▼0.0495.59 ▼48.9640.95 ▼16.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • backup_by_vogapress
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/backup-by-vogapress/pages/cloudflare.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === backup-by-vogapress === )
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

backup-by-vogapress/backup-by-vogapress.php 85% from 13 tests

This is the main PHP file of "Backup by VOGA Press" version 0.5.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)
  • Domain Path: The domain path folder was not found ("/lang/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,363 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP123386722,363

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity21.12
▷ Minimum class complexity1.00
▷ Maximum class complexity119.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes17
▷ Abstract classes423.53%
▷ Concrete classes1376.47%
▷ Final classes00.00%
Methods159
▷ Static methods2918.24%
▷ Public methods12981.13%
▷ Protected methods00.00%
▷ Private methods3018.87%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants30
▷ Global constants00.00%
▷ Class constants30100.00%
▷ Public constants30100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin