84% pcloud-wp-backup

Code Review | pCloud WP Backup

WordPress plugin pCloud WP Backup scored84%from 54 tests.

About plugin

  • Plugin page: pcloud-wp-backup
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: May 25, 2022
  • Latest release: Sep 24, 2023
  • Number of updates: 6
  • Update frequency: every 82.3 days
  • Top authors: ploudapp (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

600+ active /4,179 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▲1.22ms] Passed 4 tests

An overview of server-side resources used by pCloud WP Backup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3543.51 ▲1.17
Dashboard /wp-admin3.53 ▲0.2248.78 ▼3.92
Posts /wp-admin/edit.php3.64 ▲0.2850.92 ▲4.71
Add New Post /wp-admin/post-new.php6.11 ▲0.22101.25 ▲7.81
Media Library /wp-admin/upload.php3.45 ▲0.2237.14 ▲2.90

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 22 new options
New WordPress options
wp2pcl_logs
wp2pcl_dbg_logs
wp2pcl_include_mysql
wp2pcl_auth_mail
wp2pcl_quota
theysaidso_admin_options
wp2pcl_schdata
wp2pcl_last_backupdt
wp2pcl_async_upd_item
wp2pcl_has_activity
...

Browser metrics Passed 4 tests

Checking browser requirements for pCloud WP Backup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲15914.07 ▼0.235.43 ▲3.5744.04 ▼3.81
Dashboard /wp-admin2,224 ▲365.86 ▼0.0495.36 ▼20.4075.41 ▲30.63
Posts /wp-admin/edit.php2,107 ▲152.01 ▲0.0138.35 ▲0.4333.85 ▲2.88
Add New Post /wp-admin/post-new.php1,535 ▲2121.15 ▲3.71734.74 ▲56.2654.19 ▼5.26
Media Library /wp-admin/upload.php1,394 ▲64.20 ▼0.0299.63 ▼6.2771.29 ▲27.39

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Interface 'Pcloud\\Classes\\ZipFile\\Model\\Extra\\ZipExtraField' not found in wp-content/plugins/pcloud-wp-backup/Pcloud/Classes/ZipFile/Model/Extra/Fields/class-winzipaesextrafield.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Pcloud\\Classes\\ZipFile\\Model\\ZipData' not found in wp-content/plugins/pcloud-wp-backup/Pcloud/Classes/ZipFile/Model/Data/class-zipfiledata.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Pcloud\\Classes\\ZipFile\\Model\\ZipData' not found in wp-content/plugins/pcloud-wp-backup/Pcloud/Classes/ZipFile/Model/Data/class-zipnewdata.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Pcloud\\Classes\\ZipFile\\Model\\ImmutableZipContainer' not found in wp-content/plugins/pcloud-wp-backup/Pcloud/Classes/ZipFile/Model/class-zipcontainer.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pcloud-wp-backup/pcloud-wp-backup.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Pcloud\\Classes\\wp2pcloudfuncs' not found in wp-content/plugins/pcloud-wp-backup/views/wp2pcl-config.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Pcloud\\Classes\\ZipFile\\Model\\Extra\\ZipExtraField' not found in wp-content/plugins/pcloud-wp-backup/Pcloud/Classes/ZipFile/Model/Extra/Fields/class-zip64extrafield.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Pcloud\\plugin_dir_path() in wp-content/plugins/pcloud-wp-backup/Pcloud/class-autoloader.php:81

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Here is a screenshot of the plugin in action) image required
Please take inspiration from this readme.txt

pcloud-wp-backup/pcloud-wp-backup.php Passed 13 tests

"pCloud WP Backup" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
pCloud WP Backup has been created to make instant backups of your blog and its data, regularly.

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 plugin6,367 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP371,4853,0104,851
JSON100868
JavaScript18062459
CSS1310189

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity18.57
▷ Minimum class complexity1.00
▷ Maximum class complexity137.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces10
Interfaces9
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes830.77%
Methods291
▷ Static methods3110.65%
▷ Public methods23079.04%
▷ Protected methods155.15%
▷ Private methods4615.81%
Functions16
▷ Named functions1381.25%
▷ Anonymous functions318.75%
Constants82
▷ Global constants2226.83%
▷ Class constants6073.17%
▷ Public constants60100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo_16.png1.79KB1.03KB▼ 42.45%
(invalid) assets/img/logo-pcloud.png1.16KB0.00KB▼ 100.00%
assets/img/zip.png1.17KB1.32KB0.00%