Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.24ms] Passed 4 tests
This is a short check of server-side resources used by Stock Sync for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 36.70 ▼6.30 |
Dashboard /wp-admin | 3.38 ▲0.03 | 49.12 ▼14.30 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.03 ▲4.49 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 94.37 ▼2.54 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 36.47 ▲2.19 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wss_log |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
wss_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Stock Sync for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.34 ▲0.08 | 1.83 ▲0.07 | 37.91 ▼5.69 |
Dashboard /wp-admin | 2,195 ▲23 | 5.64 ▼0.04 | 91.55 ▼9.13 | 37.57 ▼9.68 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.03 | 38.24 ▼0.86 | 35.38 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.37 ▲0.20 | 586.38 ▼0.18 | 58.56 ▲6.00 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.17 ▼0.00 | 96.98 ▼0.72 | 43.64 ▲2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_wss_log
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- wss_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/stock-sync-for-woocommerce/vendor/automattic/woocommerce/tests/bootstrap.php
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/stock-sync-for-woocommerce/includes/admin/views/update.html.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/stock-sync-for-woocommerce/includes/admin/views/api-check-modal.html.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/stock-sync-for-woocommerce/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/ResponseTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/stock-sync-for-woocommerce/includes/admin/views/log.html.php:4
- > PHP Notice
Undefined variable: value in wp-content/plugins/stock-sync-for-woocommerce/includes/admin/views/credentials-table.html.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/stock-sync-for-woocommerce/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OAuthTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stock-sync-for-woocommerce/includes/wp-flash-messages.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/stock-sync-for-woocommerce/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/BasicAuthTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/stock-sync-for-woocommerce/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OptionsTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/stock-sync-for-woocommerce/includes/admin/views/push-all.html.php:13
- > 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)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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 your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in stock-sync-for-woocommerce/assets to your readme.txt
stock-sync-for-woocommerce/woo-stock-sync.php 77% from 13 tests
The entry point to "Stock Sync for WooCommerce" version 2.6.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stock-sync-for-woocommerce.php" instead of "woo-stock-sync.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.5" instead of "6.0.0")
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
There were no executable files found in this plugin14,821 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,172 | 1,491 | 9,528 |
PHP | 48 | 995 | 1,525 | 4,339 |
Sass | 1 | 75 | 0 | 380 |
CSS | 2 | 78 | 37 | 327 |
Markdown | 1 | 38 | 0 | 112 |
JSON | 3 | 0 | 0 | 90 |
XML | 2 | 1 | 0 | 26 |
YAML | 2 | 6 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 18 | 8.33% |
▷ Public methods | 175 | 81.02% |
▷ Protected methods | 28 | 12.96% |
▷ Private methods | 13 | 6.02% |
Functions | 47 | |
▷ Named functions | 38 | 80.85% |
▷ Anonymous functions | 9 | 19.15% |
Constants | 15 | |
▷ Global constants | 5 | 33.33% |
▷ Class constants | 10 | 66.67% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/admin/img/warning.png | 0.46KB | 0.43KB | ▼ 6.34% |
public/admin/img/no.png | 0.74KB | 0.74KB | 0.00% |
public/admin/img/yes.png | 0.53KB | 0.58KB | 0.00% |