Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.70ms] Passed 4 tests
This is a short check of server-side resources used by GW Database Backup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.32 ▲1.95 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.24 ▼3.22 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.03 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.17 ▼18.75 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.22 ▲7.64 |
GW DB Backup /wp-admin/options-general.php?page=gw-database-backup | 3.22 | 31.64 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GW Database Backup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.23 ▼0.39 | 1.65 ▼0.25 | 39.63 ▼0.02 |
Dashboard /wp-admin | 2,205 ▲28 | 5.66 ▼0.05 | 87.48 ▼0.23 | 39.09 ▼2.88 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.02 | 39.35 ▲0.41 | 36.25 ▼12.54 |
Add New Post /wp-admin/post-new.php | 1,688 ▲162 | 22.31 ▼0.85 | 623.01 ▼67.87 | 50.80 ▲1.32 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▲0.05 | 96.38 ▼4.74 | 46.21 ▲3.73 |
GW DB Backup /wp-admin/options-general.php?page=gw-database-backup | 883 | 1.68 | 26.71 | 31.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'GWBackup' not found
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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
Everything seems fine, however this is by no means 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/gw-database-backup/gw-database-backup.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2 in gw-database-backup/assets to your readme.txt
gw-database-backup/gw-database-backup.php 77% from 13 tests
The main PHP script in "GW Database Backup" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "5.0.0")
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected686 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 72 | 81 | 592 |
JavaScript | 1 | 4 | 4 | 60 |
CSS | 2 | 7 | 12 | 34 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 27.67 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 11 | 33.33% |
▷ Public methods | 23 | 69.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 30.30% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 1.04KB | 1.06KB | 0.00% |