Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼10.14ms] Passed 4 tests
An overview of server-side resources used by BackupBank - No-Hassel WordPress BackUps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.78 ▼1.05 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.73 ▼12.38 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 48.94 ▼12.41 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.56 ▼14.70 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.08 ▲2.27 |
Server storage [IO: ▲2.92MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 518 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_backupbank_settings |
New WordPress options |
---|
backupbank_db_version |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for BackupBank - No-Hassel WordPress BackUps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.63 ▼1.02 | 1.65 ▼0.00 | 46.50 ▲1.71 |
Dashboard /wp-admin | 2,256 ▲68 | 5.87 ▲1.00 | 98.01 ▼14.24 | 38.93 ▼5.08 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.02 ▲0.03 | 40.43 ▲2.43 | 36.22 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,546 ▲17 | 23.25 ▲5.02 | 620.49 ▼27.15 | 56.27 ▲4.48 |
Media Library /wp-admin/upload.php | 1,444 ▲59 | 4.20 ▲0.03 | 97.13 ▲1.51 | 44.15 ▲0.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- backupbank_db_version
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 208× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ParagonIE\\ConstantTime\\EncoderInterface' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/paragonie/constant_time_encoding/src/Base32.php:38
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\TwistedEdwards' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/Ed25519.php:20
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP160t1.php:32
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/backupbank-no-hassel-automated-backups/admin/settings.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS8' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/PKCS8.php:42
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\AsymmetricKey' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA.php:44
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect163r2.php:19
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect409r1.php:19
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\secp256r1' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistp256.php:16
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\KoblitzPrime' not found in wp-content/plugins/backupbank-no-hassel-automated-backups/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp224k1.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (Configuration of plugin)
backupbank-no-hassel-automated-backups/backupbank.php 92% from 13 tests
The primary PHP file in "BackupBank - No-Hassel WordPress BackUps" version 1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("backupbank-no-hassel-automated-backups.php" instead of "backupbank.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin48,825 lines of code in 499 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 468 | 9,612 | 30,305 | 44,709 |
Markdown | 15 | 415 | 0 | 2,455 |
JSON | 11 | 0 | 0 | 1,060 |
CSS | 1 | 72 | 10 | 537 |
SVG | 1 | 0 | 0 | 22 |
JavaScript | 1 | 2 | 2 | 20 |
XML | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 670.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 62 | |
Interfaces | 20 | |
Traits | 4 | |
Classes | 438 | |
▷ Abstract classes | 214 | 48.86% |
▷ Concrete classes | 224 | 51.14% |
▷ Final classes | 50 | 22.32% |
Methods | 2,332 | |
▷ Static methods | 579 | 24.83% |
▷ Public methods | 1,798 | 77.10% |
▷ Protected methods | 253 | 10.85% |
▷ Private methods | 281 | 12.05% |
Functions | 62 | |
▷ Named functions | 15 | 24.19% |
▷ Anonymous functions | 47 | 75.81% |
Constants | 500 | |
▷ Global constants | 7 | 1.40% |
▷ Class constants | 493 | 98.60% |
▷ Public constants | 483 | 97.97% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin