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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.91ms] Passed 4 tests
Server-side resources used by Backup to pCloud
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 44.14 ▼0.51 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.56 ▼6.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 55.70 ▲6.85 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.38 ▼16.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.88 ▼0.25 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wp2pcloud_config |
wp_wp2pcloud_logs |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Backup to pCloud
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲173 | 13.97 ▼0.61 | 8.51 ▲6.63 | 46.65 ▲1.34 |
Dashboard /wp-admin | 2,233 ▲33 | 5.86 ▼0.03 | 99.00 ▼7.52 | 80.33 ▲35.66 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.03 ▲0.04 | 35.69 ▼4.76 | 33.57 ▼5.86 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 22.99 ▼0.13 | 750.80 ▲140.30 | 62.35 ▲12.07 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.20 ▼0.05 | 100.45 ▼4.38 | 62.57 ▲16.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- 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
Even though everything seems fine, this is not an exhaustive test
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp2pcloud_getAuth() in wp-content/plugins/wp2pcloud/views/wp2pcloud-config.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wp2pcloud/wordpress-backup-to-pcloud.php:18
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
2 plugin tags: backup, pcloud
wp2pcloud/wordpress-backup-to-pcloud.php 85% from 13 tests
This is the main PHP file of "Backup to pCloud" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp2pcloud.php" instead of "wordpress-backup-to-pcloud.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,054 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 660 | 1,434 | 2,851 |
JavaScript | 1 | 24 | 0 | 128 |
CSS | 1 | 12 | 0 | 75 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 4 | 17.39% |
▷ Concrete classes | 19 | 82.61% |
▷ Final classes | 0 | 0.00% |
Methods | 261 | |
▷ Static methods | 10 | 3.83% |
▷ Public methods | 219 | 83.91% |
▷ Protected methods | 9 | 3.45% |
▷ Private methods | 33 | 12.64% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 3 | 30.00% |
▷ Class constants | 7 | 70.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/login_bcgr.png | 48.41KB | 24.15KB | ▼ 50.11% |
images/register_btn.png | 10.08KB | 4.63KB | ▼ 54.07% |
images/logo-n1.png | 1.72KB | 1.61KB | ▼ 6.85% |
images/logo_16.png | 1.79KB | 1.03KB | ▼ 42.45% |
images/zip.png | 1.17KB | 1.32KB | 0.00% |