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.19MB] [CPU: ▼1.43ms] Passed 4 tests
Analyzing server-side resources used by ZSquared Connector for Zoho CRM
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 45.46 ▲4.41 |
Dashboard /wp-admin | 3.49 ▲0.18 | 51.30 ▲3.52 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 46.71 ▲0.40 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 88.72 ▼14.04 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 42.34 ▲6.51 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
zsq_crm_daily_sync_qty |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
zsq_crm_daily_sync_price |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by ZSquared Connector for Zoho CRM
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.25 ▼1.13 | 1.72 ▼0.08 | 44.04 ▼5.00 |
Dashboard /wp-admin | 2,227 ▲39 | 4.96 ▲0.05 | 115.15 ▲0.64 | 43.89 ▼3.75 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.01 ▼0.01 | 35.84 ▲1.14 | 37.06 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.32 ▲5.23 | 686.36 ▲79.03 | 60.31 ▼0.04 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.21 ▲0.01 | 96.42 ▼0.16 | 44.68 ▲0.32 |
ZSquared Connector to Zoho CRM /wp-admin/zsq_crm.php | 26 | 0.44 | 0.07 | 16.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- zsq_crm_daily_sync_qty
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- zsq_crm_daily_sync_price
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/zsquared-connector-for-zoho-crm/templates/missing_api_key.php
- > /wp-content/plugins/zsquared-connector-for-zoho-crm/templates/activation_notice.php
- > /wp-content/plugins/zsquared-connector-for-zoho-crm/templates/scripts.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ZSQ_CRM_APP_HOME - assumed 'ZSQ_CRM_APP_HOME' (this will throw an Error in a future version of PHP) in wp-content/plugins/zsquared-connector-for-zoho-crm/templates/missing_api_key.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/zsquared-connector-for-zoho-crm/templates/options.php:1
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/zsq_crm.php
- > Network (severe)
wp-admin/zsq_crm.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 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
4 plugin tags: woocommerce, crm, zoho, ecommerce
zsquared-connector-for-zoho-crm/zsq-connector-crm.php 92% from 13 tests
This is the main PHP file of "ZSquared Connector for Zoho CRM" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("zsquared-connector-for-zoho-crm.php" instead of "zsq-connector-crm.php")
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
Good job! No executable or dangerous file extensions detected1,205 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 85 | 21 | 985 |
CSS | 1 | 43 | 16 | 220 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 29.75 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 3 | 9.09% |
▷ Public methods | 22 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 33.33% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/z-squared-logo.png | 11.21KB | 5.53KB | ▼ 50.68% |