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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼4.60ms] Passed 4 tests
A check of server-side resources used by Integration of WooCommerce and Zoho Inventory
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 43.00 ▼1.58 |
Dashboard /wp-admin | 3.67 ▲0.36 | 57.42 ▲3.21 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 52.51 ▼1.39 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 88.30 ▼15.63 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 42.06 ▲0.21 |
Server storage [IO: ▲2.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_bit_wc_zoho_inventory_integration |
wp_bit_wc_zoho_inventory_log |
New WordPress options |
---|
bit_wc_zoho_inventory_version |
theysaidso_admin_options |
widget_recent-comments |
bit_wc_zoho_inventory_installed |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Integration of WooCommerce and Zoho Inventory
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.39 ▼0.16 | 1.60 ▼0.01 | 39.74 ▼0.17 |
Dashboard /wp-admin | 2,235 ▲58 | 5.66 ▼0.04 | 89.16 ▲1.52 | 43.94 ▲1.30 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 1.99 ▲0.02 | 36.22 ▼4.02 | 37.51 ▲3.02 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.67 ▲0.44 | 694.63 ▼6.14 | 57.01 ▲1.56 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.15 ▲0.02 | 99.31 ▼17.33 | 45.08 ▼6.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- bit_wc_zoho_inventory_installed
- bit_wc_zoho_inventory_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wc-zoho-inventory/views/view-root.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wc-zoho-inventory/includes/API/Routes/Routes.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
wc-zoho-inventory/bit_wc_zoho_inventory.php 77% from 13 tests
Analyzing the main PHP file in "Integration of WooCommerce and Zoho Inventory" version 2.6
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-zoho-inventory.php" instead of "bit_wc_zoho_inventory.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,286 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 305 | 601 | 2,268 |
JSON | 2 | 0 | 0 | 16 |
JavaScript | 2 | 0 | 3 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 18.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 6 | 42.86% |
Methods | 89 | |
▷ Static methods | 27 | 30.34% |
▷ Public methods | 82 | 92.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 7.87% |
Functions | 9 | |
▷ Named functions | 4 | 44.44% |
▷ Anonymous functions | 5 | 55.56% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin