84% techopialabs-backups

Code Review | One Click Complete Backups By Maida Themes

WordPress plugin One Click Complete Backups By Maida Themes scored84%from 54 tests.

About plugin

  • Plugin page: techopialabs-backups
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Sep 17, 2019
  • Latest release: Jan 1, 2022
  • Number of updates: 25
  • Update frequency: every 52.4 days
  • Top authors: adnanhyder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /979 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by One Click Complete Backups By Maida Themes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.00 ▼4.16
Dashboard /wp-admin3.34 ▲0.0349.94 ▼2.61
Posts /wp-admin/edit.php3.39 ▲0.0350.62 ▲2.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.52 ▼18.95
Media Library /wp-admin/upload.php3.26 ▲0.0338.15 ▲0.94
ONE CLICK Backups /wp-admin/admin.php?page=oneclickcompletebackups3.2330.86
ONE CLICK Restore /wp-admin/admin.php?page=sub-page3.2333.58

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by One Click Complete Backups By Maida Themes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.32 ▲0.061.78 ▼0.2145.49 ▼2.05
Dashboard /wp-admin2,215 ▲415.66 ▼0.0187.56 ▼12.5240.13 ▼5.46
Posts /wp-admin/edit.php2,123 ▲231.98 ▲0.0433.39 ▼3.0934.74 ▼8.12
Add New Post /wp-admin/post-new.php1,423 ▼10317.71 ▼5.46545.17 ▼133.4254.01 ▲1.68
Media Library /wp-admin/upload.php1,420 ▲234.18 ▼0.0694.73 ▼8.5947.88 ▲6.83
ONE CLICK Backups /wp-admin/admin.php?page=oneclickcompletebackups8502.0426.4341.70
ONE CLICK Restore /wp-admin/admin.php?page=sub-page7912.0022.6322.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/techopialabs-backups/restoreform.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/techopialabs-backups/backupform.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/techopialabs-backups/one-click-complete-backups.php:132

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
4 plugin tags: wordpress backup click, 12345adnan backups, maida backups, one click backups

techopialabs-backups/one-click-complete-backups.php 92% from 13 tests

The main PHP file in "One Click Complete Backups By Maida Themes" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("techopialabs-backups.php" instead of "one-click-complete-backups.php")

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
There were no executable files found in this plugin487 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP311960487

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity4.50
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods150.00%
▷ Protected methods00.00%
▷ Private methods150.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin