Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▼2.49ms] Passed 4 tests
Server-side resources used by WooCommerce to Zoho CRM
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 44.73 ▲4.01 |
Dashboard /wp-admin | 4.17 ▲0.87 | 48.27 ▼2.37 |
Posts /wp-admin/edit.php | 4.24 ▲0.88 | 54.44 ▲3.30 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.89 | 77.53 ▼14.42 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 39.56 ▲3.53 |
W3S Woo Zoho /wp-admin/admin.php?page=w3swoozoho_settings | 4.04 | 37.72 |
Install Plugins /wp-admin/admin.php?page=w3swoozoho_settings_required_plugins | 4.07 | 38.10 |
Server storage [IO: ▲4.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 304 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_w3swoozoho_auths |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
w3swoozoho_crm |
w3swoozoho_installed |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce to Zoho CRM
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,077 ▲342 | 15.00 ▲0.60 | 1.75 ▼0.41 | 41.37 ▼3.43 |
Dashboard /wp-admin | 2,483 ▲298 | 6.68 ▲0.77 | 138.84 ▲28.72 | 45.20 ▼3.40 |
Posts /wp-admin/edit.php | 2,398 ▲309 | 3.55 ▲1.50 | 50.66 ▲11.50 | 34.72 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,578 ▲45 | 23.27 ▼0.09 | 654.33 ▼8.06 | 34.99 ▼17.33 |
Media Library /wp-admin/upload.php | 1,536 ▲148 | 4.41 ▲0.19 | 81.19 ▼21.45 | 45.65 ▲1.42 |
W3S Woo Zoho /wp-admin/admin.php?page=w3swoozoho_settings | 1,263 | 3.63 | 48.93 | 33.75 |
Install Plugins /wp-admin/admin.php?page=w3swoozoho_settings_required_plugins | 1,236 | 3.39 | 40.92 | 28.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_w3swoozoho_auths
- This plugin did not uninstall successfully, leaving 8 options in the database
- w3swoozoho_crm
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- w3swoozoho_installed
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 34× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/w3swoozoho/vendor/tareq1988/wordpress-settings-api-class/example/procedural-example.php:270
- > PHP Fatal error
Uncaught Error: Class 'zcrmsdk\\crm\\setup\\restclient\\ZCRMRestClient' not found in wp-content/plugins/w3swoozoho/vendor/zohocrm/php-sdk/samplecodes/tagAPI.php:10
- > PHP Warning
require_once(wp-content/plugins/w3swoozoho/vendor/zohocrm/php-sdk/samplecodes/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/w3swoozoho/vendor/zohocrm/php-sdk/samplecodes/rest.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'zcrmsdk\\crm\\api\\handler\\APIHandler' not found in wp-content/plugins/w3swoozoho/vendor/zohocrm/php-sdk/src/crm/api/handler/VariableAPIHandler.php:11
- > PHP Fatal error
Uncaught Error: Class 'zcrmsdk\\crm\\api\\handler\\APIHandler' not found in wp-content/plugins/w3swoozoho/vendor/zohocrm/php-sdk/src/crm/api/handler/RelatedListAPIHandler.php:15
- > PHP Fatal error
Uncaught Error: Class 'zcrmsdk\\crm\\api\\handler\\APIHandler' not found in wp-content/plugins/w3swoozoho/vendor/zohocrm/php-sdk/src/crm/bulkapi/handler/BulkReadAPIHandler.php:15
- > PHP Fatal error
Uncaught Error: Class 'zcrmsdk\\crm\\api\\response\\CommonAPIResponse' not found in wp-content/plugins/w3swoozoho/vendor/zohocrm/php-sdk/src/crm/api/response/APIResponse.php:8
- > PHP Fatal error
Uncaught Error: Class 'zcrmsdk\\crm\\api\\handler\\APIHandler' not found in wp-content/plugins/w3swoozoho/vendor/zohocrm/php-sdk/src/crm/api/handler/MassEntityAPIHandler.php:12
- > PHP Warning
require_once(wp-content/plugins/w3swoozoho/vendor/zohocrm/php-sdk/samplecodes/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/w3swoozoho/vendor/zohocrm/php-sdk/samplecodes/record.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'zcrmsdk\\oauth\\persistence\\ZohoOAuthPersistenceInterface' not found in wp-content/plugins/w3swoozoho/inc/Zoho/Auth/CRMOAuthPersistence.php:17
- > 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 Passed 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
7 plugin tags: w3scloud, crm, woocommerce, zoho, woocommerce to zoho...
w3swoozoho/w3swoozoho.php Passed 13 tests
The primary PHP file in "WooCommerce to Zoho CRM" version 1.3.0 is used by WordPress to initiate all plugin functionality
74 characters long description:
Connect Zoho with WooCommerce. Send customer information to your Zoho CRM.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin52,688 lines of code in 254 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 230 | 11,123 | 27,136 | 51,754 |
Markdown | 3 | 188 | 0 | 510 |
JSON | 5 | 0 | 0 | 200 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 12 | 2 | 0 | 29 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 38.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 160 | |
▷ Abstract classes | 2 | 1.25% |
▷ Concrete classes | 158 | 98.75% |
▷ Final classes | 1 | 0.63% |
Methods | 3,075 | |
▷ Static methods | 348 | 11.32% |
▷ Public methods | 2,590 | 84.23% |
▷ Protected methods | 38 | 1.24% |
▷ Private methods | 447 | 14.54% |
Functions | 102 | |
▷ Named functions | 98 | 96.08% |
▷ Anonymous functions | 4 | 3.92% |
Constants | 267 | |
▷ Global constants | 102 | 38.20% |
▷ Class constants | 165 | 61.80% |
▷ Public constants | 165 | 100.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
3 PNG files occupy 0.40MB with 0.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/tareq1988/wordpress-settings-api-class/screenshot-1.png | 389.59KB | 115.93KB | ▼ 70.24% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |