Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.94MB] [CPU: ▲5.86ms] Passed 4 tests
A check of server-side resources used by Backup Migration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.45 ▲0.99 | 56.28 ▲20.82 |
Dashboard /wp-admin | 4.29 ▲0.94 | 58.40 ▼7.35 |
Posts /wp-admin/edit.php | 4.33 ▲0.97 | 63.98 ▲14.86 |
Add New Post /wp-admin/post-new.php | 6.82 ▲0.93 | 97.63 ▼2.55 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 52.11 ▲18.49 |
Server storage [IO: ▲2.09MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- There were 16 files (3.90KB) illegally modified outside of "wp-content/plugins/backup-backup/" and "wp-content/uploads/"
- (modified) .htaccess
- (new file) wp-content/backup-migration-m6UWc1EbHL/background-errors.log
- (new file) wp-content/backup-migration-m6UWc1EbHL/index.html
- (new file) wp-content/backup-migration-m6UWc1EbHL/index.php
- (new file) wp-content/backup-migration-config.php
- (new file) wp-content/backup-migration-m6UWc1EbHL/backups/index.html
- (new file) wp-content/backup-migration-m6UWc1EbHL/staging/.htaccess
- (new file) wp-content/backup-migration-m6UWc1EbHL/backups/index.php
- (new file) wp-content/backup-migration-m6UWc1EbHL/.htaccess
- (new file) wp-content/backup-migration-m6UWc1EbHL/backups/.htaccess
- ...
Filesystem: 315 new files
Database: no new tables, 12 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
analyst_cache |
bmi_initial_installation_version |
db_upgraded |
BMI::STORAGE::LOCAL::PATH |
widget_theysaidso_widget |
widget_recent-comments |
bmi_gdrive_banner_dismissed |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Backup Migration: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 10,747 ▲8,000 | 13.28 ▼0.99 | 3.48 ▲1.92 | 44.79 ▲8.96 |
Dashboard /wp-admin | 2,481 ▲304 | 5.68 ▲0.04 | 100.39 ▲0.55 | 103.30 ▲57.77 |
Posts /wp-admin/edit.php | 2,405 ▲302 | 2.01 ▲0.06 | 38.17 ▼2.17 | 41.58 ▲7.57 |
Add New Post /wp-admin/post-new.php | 1,823 ▲295 | 21.64 ▼1.47 | 691.25 ▲66.56 | 47.75 ▼7.50 |
Media Library /wp-admin/upload.php | 1,686 ▲289 | 4.18 ▼0.06 | 104.44 ▲4.46 | 79.98 ▲37.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 12 options in the database
- widget_recent-comments
- _irb_h_bn_review
- widget_theysaidso_widget
- analyst_cache
- bmi_initial_installation_version
- can_compress_scripts
- bmi_hotfixes
- theysaidso_admin_options
- widget_recent-posts
- bmi_gdrive_banner_dismissed
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/backup-backup/includes/restore-batching.php
- > /wp-content/plugins/backup-backup/analyst/templates/optin.php
- > /wp-content/plugins/backup-backup/analyst/templates/forms/deactivate.php
- > /wp-content/plugins/backup-backup/includes/cli-handler.php
- > /wp-content/plugins/backup-backup/analyst/templates/optout.php
- > /wp-content/plugins/backup-backup/analyst/templates/forms/install.php
- 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/backup-backup/analyst/src/Http/Requests/InstallRequest.php:14
- > PHP Notice
Undefined variable: pluginToInstall in wp-content/plugins/backup-backup/analyst/templates/forms/install.php on line 1
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\CacheContract' not found in wp-content/plugins/backup-backup/analyst/src/Cache/DatabaseCache.php:12
- > PHP Notice
Undefined variable: pencilImage in wp-content/plugins/backup-backup/analyst/templates/forms/deactivate.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/backup-backup/analyst/src/Http/Requests/ActivateRequest.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\HttpClientContract' not found in wp-content/plugins/backup-backup/analyst/src/Http/WordPressHttpClient.php:10
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/backup-backup/analyst/src/Http/Requests/UninstallRequest.php:14
- > PHP Notice
Undefined variable: shieldImage in wp-content/plugins/backup-backup/analyst/templates/optout.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/backup-backup/analyst/src/Http/Requests/OptOutRequest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/backup-backup/analyst/src/Http/Requests/OptInRequest.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
backup-backup/backup-backup.php Passed 13 tests
This is the main PHP file of "Backup Migration" version 1.3.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Most sophisticated backup & migration plugin for WordPress
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected21,663 lines of code in 245 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 156 | 6,977 | 4,658 | 19,494 |
SVG | 77 | 2 | 16 | 1,268 |
CSS | 6 | 137 | 5 | 779 |
JSON | 1 | 0 | 0 | 63 |
JavaScript | 5 | 24 | 3 | 59 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 112)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 56.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 782.00 |
Average method complexity | 5.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 112.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 650 | |
▷ Static methods | 59 | 9.08% |
▷ Public methods | 489 | 75.23% |
▷ Protected methods | 29 | 4.46% |
▷ Private methods | 132 | 20.31% |
Functions | 67 | |
▷ Named functions | 30 | 44.78% |
▷ Anonymous functions | 37 | 55.22% |
Constants | 92 | |
▷ Global constants | 89 | 96.74% |
▷ Class constants | 3 | 3.26% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
62 compressed PNG files occupy 0.38MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/happy-smile.png | 4.58KB | 2.89KB | ▼ 36.92% |
admin/images/info-min.png | 0.35KB | 0.37KB | 0.00% |
admin/images/logo-min.png | 0.44KB | 0.46KB | 0.00% |
includes/banner/views/projects/usm/imgs/play-icon.png | 0.62KB | 0.60KB | ▼ 3.17% |
admin/images/warning-red.png | 0.62KB | 0.65KB | 0.00% |