Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼13.19ms] Passed 4 tests
Server-side resources used by Database Toolset
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 34.20 ▼4.77 |
Dashboard /wp-admin | 3.45 ▲0.10 | 42.90 ▼19.58 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 51.58 ▲1.75 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 80.18 ▼30.16 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.63 ▲3.40 |
Backups /wp-admin/admin.php?page=database-toolset-table | 3.38 | 33.72 |
Clean-Up /wp-admin/admin.php?page=database-toolset-cleanup | 3.42 | 36.40 |
Tasks /wp-admin/admin.php?page=database-toolset-schedule | 3.39 | 32.64 |
Optimizer /wp-admin/admin.php?page=database-toolset-optimize | 3.37 | 43.42 |
Performance /wp-admin/admin.php?page=database-toolset-speedup | 3.35 | 33.03 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
_database_toolset |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Database Toolset
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.13 ▼1.26 | 1.52 ▼0.16 | 40.83 ▼0.40 |
Dashboard /wp-admin | 2,245 ▲57 | 5.85 ▼0.20 | 110.12 ▲11.71 | 42.41 ▼0.29 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.04 ▼0.01 | 40.44 ▼3.22 | 34.97 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,578 ▲50 | 18.15 ▼0.14 | 644.65 ▼33.52 | 82.04 ▲24.01 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.16 ▼0.15 | 94.35 ▼1.93 | 41.97 ▲0.16 |
Backups /wp-admin/admin.php?page=database-toolset-table | 1,127 | 2.27 | 60.76 | 79.12 |
Clean-Up /wp-admin/admin.php?page=database-toolset-cleanup | 1,159 | 1.90 | 36.86 | 41.39 |
Tasks /wp-admin/admin.php?page=database-toolset-schedule | 1,054 | 1.98 | 35.34 | 44.62 |
Optimizer /wp-admin/admin.php?page=database-toolset-optimize | 967 | 1.97 | 35.44 | 41.60 |
Performance /wp-admin/admin.php?page=database-toolset-speedup | 903 | 1.96 | 34.62 | 43.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/database-toolset/admin/partials/database-toolset-admin-speedup.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/database-toolset/admin/partials/database-toolset-admin-table.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/database-toolset/admin/partials/database-toolset-admin-cleanup.php:103
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/database-toolset/admin/partials/database-toolset-admin-schedule.php:22
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/database-toolset/admin/partials/database-toolset-admin-optimize.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Main "cleanup" page where all redundant can be removed.), #2 (The "optimize" page can be used to optmize your SQL database using PHPMyAdmin build-in function.), #3 (From the "task" page you will be allowed to create a cron task in order to backup your database based on your requirements.), #4 (The "backups" page will present to you using a table all available backups ready to download.)
- Tags: You are using too many tags: 23 tag instead of maximum 10
database-toolset/database-toolset.php 92% from 13 tests
The main file in "Database Toolset" v. 1.8.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
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
No dangerous file extensions were detected2,579 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 220 | 487 | 1,605 |
CSS | 4 | 118 | 44 | 738 |
JavaScript | 3 | 4 | 0 | 236 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 40 | 85.11% |
▷ Protected methods | 3 | 6.38% |
▷ Private methods | 4 | 8.51% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.25MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 54.17KB | 24.16KB | ▼ 55.41% |
screenshot-3.png | 59.96KB | 27.69KB | ▼ 53.81% |
screenshot-1.png | 61.03KB | 25.13KB | ▼ 58.82% |
screenshot-4.png | 79.00KB | 33.44KB | ▼ 57.67% |