Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼4.04ms] Passed 4 tests
Analyzing server-side resources used by Integration of Zoho Books and WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 40.57 ▼2.12 |
Dashboard /wp-admin | 3.69 ▲0.38 | 46.60 ▼1.51 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 50.89 ▲1.11 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 87.44 ▼8.26 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 37.44 ▼4.26 |
Server storage [IO: ▲2.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_bit_wc_zoho_books_log |
wp_bit_wc_zoho_books_integration |
New WordPress options |
---|
widget_theysaidso_widget |
bit_wc_zoho_books_installed |
theysaidso_admin_options |
bit_wc_zoho_books_version |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Integration of Zoho Books and WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲125 | 13.19 ▼1.11 | 1.60 ▼0.06 | 39.94 ▼8.62 |
Dashboard /wp-admin | 2,260 ▲69 | 5.83 ▲0.92 | 109.50 ▲10.50 | 42.23 ▼0.85 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.06 ▲0.06 | 40.59 ▲3.45 | 35.77 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,543 ▲8 | 23.17 ▼0.09 | 661.92 ▼24.29 | 54.69 ▼1.44 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 4.18 ▼0.02 | 95.47 ▼3.74 | 40.08 ▼6.02 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- db_upgraded
- bit_wc_zoho_books_version
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- bit_wc_zoho_books_installed
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 everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/integration-of-zoho-books-and-wc/views/view-root.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/integration-of-zoho-books-and-wc/includes/API/Routes/Routes.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: woocommerce order, zoho, woocommerce integration, connector, books...
integration-of-zoho-books-and-wc/bit_wc_zoho_books.php 77% from 13 tests
The main PHP file in "Integration of Zoho Books and WooCommerce" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("integration-of-zoho-books-and-wc.php" instead of "bit_wc_zoho_books.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,291 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 356 | 614 | 2,272 |
JSON | 2 | 0 | 0 | 16 |
JavaScript | 3 | 0 | 4 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 26.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 7 | 46.67% |
Methods | 104 | |
▷ Static methods | 34 | 32.69% |
▷ Public methods | 96 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 7.69% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin