Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼1.64ms] Passed 4 tests
An overview of server-side resources used by WooCommerce ChannelEngine
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 38.37 ▲1.23 |
Dashboard /wp-admin | 3.63 ▲0.28 | 52.10 ▼9.16 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 47.29 ▲1.20 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 83.34 ▲0.19 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 33.73 ▲1.41 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 304 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce ChannelEngine
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▼0.18 | 1.91 ▲0.28 | 38.96 ▼7.39 |
Dashboard /wp-admin | 2,192 ▲15 | 5.56 ▲0.01 | 83.79 ▼19.20 | 38.44 ▼5.07 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▲0.00 | 34.79 ▲0.25 | 32.01 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.17 ▼5.02 | 608.55 ▼72.41 | 66.79 ▲6.86 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.16 ▼0.03 | 94.48 ▼6.61 | 44.43 ▼1.19 |
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 were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 184× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/channelengine-woocommerce/vendor/guzzlehttp/psr7/src/Uri.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/channelengine-woocommerce/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/channelengine-woocommerce/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/channelengine-woocommerce/vendor/composer/installers/tests/Composer/Installers/Test/PimcoreInstallerTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/channelengine-woocommerce/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'ChannelEngine\\Merchant\\ApiClient\\Model\\ModelInterface' not found in wp-content/plugins/channelengine-woocommerce/vendor/channelengine/merchant-api-client-php/lib/Model/MerchantProductRequest.php:43
- > PHP Fatal error
Uncaught Error: Interface 'ChannelEngine\\Merchant\\ApiClient\\Model\\ModelInterface' not found in wp-content/plugins/channelengine-woocommerce/vendor/channelengine/merchant-api-client-php/lib/Model/MerchantProductResponse.php:43
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/channelengine-woocommerce/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/channelengine-woocommerce/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'ChannelEngine\\Merchant\\ApiClient\\Model\\ModelInterface' not found in wp-content/plugins/channelengine-woocommerce/vendor/channelengine/merchant-api-client-php/lib/Model/MerchantReturnLineResponse.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI found ("")
channelengine-woocommerce/woocommerce-channel-engine.php 92% from 13 tests
The entry point to "WooCommerce ChannelEngine" version 2.4.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("channelengine-woocommerce.php" instead of "woocommerce-channel-engine.php")
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
Everything looks great! No dangerous files found in this plugin26,661 lines of code in 285 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 251 | 4,598 | 13,911 | 22,253 |
Markdown | 14 | 982 | 0 | 3,427 |
JSON | 8 | 0 | 0 | 717 |
JavaScript | 4 | 5 | 2 | 88 |
CSS | 1 | 8 | 0 | 56 |
XML | 2 | 3 | 0 | 43 |
YAML | 3 | 7 | 0 | 37 |
Bourne Shell | 1 | 13 | 8 | 31 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
An short overview of 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.37 |
Average class complexity | 10.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 220 | |
▷ Abstract classes | 2 | 0.91% |
▷ Concrete classes | 218 | 99.09% |
▷ Final classes | 7 | 3.21% |
Methods | 1,789 | |
▷ Static methods | 210 | 11.74% |
▷ Public methods | 1,601 | 89.49% |
▷ Protected methods | 60 | 3.35% |
▷ Private methods | 128 | 7.15% |
Functions | 193 | |
▷ Named functions | 59 | 30.57% |
▷ Anonymous functions | 134 | 69.43% |
Constants | 154 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 154 | 100.00% |
▷ Public constants | 154 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.24MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/channel-engine-logo.png | 11.00KB | 6.09KB | ▼ 44.63% |
admin/images/wrong_cross.png | 66.85KB | 2.73KB | ▼ 95.92% |
admin/images/returned_order.png | 31.03KB | 1.01KB | ▼ 96.75% |
admin/images/checkmark.png | 66.85KB | 2.53KB | ▼ 96.21% |
admin/images/incomplete_cross.png | 66.85KB | 2.73KB | ▼ 95.92% |