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.11MB] [CPU: ▼8.51ms] Passed 4 tests
A check of server-side resources used by Amazon, eBay, NewEgg, Walmart and more. WooCommerce Multichannel Integration by ChannelUnity
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.50 ▲2.63 |
Dashboard /wp-admin | 3.42 ▲0.08 | 47.48 ▼8.89 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 53.65 ▼12.65 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 82.73 ▼15.11 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.01 ▲5.65 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 9 new options
New WordPress options |
---|
channelunity_extrafields |
can_compress_scripts |
channelunity_version |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
channelunity_date |
Browser metrics Passed 4 tests
Checking browser requirements for Amazon, eBay, NewEgg, Walmart and more. WooCommerce Multichannel Integration by ChannelUnity
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲57 | 13.24 ▼1.08 | 4.60 ▲2.99 | 43.68 ▲1.99 |
Dashboard /wp-admin | 2,209 ▲21 | 5.80 ▲0.94 | 98.45 ▼1.87 | 40.82 ▼3.02 |
Posts /wp-admin/edit.php | 2,094 ▲2 | 2.00 ▼0.00 | 35.23 ▼5.27 | 34.33 ▼2.23 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.21 ▼0.15 | 666.33 ▲32.15 | 55.11 ▲1.40 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▲0.02 | 95.33 ▼3.22 | 40.39 ▼1.63 |
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
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- channelunity_extrafields
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- channelunity_date
- channelunity_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_API_Resource' not found in wp-content/plugins/channelunity-woocommerce-integration/classes/woo_cu_api.php:8
- > PHP Notice
Undefined index: username in wp-content/plugins/channelunity-woocommerce-integration/classes/woo_cu_channelunity_fn.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/channelunity-woocommerce-integration/woo_cu.php:29
- > PHP Notice
Undefined index: password in wp-content/plugins/channelunity-woocommerce-integration/classes/woo_cu_channelunity_fn.php on line 7
- > PHP Notice
Undefined index: merchantname in wp-content/plugins/channelunity-woocommerce-integration/classes/woo_cu_channelunity.php on line 30
- > PHP Notice
Undefined index: request in wp-content/plugins/channelunity-woocommerce-integration/classes/woo_cu_channelunity.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
These attributes need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
channelunity-woocommerce-integration/woo_cu.php 85% from 13 tests
The principal PHP file in "Amazon, eBay, NewEgg, Walmart and more. WooCommerce Multichannel Integration by ChannelUnity" v. 2.14 is loaded by WordPress automatically on each request
You should first fix the following items:
- Plugin Name: Please shorten the plugin name (currently 92 characters long instead of max. 70)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("channelunity-woocommerce-integration.php" instead of "woo_cu.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
Success! There were no dangerous files found in this plugin3,785 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 396 | 342 | 2,155 |
JavaScript | 8 | 124 | 152 | 1,107 |
HTML | 12 | 44 | 6 | 279 |
CSS | 3 | 33 | 10 | 244 |
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.27 |
Average class complexity | 24.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 15 | 10.56% |
▷ Public methods | 103 | 72.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 39 | 27.46% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cumenu.png | 0.46KB | 0.75KB | 0.00% |