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.77MB] [CPU: ▲14.86ms] Passed 4 tests
This is a short check of server-side resources used by Order Sync with Google Sheets for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.75 | 60.28 ▲16.18 |
Dashboard /wp-admin | 4.10 ▲0.76 | 69.21 ▲5.35 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 77.84 ▲28.44 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.77 | 109.44 ▲9.45 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 62.79 ▲32.10 |
Server storage [IO: ▲3.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 134 new files
Database: no new tables, 42 new options
New WordPress options |
---|
widget_recent-posts |
osgsw_order_total |
theysaidso_admin_options |
osgsw_update_notice |
osgsw_freeze_headers |
db_upgraded |
osgsw_sheet_tab |
osgsw_spreadsheet_url |
osgsw_show_order_date |
osgsw_sync_order_id |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Order Sync with Google Sheets for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,125 ▲363 | 14.21 ▼0.49 | 2.07 ▲0.45 | 40.90 ▼3.12 |
Dashboard /wp-admin | 2,518 ▲341 | 5.69 ▲0.02 | 129.70 ▲31.93 | 81.07 ▲35.44 |
Posts /wp-admin/edit.php | 2,332 ▲232 | 2.81 ▲0.78 | 65.16 ▲27.98 | 35.21 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,679 ▲153 | 22.98 ▲0.04 | 683.56 ▲55.44 | 49.74 ▲2.00 |
Media Library /wp-admin/upload.php | 1,544 ▲144 | 4.23 ▲0.05 | 102.85 ▲4.36 | 63.63 ▲22.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 41 options
- osgsw_free_active
- osgsw_redirect_to_admin_page
- osgsw_sync_total_price
- osgsw_show_order_url
- osgsw_sync_total_items
- osgsw_setup_step
- osgsw_sync_order_products
- osgsw_credential_file
- osgsw_sheet_id
- osgsw_update_notice
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 12× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/includes/classes/class-base.php
- > /wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/includes/classes/class-hooks.php
- > /wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/includes/boot.php
- > /wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/order-sync-with-google-sheets-for-woocommerce.php
- > /wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/includes/models/class-column.php
- > /wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/includes/models/class-sheet.php
- > /wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/includes/classes/class-install.php
- > /wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/includes/classes/class-app.php
- > /wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/includes/models/class-order.php
- > /wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/includes/classes/class-ajax.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/order-sync-with-google-sheets-for-woocommerce/templates/promo.php:16
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: order sync, sales, order manager, ecommerce, inventory management...
order-sync-with-google-sheets-for-woocommerce/order-sync-with-google-sheets-for-woocommerce.php 85% from 13 tests
The main file in "Order Sync with Google Sheets for WooCommerce" v. 1.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 150 characters long)
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin8,749 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 891 | 2,144 | 5,508 |
SVG | 30 | 25 | 0 | 1,156 |
CSS | 3 | 105 | 13 | 979 |
JavaScript | 4 | 90 | 92 | 641 |
Markdown | 2 | 146 | 0 | 444 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 30.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 7 | 50.00% |
Methods | 235 | |
▷ Static methods | 8 | 3.40% |
▷ Public methods | 199 | 84.68% |
▷ Protected methods | 8 | 3.40% |
▷ Private methods | 28 | 11.91% |
Functions | 11 | |
▷ Named functions | 4 | 36.36% |
▷ Anonymous functions | 7 | 63.64% |
Constants | 15 | |
▷ Global constants | 15 | 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
20 compressed PNG files occupy 1.40MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/tooltip/step4_copy-code.png | 5.90KB | 6.44KB | 0.00% |
public/images/trofi.png | 10.56KB | 4.61KB | ▼ 56.35% |
public/images/thumbnails/5.Sheet URL & trigger 4.png | 129.67KB | 143.36KB | 0.00% |
public/images/tooltip/step4_appscript.png | 8.75KB | 8.92KB | 0.00% |
public/images/tooltip/step4_click-on-addTrigger-button.png | 3.38KB | 3.86KB | 0.00% |