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
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼5.58ms] Passed 4 tests
This is a short check of server-side resources used by 1CRM Customer Connection for Wordpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.27 ▼0.19 | 14.09 ▼32.98 |
Dashboard /wp-admin | 3.99 ▲0.68 | 52.88 ▲0.63 |
Posts /wp-admin/edit.php | 4.04 ▲0.68 | 58.31 ▼0.46 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.64 | 118.68 ▲17.60 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 50.04 ▲10.51 |
Usage Guide /wp-admin/admin.php?page=onecrm_p_shortcodes | 3.81 | 54.38 |
Dashboard Settings /wp-admin/admin.php?page=onecrm_p_dashboard | 3.91 | 40.85 |
Booking Calendar /wp-admin/admin.php?page=onecrm_p_booking | 3.91 | 40.63 |
1CRM Customer Connection /wp-admin/admin.php?page=onecrm_p | 3.81 | 42.75 |
Server storage [IO: ▲4.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 248 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
onecrm_p_bc_sync_running |
can_compress_scripts |
widget_onecrm_customer_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
1CRM Customer Connection for Wordpress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.37 ▼0.28 | 2.98 ▲1.18 | 45.25 ▼7.88 |
Dashboard /wp-admin | 2,240 ▲63 | 5.77 ▲0.11 | 93.49 ▼9.91 | 43.65 ▼0.67 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.23 ▲0.23 | 37.89 ▼3.75 | 33.42 ▼6.72 |
Add New Post /wp-admin/post-new.php | 1,561 ▲16 | 17.57 ▼5.84 | 661.71 ▼89.40 | 50.13 ▼20.72 |
Media Library /wp-admin/upload.php | 1,444 ▲50 | 4.19 ▼0.07 | 121.94 ▼2.15 | 52.56 ▼3.60 |
Usage Guide /wp-admin/admin.php?page=onecrm_p_shortcodes | 984 | 1.86 | 36.88 | 52.64 |
Dashboard Settings /wp-admin/admin.php?page=onecrm_p_dashboard | 847 | 1.86 | 31.49 | 30.71 |
Booking Calendar /wp-admin/admin.php?page=onecrm_p_booking | 717 | 1.38 | 10.94 | 25.58 |
1CRM Customer Connection /wp-admin/admin.php?page=onecrm_p | 886 | 1.84 | 30.36 | 26.77 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_onecrm_customer_widget
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- onecrm_p_bc_sync_running
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=onecrm_p_booking
- > Notice in wp-content/plugins/1crm-customer-connection/include/class/Auth/OneCrm.php+53
Trying to access array offset on value of type bool
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
- 92× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'OneCRM\\APIClient\\Client' not found in wp-content/plugins/1crm-customer-connection/include/class/API/Client.php:7
- > PHP Fatal error
Uncaught Error: Class 'OneCRM\\Portal\\Renderer\\HTML' not found in wp-content/plugins/1crm-customer-connection/include/class/Renderer/ListView.php:12
- > PHP Warning
Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/1crm-customer-connection/vendor/guzzlehttp/guzzle/build/Burgomaster.php on line 115
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/1crm-customer-connection/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'OneCRM\\APIClient\\Authentication' not found in wp-content/plugins/1crm-customer-connection/vendor/onecrm/api/src/APIClient/Authentication/OAuth.php:10
- > PHP Warning
Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/1crm-customer-connection/vendor/guzzlehttp/guzzle/build/Burgomaster.php on line 115
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/1crm-customer-connection/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/1crm-customer-connection/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'OneCRM\\Portal\\Renderer\\DetailView' not found in wp-content/plugins/1crm-customer-connection/include/class/Renderer/EditView.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/1crm-customer-connection/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=onecrm_p_booking
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).sortable is not a function" "TypeError: $(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/1crm-customer-connection/js/admin.js?ver=6.3.1:41:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=onecrm_p_booking
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).sortable is not a function
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is missing
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
1crm-customer-connection/onecrm_portal.php 85% from 13 tests
"1CRM Customer Connection for Wordpress" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("1crm-customer-connection.php" instead of "onecrm_portal.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin30,281 lines of code in 216 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 3,098 | 7,615 | 16,661 |
SVG | 3 | 0 | 12 | 4,482 |
JavaScript | 7 | 219 | 101 | 2,478 |
CSS | 8 | 173 | 30 | 2,330 |
Markdown | 11 | 846 | 0 | 2,260 |
PO File | 2 | 298 | 354 | 914 |
JSON | 10 | 0 | 0 | 745 |
HTML | 2 | 29 | 2 | 233 |
make | 2 | 19 | 0 | 69 |
XML | 1 | 0 | 0 | 68 |
YAML | 1 | 3 | 0 | 31 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 17 | |
Traits | 2 | |
Classes | 121 | |
▷ Abstract classes | 1 | 0.83% |
▷ Concrete classes | 120 | 99.17% |
▷ Final classes | 10 | 8.33% |
Methods | 990 | |
▷ Static methods | 100 | 10.10% |
▷ Public methods | 774 | 78.18% |
▷ Protected methods | 55 | 5.56% |
▷ Private methods | 161 | 16.26% |
Functions | 284 | |
▷ Named functions | 131 | 46.13% |
▷ Anonymous functions | 153 | 53.87% |
Constants | 81 | |
▷ Global constants | 11 | 13.58% |
▷ Class constants | 70 | 86.42% |
▷ Public constants | 70 | 100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/paypal_button.png | 2.24KB | 1.15KB | ▼ 48.50% |
css/images/list.png | 0.33KB | 0.24KB | ▼ 27.30% |
css/images/grid.png | 0.69KB | 0.42KB | ▼ 39.55% |