Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.34ms] Passed 4 tests
An overview of server-side resources used by DBtools
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.24 ▼3.08 |
Dashboard /wp-admin | 3.33 ▲0.03 | 57.75 ▼2.39 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 52.86 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.11 ▼6.88 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.74 ▼1.02 |
Maintenance /wp-admin/admin.php?page=dbtools_optimize | 3.22 | 46.28 |
Backup /wp-admin/admin.php?page=dbtools_backup | 3.23 | 35.59 |
DBtools /wp-admin/admin.php?page=dbtools_menu | 3.22 | 33.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Illegal file modification found: 1 file (0.04KB) outside of "wp-content/plugins/dbtools/" and "wp-content/uploads/"
- (new file) dbtools/index.php
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
1.2.2 |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
DBtools: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.68 ▲0.13 | 1.77 ▼0.17 | 48.54 ▲6.49 |
Dashboard /wp-admin | 2,218 ▲41 | 5.71 ▲0.05 | 92.77 ▼5.54 | 74.05 ▲32.59 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 1.98 ▼0.06 | 33.74 ▼1.29 | 36.82 ▲4.45 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 23.23 ▼0.09 | 636.36 ▼66.27 | 180.03 ▲124.95 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.22 ▲0.03 | 99.56 ▼13.12 | 80.05 ▲33.96 |
Maintenance /wp-admin/admin.php?page=dbtools_optimize | 849 | 1.33 | 6.93 | 20.68 |
Backup /wp-admin/admin.php?page=dbtools_backup | 714 | 1.12 | 7.17 | 20.32 |
DBtools /wp-admin/admin.php?page=dbtools_menu | 842 | 1.99 | 23.61 | 25.87 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- 1.2.2
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dbtools/tools/optimize.php
- > /wp-content/plugins/dbtools/download.php
- > /wp-content/plugins/dbtools/tools/backup.php
- > /wp-content/plugins/dbtools/DBtools.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dbtools_menu
- > Network (severe)
wp-content/plugins/dbtools/images/icon.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: backup, database, tools, optimize, tool
dbtools/DBtools.php 92% from 13 tests
The entry point to "DBtools" version 1.2.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("dbtools.php" instead of "DBtools.php")
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 detected317 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 45 | 34 | 309 |
HTML | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin