Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.39ms] Passed 4 tests
Server-side resources used by Backup Database
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.40 ▼6.91 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.58 ▼0.93 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.30 ▲1.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.35 ▼7.32 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 39.07 ▲2.56 |
Server storage [IO: ▲6.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 713 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_fny_configs |
wp_fny_backups |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Backup Database
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.24 ▼0.48 | 1.87 ▲0.08 | 44.58 ▼3.61 |
Dashboard /wp-admin | 2,208 ▲28 | 5.48 ▼0.17 | 90.90 ▼8.87 | 40.33 ▼2.83 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.01 ▲0.06 | 33.72 ▼6.85 | 35.55 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.55 ▼0.05 | 620.17 ▼33.95 | 47.82 ▼12.88 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.28 ▲0.04 | 98.14 ▼7.04 | 43.69 ▼3.78 |
Uninstaller [IO: ▲6.82MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attentionThis plugin does not fully uninstall, leaving 2 tables in the database Zombie WordPress options detected upon uninstall: 6 options
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/fny-database-backup/com/core/FNYBackupCore.php+85
Undefined variable: fnytablestruct
- The plugin did not uninstall correctly, leaving 713 files (6.82MB) in the plugin directory
- (new file) com/core/FNYBackupConfig.php
- (new file) README.txt
- (new file) com/config/config.pro.php
- (new file) com/core/FNYBackupLog.php
- (new file) com/core/FNYBackupCore.php
- (new file) com/config/config.php
- (new file) com/config/config.free.php
- (new file) com/boot.php
- (new file) com/core/FNYBackupDump.php
- (new file) com/core/FNYBackupHelper.php
- ...
- wp_fny_backups
- wp_fny_configs
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 12× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/fny-database-backup/com/includes/Dropbox/examples/resumeChunkedUpload.php
- > /wp-content/plugins/fny-database-backup/com/includes/Dropbox/examples/chunkedUpload.php
- > /wp-content/plugins/fny-database-backup/com/includes/Dropbox/examples/getFile.php
- > /wp-content/plugins/fny-database-backup/com/includes/Dropbox/examples/metaData.php
- > /wp-content/plugins/fny-database-backup/com/includes/Dropbox/tests/setup.php
- > /wp-content/plugins/fny-database-backup/com/includes/Dropbox/examples/shares.php
- > /wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php
- > /wp-content/plugins/fny-database-backup/com/includes/Dropbox/examples/accountInfo.php
- > /wp-content/plugins/fny-database-backup/com/includes/Dropbox/examples/bootstrap.php
- > /wp-content/plugins/fny-database-backup/com/includes/Dropbox/tests/bootstrap.php
- 4095× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php on line 5
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php on line 5
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php on line 5
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php on line 5
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php on line 5
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php on line 5
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php on line 5
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php on line 5
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php on line 5
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/fny-database-backup/public/email/templates/mail_backup.php on line 6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
fny-database-backup/fny-database-backup.php Passed 13 tests
Analyzing the main PHP file in "Backup Database" version 1.6.1
68 characters long description:
FNY Backup Database is the best choice for WordPress based WebSites.
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
Everything looks great! No dangerous files found in this plugin105,815 lines of code in 696 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 657 | 9,378 | 32,367 | 95,393 |
CSS | 5 | 18 | 30 | 7,377 |
JavaScript | 4 | 662 | 222 | 2,008 |
JSON | 23 | 0 | 0 | 637 |
SVG | 1 | 0 | 0 | 288 |
Markdown | 5 | 36 | 0 | 103 |
SQL | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 1.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 83 | |
Interfaces | 74 | |
Traits | 2 | |
Classes | 2,024 | |
▷ Abstract classes | 43 | 2.12% |
▷ Concrete classes | 1,981 | 97.88% |
▷ Final classes | 1 | 0.05% |
Methods | 15,070 | |
▷ Static methods | 239 | 1.59% |
▷ Public methods | 14,620 | 97.01% |
▷ Protected methods | 285 | 1.89% |
▷ Private methods | 165 | 1.09% |
Functions | 90 | |
▷ Named functions | 18 | 20.00% |
▷ Anonymous functions | 72 | 80.00% |
Constants | 335 | |
▷ Global constants | 39 | 11.64% |
▷ Class constants | 296 | 88.36% |
▷ Public constants | 296 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/gallery.png | 19.85KB | 8.35KB | ▼ 57.96% |
public/img/share.png | 65.63KB | 23.11KB | ▼ 64.79% |