Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/woo-zoho-crm/api/events.php+9
Trying to get property 'contact_sync' of non-object
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.44ms] Passed 4 tests
A check of server-side resources used by WooCommerce Zoho CRM Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 40.11 ▲0.93 |
Dashboard /wp-admin | 3.47 ▲0.12 | 48.64 ▼7.83 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 48.28 ▲9.78 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 82.21 ▼12.62 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 44.80 ▲10.71 |
Products Manual Sync /wp-admin/admin.php?page=zoho-product-queue | 3.38 | 37.08 |
Orders Manual Sync /wp-admin/admin.php?page=zoho-order-queue | 3.38 | 34.94 |
Zoho Report /wp-admin/admin.php?page=zoho-report | 3.39 | 30.32 |
Zoho CRM /wp-admin/admin.php?page=wczc-menu | 3.42 | 34.38 |
Upgrade Pro /wp-admin/admin.php?page=upgrade-pro | 3.37 | 32.76 |
Support /wp-admin/admin.php?page=support | 3.36 | 32.83 |
Customers Manual Sync /wp-admin/admin.php?page=zoho-queue | 3.39 | 32.05 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 41 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_woo_zoho_crm_report |
wp_woo_zoho_crm |
wp_woo_zoho_crm_field_mapping |
New WordPress options |
---|
zoho_db_version |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
recovery_mode_email_last_sent |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Zoho CRM Integration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 13.59 ▼0.62 | 1.71 ▼0.03 | 41.43 ▼1.88 |
Dashboard /wp-admin | 2,258 ▲67 | 5.80 ▲0.93 | 100.02 ▼17.10 | 80.89 ▲36.95 |
Posts /wp-admin/edit.php | 2,141 ▲55 | 1.98 ▼0.08 | 40.77 ▲4.47 | 34.28 ▲4.79 |
Add New Post /wp-admin/post-new.php | 1,708 ▲191 | 22.15 ▲4.66 | 678.48 ▲52.16 | 54.13 ▼1.29 |
Media Library /wp-admin/upload.php | 1,434 ▲52 | 4.23 ▼0.05 | 96.45 ▼1.50 | 82.80 ▲41.89 |
Products Manual Sync /wp-admin/admin.php?page=zoho-product-queue | 728 | 1.14 | 6.60 | 20.87 |
Orders Manual Sync /wp-admin/admin.php?page=zoho-order-queue | 955 | 2.18 | 26.41 | 26.21 |
Zoho Report /wp-admin/admin.php?page=zoho-report | 1,092 | 2.21 | 33.54 | 67.37 |
Zoho CRM /wp-admin/admin.php?page=wczc-menu | 1,041 | 2.38 | 33.58 | 42.90 |
Upgrade Pro /wp-admin/admin.php?page=upgrade-pro | 1,134 | 2.32 | 28.80 | 55.81 |
Support /wp-admin/admin.php?page=support | 846 | 2.21 | 27.85 | 31.10 |
Customers Manual Sync /wp-admin/admin.php?page=zoho-queue | 1,043 | 2.21 | 29.40 | 28.43 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- zoho_db_version
- widget_theysaidso_widget
- widget_recent-posts
- recovery_mode_email_last_sent
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=zoho-product-queue
- > Error in wp-content/plugins/woo-zoho-crm/templates/zoho-product-queue.php+64
Uncaught Error: Call to undefined function wc_get_products() in wp-content/plugins/woo-zoho-crm/templates/zoho-product-queue.php:64
Stack trace:
#0 wp-content/plugins/woo-zoho-crm/templates/zoho-product-queue.php(160): Product_List::record_count()
#1 wp-content/plugins/woo-zoho-crm/templates/zoho-product-queue.php(172): Product_List->prepare_items()
#2 wp-content/plugins/woo-zoho-crm/includes/plugin-pages.php(35): require_once('/var/www/wordpr...')
#3 wp-includes/class-wp-hook.php(310): zoho_product_queue()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 {main}
thrown
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PrepareArray' not found in wp-content/plugins/woo-zoho-crm/api/account.php:2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/woo-zoho-crm/api/events.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/woo-zoho-crm/api/events.php:5
- > PHP Fatal error
Uncaught Error: Class 'PrepareArray' not found in wp-content/plugins/woo-zoho-crm/api/product.php:2
- > PHP Fatal error
Uncaught Error: Class 'PrepareArray' not found in wp-content/plugins/woo-zoho-crm/api/salesorder.php:2
- > PHP Fatal error
Uncaught Error: Class 'PrepareArray' not found in wp-content/plugins/woo-zoho-crm/api/customer.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
woo-zoho-crm/woocommerce-zoho.php 85% from 13 tests
The entry point to "WooCommerce Zoho CRM Integration" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-zoho-crm.php" instead of "woocommerce-zoho.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected13,209 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1,086 | 19 | 8,787 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 18 | 199 | 251 | 1,565 |
JavaScript | 3 | 9 | 21 | 186 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.09 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 55 | |
▷ Static methods | 8 | 14.55% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/zoho.png | 3.70KB | 1.07KB | ▼ 71.12% |
images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |