Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼147.60ms] Passed 4 tests
Analyzing server-side resources used by pCloud Backup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 37.76 ▼0.92 |
Dashboard /wp-admin | 3.14 ▲0.09 | 48.52 ▼3.92 |
Posts /wp-admin/edit.php | 3.19 ▲0.09 | 49.48 ▲2.14 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 100.94 ▼579.12 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 37.32 ▼6.44 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 66 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
pCloud Backup: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲134 | 16.15 ▲0.63 | 9.64 ▲0.87 | 51.38 ▲3.10 |
Dashboard /wp-admin | 3,019 ▲89 | 6.02 ▼0.14 | 147.74 ▼11.64 | 113.58 ▼1.10 |
Posts /wp-admin/edit.php | 2,766 ▲27 | 2.74 ▲0.04 | 73.46 ▼0.11 | 99.22 ▲7.98 |
Add New Post /wp-admin/post-new.php | 1,635 ▲20 | 21.34 ▼0.20 | 290.30 ▼41.14 | 109.09 ▼4.32 |
Media Library /wp-admin/upload.php | 1,834 ▲27 | 5.07 ▼0.06 | 168.75 ▲1.54 | 138.36 ▲14.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'pCloud\\Curl' not found in wp-content/plugins/pcloud-backup/lib/pCloud/TestCurl.php:7
- > PHP Fatal error
Uncaught Error: Class 'pCloud\\Curl' not found in wp-content/plugins/pcloud-backup/pcloud-backup/trunk/lib/pCloud/TestCurl.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
pcloud-backup/pcloud-backup.php 85% from 13 tests
The primary PHP file in "pCloud Backup" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 219 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,227 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 2,147 | 58 | 1,832 |
PHP | 20 | 942 | 114 | 1,130 |
JavaScript | 1 | 188 | 3 | 167 |
PO File | 1 | 36 | 36 | 98 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 10 | 9.09% |
▷ Public methods | 90 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 18.18% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.69MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
pcloud-backup/assets/banner-1554x500.png | 235.67KB | 127.03KB | ▼ 46.10% |
pcloud-backup/assets/screenshot-1.png | 160.05KB | 72.77KB | ▼ 54.53% |
pcloud-backup/assets/screenshot-2.png | 161.92KB | 66.60KB | ▼ 58.87% |
pcloud-backup/assets/icon-128x128.png | 16.22KB | 6.27KB | ▼ 61.36% |
pcloud-backup/assets/banner-772x250.png | 87.27KB | 35.13KB | ▼ 59.75% |