Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.65ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Sync for QuickBooks Online - by MyWorks Software
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.29 ▼6.69 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.84 ▼8.17 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.12 ▲7.48 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.72 ▼16.32 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.59 ▲0.57 |
Server storage [IO: ▲9.87MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 830 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
mw_wc_qbo_sync_qbo_is_connected |
widget_recent-comments |
mw_wc_qbo_sync_customer_qbo_check |
widget_theysaidso_widget |
widget_recent-posts |
mw_wc_qbo_sync_ord_sa_new_pr_pg_fnct |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Sync for QuickBooks Online - by MyWorks Software
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▼0.35 | 1.80 ▼0.07 | 43.32 ▲0.08 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.06 | 91.13 ▲2.52 | 40.43 ▲5.70 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 39.26 ▼1.89 | 35.03 ▼4.48 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.75 ▲5.54 | 696.24 ▲85.78 | 51.36 ▼24.33 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.03 | 105.54 ▲1.10 | 47.67 ▲2.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- mw_wc_qbo_sync_ord_sa_new_pr_pg_fnct
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/myworks-woo-sync-for-quickbooks-online/admin/partials/myworks-wc-qbo-sync-admin-map-custom-fields-new.php
- > /wp-content/plugins/myworks-woo-sync-for-quickbooks-online/admin/partials/myworks-wc-qbo-sync-init-new.php
- > /wp-content/plugins/myworks-woo-sync-for-quickbooks-online/admin/partials/myworks-wc-qbo-sync-admin-connection-latest.php
- > /wp-content/plugins/myworks-woo-sync-for-quickbooks-online/cron/deposit-cron.php
- > /wp-content/plugins/myworks-woo-sync-for-quickbooks-online/cron/inventory-cron.php
- > /wp-content/plugins/myworks-woo-sync-for-quickbooks-online/admin/partials/myworks-wc-qbo-sync-admin-pull-dashboard.php
- > /wp-content/plugins/myworks-woo-sync-for-quickbooks-online/admin/partials/myworks-wc-qbo-sync-db-fix.php
- > /wp-content/plugins/myworks-woo-sync-for-quickbooks-online/cron/all-cron.php
- > /wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/SSL.php
- > /wp-content/plugins/myworks-woo-sync-for-quickbooks-online/admin/partials/myworks-wc-qbo-sync-admin-push-dashboard.php
- 696× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'QuickBooks_Loader' not found in wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/Callbacks/API/Callbacks.php:25
- > PHP Warning
require_once(QuickBooks.php): failed to open stream: No such file or directory in wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/QBXML/Schema/Object/ReceivePaymentAddRq.php on line 16
- > PHP Warning
require_once(QuickBooks.php): failed to open stream: No such file or directory in wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/QBXML/Schema/Object/InvoiceModRq.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'QuickBooks_Loader' not found in wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/Encryption/Rc4.php:15
- > PHP Warning
require_once(QuickBooks.php): failed to open stream: No such file or directory in wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/QBXML/Schema/Object/tmp/CustomerModRq.php on line 16
- > PHP Warning
require_once(QuickBooks.php): failed to open stream: No such file or directory in wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/QBXML/Schema/Object/CustomerMsgQueryRq.php on line 16
- > PHP Warning
require_once(QuickBooks.php): failed to open stream: No such file or directory in wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/QBXML/Schema/Object/ClassQueryRq.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'QuickBooks_Loader' not found in wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/Status/Report.php:19
- > PHP Fatal error
Uncaught Error: Class 'QuickBooks_Loader' not found in wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/IPP/Object/Line.php:3
- > PHP Fatal error
require_once(): Failed opening required 'QuickBooks.php' (include_path='.:/usr/share/php') in wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/lib/quickbooks-lib/QuickBooks/QBXML/Schema/Object/InvoiceModRq.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: quickbooks, quickbooks online, woocommerce quickbooks, woocommerce sync, woocommerce...
myworks-woo-sync-for-quickbooks-online/myworks-woo-sync-for-quickbooks-online.php 77% from 13 tests
The entry point to "WooCommerce Sync for QuickBooks Online - by MyWorks Software" version 2.8.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.3" instead of "5.2")
- 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
- Description: The description should be shorter than 140 characters (currently 267 characters long)
Code Analysis 95% from 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 plugin155,918 lines of code in 688 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 662 | 26,607 | 36,341 | 136,446 |
CSS | 13 | 1,939 | 828 | 15,358 |
SVG | 4 | 0 | 0 | 2,674 |
JavaScript | 4 | 262 | 267 | 924 |
XML | 1 | 11 | 4 | 297 |
Markdown | 2 | 89 | 0 | 156 |
Maven | 1 | 5 | 0 | 41 |
JSON | 1 | 1 | 0 | 22 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,975)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 243)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 16.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,975.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 243.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 571 | |
▷ Abstract classes | 9 | 1.58% |
▷ Concrete classes | 562 | 98.42% |
▷ Final classes | 0 | 0.00% |
Methods | 6,017 | |
▷ Static methods | 656 | 10.90% |
▷ Public methods | 4,235 | 70.38% |
▷ Protected methods | 1,758 | 29.22% |
▷ Private methods | 24 | 0.40% |
Functions | 63 | |
▷ Named functions | 54 | 85.71% |
▷ Anonymous functions | 9 | 14.29% |
Constants | 976 | |
▷ Global constants | 682 | 69.88% |
▷ Class constants | 294 | 30.12% |
▷ Public constants | 294 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
97 PNG files occupy 1.76MB with 1.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/image/connect-icon.png | 2.42KB | 0.89KB | ▼ 63.11% |
admin/image/7-h.png | 2.95KB | 0.19KB | ▼ 93.47% |
admin/image/home-h.png | 49.30KB | 0.29KB | ▼ 99.42% |
admin/image/5-h.png | 2.96KB | 0.26KB | ▼ 91.21% |
admin/image/8.png | 74.49KB | 0.24KB | ▼ 99.68% |