Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼0.03ms] Passed 4 tests
A check of server-side resources used by Toolkit for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 41.08 ▲4.60 |
Dashboard /wp-admin | 3.59 ▲0.29 | 50.11 ▲6.62 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 50.64 ▲2.06 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 91.98 ▼8.87 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.92 ▲2.09 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Toolkit for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 14.82 ▲0.43 | 2.01 ▲0.29 | 47.63 ▲5.67 |
Dashboard /wp-admin | 2,231 ▲39 | 5.89 ▲0.91 | 107.45 ▼3.58 | 39.93 ▼1.56 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.07 ▲0.06 | 40.47 ▼2.84 | 36.19 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 23.15 ▼0.32 | 621.68 ▼82.05 | 52.17 ▼0.21 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.25 ▲0.02 | 100.16 ▲5.46 | 43.83 ▲1.11 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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 50% 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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'GearGag_WooCommerce_Toolkit\\tools\\contracts\\Bootable' not found in wp-content/plugins/toolkit-for-woocommerce/tools/contracts/Enqueueable.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GearGag_WooCommerce_Toolkit\\tools\\contracts\\Bootable' not found in wp-content/plugins/toolkit-for-woocommerce/Change_Paypal_Item_Name.php:8
- > 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
These attributes need to be fixed:
- Tested up to: Invalid version format
- Requires at least: Invalid version format
toolkit-for-woocommerce/index.php 92% from 13 tests
This is the main PHP file of "Toolkit for WooCommerce" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("toolkit-for-woocommerce.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,740 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 578 | 725 | 2,481 |
JSON | 4 | 0 | 0 | 138 |
SVG | 1 | 0 | 0 | 55 |
JavaScript | 5 | 3 | 0 | 41 |
Markdown | 1 | 18 | 0 | 23 |
CSS | 2 | 2 | 2 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 2 | 11.76% |
▷ Concrete classes | 15 | 88.24% |
▷ Final classes | 2 | 13.33% |
Methods | 134 | |
▷ Static methods | 6 | 4.48% |
▷ Public methods | 105 | 78.36% |
▷ Protected methods | 13 | 9.70% |
▷ Private methods | 16 | 11.94% |
Functions | 16 | |
▷ Named functions | 14 | 87.50% |
▷ Anonymous functions | 2 | 12.50% |
Constants | 35 | |
▷ Global constants | 12 | 34.29% |
▷ Class constants | 23 | 65.71% |
▷ Public constants | 23 | 100.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
No PNG files were detected