Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.15ms] Passed 4 tests
An overview of server-side resources used by WooToolkit- A Scalable WooCommerce Addon!
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.64 ▼10.19 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.78 ▼16.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.35 ▲0.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 102.57 ▲15.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 42.88 ▲9.96 |
Installed Kits /wp-admin/admin.php?page=woo-toolkit | 3.00 | 25.15 |
Settings /wp-admin/admin.php?page=woo-toolkit-settings | 3.00 | 29.42 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 15 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
wootoolkit_catalog |
wootoolkit_sorting_options |
wootoolkit_products_per_page |
theysaidso_admin_options |
can_compress_scripts |
wootoolkit_accordion |
wootoolkit_mailchimp |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WooToolkit- A Scalable WooCommerce Addon!
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.46 | 1.80 ▲0.00 | 36.99 ▼6.67 |
Dashboard /wp-admin | 2,209 ▲21 | 5.91 ▲0.02 | 107.54 ▼3.47 | 42.56 ▼2.25 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.08 | 39.07 ▲3.58 | 35.75 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.35 ▲0.30 | 598.48 ▼31.05 | 49.12 ▼7.89 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.17 ▼0.01 | 98.56 ▼3.53 | 45.75 ▲2.31 |
Installed Kits /wp-admin/admin.php?page=woo-toolkit | 28 | 0.44 | 0.08 | 3.94 |
Settings /wp-admin/admin.php?page=woo-toolkit-settings | 28 | 0.44 | 0.07 | 3.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 15 options
- wootoolkit_sorting_options
- wootoolkit_mailchimp
- wootoolkit_continue_shopping
- wootoolkit_accordion
- can_compress_scripts
- wootoolkit_products_per_page
- widget_recent-posts
- theysaidso_admin_options
- wootoolkit_catalog
- wootoolkit_empty_cart
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wootoolkit/kits/wootoolkit-empty-cart/includes/admin/empty-cart-admin.php
- > /wp-content/plugins/wootoolkit/kits/wootoolkit-product-sorting-options/includes/class-admin-settings.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wootoolkit/includes/wootoolkit.class.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wootoolkit/kits/wootoolkit-catalog/wootoolkit-catalog.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wootoolkit/includes/wootoolkit.settings.class.php:43
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=woo-toolkit
- > Network (severe)
wp-admin/admin.php?page=woo-toolkit - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=woo-toolkit-settings
- > Network (severe)
wp-admin/admin.php?page=woo-toolkit-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wootoolkit/wootoolkit.php Passed 13 tests
"WooToolkit- A Scalable WooCommerce Addon!" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
One stop solution for all your WooCommerce needs.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,182 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 991 | 1,604 | 2,605 |
CSS | 4 | 5 | 0 | 342 |
JavaScript | 5 | 59 | 68 | 235 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 173 | |
▷ Static methods | 11 | 6.36% |
▷ Public methods | 164 | 94.80% |
▷ Protected methods | 2 | 1.16% |
▷ Private methods | 7 | 4.05% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/woo_toolkit_icon.png | 17.58KB | 0.44KB | ▼ 97.52% |