Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲5.03MB] [CPU: ▲18.57ms] 75% from 4 tests
Analyzing server-side resources used by DokoBuilder : DIY Product Bundle for WooCommerce
Please have a look at the following items
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.03MB on /wp-admin/admin.php?page=manage-dynamic-rules)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.84 ▲5.38 | 51.64 ▲12.13 |
Dashboard /wp-admin | 8.86 ▲5.51 | 72.24 ▲7.61 |
Posts /wp-admin/edit.php | 8.86 ▲5.50 | 84.05 ▲36.82 |
Add New Post /wp-admin/post-new.php | 9.62 ▲3.73 | 111.23 ▲17.71 |
Media Library /wp-admin/upload.php | 8.86 ▲5.63 | 71.76 ▲37.55 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.86 | 61.48 |
Manage Dynamic Rules /wp-admin/admin.php?page=manage-dynamic-rules | 8.86 | 63.35 |
Server storage [IO: ▲6.16MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 373 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
fs_active_plugins |
fs_accounts |
widget_recent-posts |
widget_theysaidso_widget |
fs_debug_mode |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
DokoBuilder : DIY Product Bundle for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,486 ▼261 | 14.15 ▼0.07 | 0.54 ▼1.16 | 6.42 ▼38.43 |
Dashboard /wp-admin | 2,227 ▲53 | 5.62 ▼0.02 | 95.27 ▼5.23 | 49.17 ▲3.74 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 1.98 ▼0.03 | 41.19 ▲3.74 | 36.79 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,544 ▲15 | 23.42 ▲0.27 | 694.17 ▲77.81 | 65.78 ▲9.61 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.24 ▲0.04 | 98.23 ▼1.29 | 43.78 ▲3.32 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,087 | 1.66 | 28.03 | 28.98 |
Manage Dynamic Rules /wp-admin/admin.php?page=manage-dynamic-rules | 842 | 2.00 | 27.53 | 28.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/doko-box-builder/core/vendor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- fs_active_plugins
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- fs_accounts
- fs_debug_mode
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/doko-box-builder/public/class-hs-doko-public.php:818
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in doko-box-builder/assets to your readme.txt
doko-box-builder/hs-doko.php 85% from 13 tests
The main PHP file in "DokoBuilder : DIY Product Bundle for WooCommerce" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("doko-box-builder.php" instead of "hs-doko.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin65,198 lines of code in 264 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 8,246 | 17,974 | 35,018 |
JavaScript | 110 | 3,469 | 3,119 | 24,137 |
CSS | 23 | 292 | 142 | 5,764 |
PO File | 2 | 104 | 116 | 279 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 83.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,325 | |
▷ Static methods | 200 | 15.09% |
▷ Public methods | 917 | 69.21% |
▷ Protected methods | 17 | 1.28% |
▷ Private methods | 391 | 29.51% |
Functions | 120 | |
▷ Named functions | 113 | 94.17% |
▷ Anonymous functions | 7 | 5.83% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.93MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/img/choose-products.png | 12.94KB | 2.54KB | ▼ 80.40% |
core/vendor/freemius/assets/img/doko-box-builder.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/img/choose-products-with-cart.png | 12.54KB | 2.31KB | ▼ 81.55% |
admin/css/images/red-icons.png | 4.51KB | 4.18KB | ▼ 7.28% |