Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-db-booster/admin/partials/pagination.class.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; pagination has a deprecated constructor
Server metrics [RAM: ▼1.67MB] [CPU: ▼46.76ms] Passed 4 tests
A check of server-side resources used by WP DB Booster
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.14 | 7.25 ▼35.08 |
Dashboard /wp-admin | 2.34 ▼0.97 | 10.90 ▼34.07 |
Posts /wp-admin/edit.php | 2.34 ▼1.02 | 9.08 ▼36.14 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 7.61 ▼81.73 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 8.86 ▼23.56 |
Dashboard /wp-admin/admin.php?page=wp-db-booster-dashboard | 2.34 | 8.32 |
System Status /wp-admin/admin.php?page=wp-db-booster-systemstatus | 2.34 | 8.48 |
Log /wp-admin/admin.php?page=wp-db-booster-log | 2.34 | 7.30 |
Statistics /wp-admin/admin.php?page=wp-db-booster-statistics | 2.34 | 7.75 |
DB Tables /wp-admin/admin.php?page=wp-db-booster-dbtables | 2.34 | 8.43 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 54 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wpdbboost_log |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
wpdbbooster_tables |
Browser metrics Passed 4 tests
Checking browser requirements for WP DB Booster
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲188 | 14.00 ▼0.38 | 4.74 ▲2.83 | 37.96 ▼8.22 |
Dashboard /wp-admin | 2,268 ▲82 | 5.23 ▲0.16 | 101.22 ▼20.44 | 38.46 ▲2.42 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.32 ▲0.33 | 39.39 ▼1.42 | 37.02 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 23.42 ▲5.01 | 676.39 ▲41.23 | 39.06 ▼17.72 |
Media Library /wp-admin/upload.php | 1,447 ▲62 | 4.36 ▲0.18 | 102.49 ▲3.69 | 44.19 ▼0.17 |
Dashboard /wp-admin/admin.php?page=wp-db-booster-dashboard | 1,696 | 2.08 | 34.92 | 70.48 |
System Status /wp-admin/admin.php?page=wp-db-booster-systemstatus | 1,334 | 1.86 | 24.76 | 24.73 |
Log /wp-admin/admin.php?page=wp-db-booster-log | 984 | 2.04 | 31.60 | 25.65 |
Statistics /wp-admin/admin.php?page=wp-db-booster-statistics | 1,205 | 3.30 | 112.01 | 55.56 |
DB Tables /wp-admin/admin.php?page=wp-db-booster-dbtables | 1,472 | 2.14 | 29.31 | 37.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wp-db-booster/admin/partials/pagination.class.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; pagination has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- wpdbbooster_tables
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-db-booster-dbtables
- > Deprecated in wp-content/plugins/wp-db-booster/admin/partials/pagination.class.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; pagination has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=wp-db-booster-dashboard
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/wp-snow-effect/wp-snow-effect.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=wp-db-booster-dashboard
- > Notice in wp-content/plugins/wp-db-booster/admin/partials/tabs/dashboard.php+339
Undefined variable: plugin
- > GET request to /wp-admin/admin.php?page=wp-db-booster-dashboard
- > Notice in wp-includes/functions.php+6691
file_get_contents(): read of 8192 bytes failed with errno=21 Is a directory
- > GET request to /wp-admin/admin.php?page=wp-db-booster-systemstatus
- > Notice in wp-content/plugins/wp-db-booster/admin/partials/tabs/systemstatus.php+91
Undefined variable: stylesheet
- > GET request to /wp-admin/admin.php?page=wp-db-booster-systemstatus
- > Notice in wp-content/plugins/wp-db-booster/admin/partials/tabs/systemstatus.php+91
Undefined variable: theme_root
- > GET request to /wp-admin/admin.php?page=wp-db-booster-log
- > Notice in wp-content/plugins/wp-db-booster/admin/partials/tabs/log.php+69
Undefined property: pagination::$paging
- > GET request to /wp-admin/admin.php?page=wp-db-booster-log
- > Notice in wp-content/plugins/wp-db-booster/admin/partials/tabs/log.php+69
Undefined index:
- > GET request to /wp-admin/admin.php?page=wp-db-booster-log
- > Notice in wp-content/plugins/wp-db-booster/admin/partials/tabs/log.php+89
Undefined index: paging
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-db-booster/admin/partials/tabs/premium.php
- > /wp-content/plugins/wp-db-booster/public/partials/wp-db-booster-public-display.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/wp-db-booster/admin/partials/tabs/systemstatus.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-db-booster/admin/partials/tabs/systemstatus.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-db-booster/admin/partials/tabs/statistics.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-db-booster/admin/partials/tabs/log.php:57
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/wp-db-booster/admin/partials/tabs/dbtables.php on line 16
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-db-booster/admin/partials/tabs/dbtables.php:16
- > PHP Notice
Undefined index: _wpnonce in wp-content/plugins/wp-db-booster/admin/partials/tabs/settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-db-booster/admin/partials/wp-db-booster-admin-display.php:31
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-db-booster/admin/partials/tabs/dashboard.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-db-booster/admin/partials/tabs/settings.php:15
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-db-booster-dbtables
- > Network (severe)
http://cdn.oesmith.co.uk/morris-0.4.3.min.css?ver=1.0.0 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=wp-db-booster-dashboard
- > Network (severe)
wp-content/plugins/wp-db-booster/admin/img/syncfusion-icons.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Please delete some tags, you are using 41 tag instead of maximum 10
wp-db-booster/wp-db-booster.php 92% from 13 tests
Analyzing the main PHP file in "WP DB Booster" version 1.0.1
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 247 characters long)
Code Analysis Passed 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
No dangerous file extensions were detected4,385 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 315 | 867 | 2,123 |
SVG | 1 | 0 | 0 | 640 |
CSS | 3 | 108 | 25 | 575 |
JavaScript | 7 | 105 | 90 | 573 |
PO File | 1 | 204 | 251 | 474 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 19.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 3 | 4.05% |
▷ Public methods | 68 | 91.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.11% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/table.png | 0.48KB | 0.49KB | 0.00% |
admin/img/inactive.png | 0.71KB | 0.96KB | 0.00% |
admin/img/table-add.png | 3.27KB | 0.64KB | ▼ 80.39% |
admin/img/wpdbbooster.png | 31.29KB | 9.71KB | ▼ 68.96% |
admin/img/help.png | 1.14KB | 1.21KB | 0.00% |