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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 43.51 ▲1.17 |
Dashboard /wp-admin | 3.53 ▲0.22 | 48.78 ▼3.92 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 50.92 ▲4.71 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 101.25 ▲7.81 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲159 | 14.07 ▼0.23 | 5.43 ▲3.57 | 44.04 ▼3.81 |
Dashboard /wp-admin | 2,224 ▲36 | 5.86 ▼0.04 | 95.36 ▼20.40 | 75.41 ▲30.63 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.01 ▲0.01 | 38.35 ▲0.43 | 33.85 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 21.15 ▲3.71 | 734.74 ▲56.26 | 54.19 ▼5.26 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.20 ▼0.02 | 99.63 ▼6.27 | 71.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 1,485 | 3,010 | 4,851 |
JSON | 1 | 0 | 0 | 868 |
JavaScript | 1 | 80 | 62 | 459 |
CSS | 1 | 31 | 0 | 189 |
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 code | 0.39 |
Average class complexity | 18.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 8 | 30.77% |
Methods | 291 | |
▷ Static methods | 31 | 10.65% |
▷ Public methods | 230 | 79.04% |
▷ Protected methods | 15 | 5.15% |
▷ Private methods | 46 | 15.81% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
Constants | 82 | |
▷ Global constants | 22 | 26.83% |
▷ Class constants | 60 | 73.17% |
▷ Public constants | 60 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo_16.png | 1.79KB | 1.03KB | ▼ 42.45% |
(invalid) assets/img/logo-pcloud.png | 1.16KB | 0.00KB | ▼ 100.00% |
assets/img/zip.png | 1.17KB | 1.32KB | 0.00% |