Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.92MB] [CPU: ▼2.25ms] Passed 4 tests
Server-side resources used by Stock Sync for WooCommerce with Google Sheets - WooCommerce bulk edit, Stock Management, Inventory Management System & more
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.37 ▲0.91 | 39.55 ▼1.98 |
Dashboard /wp-admin | 4.25 ▲0.90 | 55.48 ▼9.45 |
Posts /wp-admin/edit.php | 4.32 ▲0.97 | 56.43 ▲10.43 |
Add New Post /wp-admin/post-new.php | 6.82 ▲0.93 | 85.93 ▼7.58 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 45.21 ▲10.00 |
Server storage [IO: ▲7.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 142 new files
Database: no new tables, 32 new options
New WordPress options |
---|
ssgsw_show_custom_meta_fileds |
ssgsw_show_attributes |
ssgsw_update_notice |
ssgsw_install_times |
ssgsw_credential_file |
ssgsw_show_short_description |
ssgsw_new_user_activate |
ssgsw_days_count |
can_compress_scripts |
ssgsw_show_sku |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Stock Sync for WooCommerce with Google Sheets - WooCommerce bulk edit, Stock Management, Inventory Management System & more
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,181 ▲430 | 14.07 ▼0.17 | 1.95 ▲0.28 | 43.90 ▼2.24 |
Dashboard /wp-admin | 2,577 ▲403 | 5.76 ▲0.17 | 131.50 ▲36.24 | 81.38 ▲38.83 |
Posts /wp-admin/edit.php | 2,318 ▲218 | 2.12 ▲0.01 | 39.68 ▲1.69 | 34.02 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,884 ▲357 | 22.21 ▼0.91 | 763.72 ▲102.49 | 50.36 ▲2.40 |
Media Library /wp-admin/upload.php | 1,600 ▲203 | 4.20 ▲0.01 | 98.73 ▲2.79 | 73.39 ▲34.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 31 options
- ssgsw_show_custom_meta_fileds
- ssgsw_days_count
- widget_recent-comments
- ssgsw_show_sku
- ssgsw_redirect_to_admin_page
- ssgsw_synced
- ssgsw_freeze_headers
- ssgsw_apps_script__notice
- widget_recent-posts
- ssgsw_show_total_sales
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stock-sync-with-google-sheet-for-woocommerce/templates/dashboard/support.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: These screenshots need descriptions #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in stock-sync-with-google-sheet-for-woocommerce/assets to your readme.txt
stock-sync-with-google-sheet-for-woocommerce/stock-sync-with-google-sheet-for-woocommerce.php Passed 13 tests
The principal PHP file in "Stock Sync for WooCommerce with Google Sheets - WooCommerce bulk edit, Stock Management, Inventory Management System & more" v. 3.6.0 is loaded by WordPress automatically on each request
55 characters long description:
Sync your WooCommerce product stock with Google Sheets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected10,112 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,247 | 2,355 | 6,733 |
SVG | 38 | 25 | 0 | 1,247 |
CSS | 4 | 63 | 20 | 835 |
JavaScript | 5 | 127 | 99 | 774 |
Markdown | 2 | 146 | 0 | 446 |
XML | 1 | 17 | 37 | 60 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 38.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 252 | |
▷ Static methods | 8 | 3.17% |
▷ Public methods | 216 | 85.71% |
▷ Protected methods | 8 | 3.17% |
▷ Private methods | 28 | 11.11% |
Functions | 28 | |
▷ Named functions | 10 | 35.71% |
▷ Anonymous functions | 18 | 64.29% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
30 compressed PNG files occupy 4.78MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/tooltip/step2_add-google-sheet-url.png | 13.89KB | 14.59KB | 0.00% |
public/images/tooltip/step4_copy-code.png | 5.90KB | 6.44KB | 0.00% |
public/images/thumbnails/editor-access.png | 638.55KB | 214.79KB | ▼ 66.36% |
public/images/tooltip/step3_copy-email-ID.png | 5.30KB | 5.79KB | 0.00% |
public/images/enter-sheet-name.png | 9.56KB | 9.60KB | 0.00% |