Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/idcrm-contacts-companies/includes/lib/idcrm-activation-media.php+22
unlink(/tmp/logo_idresult_kv-6FsSuP.tmp): No such file or directory
Server metrics [RAM: ▲1.16MB] [CPU: ▲13.64ms] Passed 4 tests
Server-side resources used by id:CRM Contacts & Companies
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.65 ▲1.18 | 65.00 ▲23.78 |
Dashboard /wp-admin | 4.47 ▲1.16 | 71.12 ▲22.41 |
Posts /wp-admin/edit.php | 4.58 ▲1.22 | 62.61 ▲14.30 |
Add New Post /wp-admin/post-new.php | 7.08 ▲1.18 | 102.34 ▲3.37 |
Media Library /wp-admin/upload.php | 4.36 ▲1.13 | 48.91 ▲14.46 |
Event Types /wp-admin/edit-tags.php?taxonomy=contact_events | 4.42 | 52.22 |
Add Event /wp-admin/post-new.php?post_type=contact_event | 4.51 | 60.70 |
Contacts /wp-admin/edit.php?post_type=user_contact | 4.58 | 63.45 |
Contacts Statuses /wp-admin/edit-tags.php?taxonomy=user_status | 4.42 | 55.05 |
Companies Statuses /wp-admin/edit-tags.php?taxonomy=comp_status | 4.42 | 51.85 |
Add company /wp-admin/post-new.php?post_type=company | 4.52 | 65.86 |
Schedule /wp-admin/edit.php?post_type=contact_event | 4.46 | 52.11 |
Add contact /wp-admin/post-new.php?post_type=user_contact | 4.53 | 67.15 |
Contacts Sources /wp-admin/edit-tags.php?taxonomy=user_source | 4.38 | 57.85 |
Companies /wp-admin/edit.php?post_type=company | 4.58 | 56.26 |
Server storage [IO: ▲14.33MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 774 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
comp_status_children |
widget_theysaidso_widget |
can_compress_scripts |
contact_events_children |
widget_recent-comments |
theysaidso_admin_options |
user_status_children |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by id:CRM Contacts & Companies
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,190 ▲429 | 16.29 ▲1.94 | 24.75 ▲23.16 | 40.66 ▼0.65 |
Dashboard /wp-admin | 2,419 ▲245 | 6.45 ▲0.79 | 107.17 ▲18.85 | 36.32 ▼8.44 |
Posts /wp-admin/edit.php | 2,350 ▲250 | 3.63 ▲1.52 | 58.83 ▲25.91 | 35.05 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,604 ▲70 | 23.42 ▲5.30 | 592.07 ▼42.12 | 33.32 ▼50.37 |
Media Library /wp-admin/upload.php | 1,524 ▲127 | 4.57 ▲0.38 | 83.61 ▼14.36 | 40.31 ▼4.47 |
Event Types /wp-admin/edit-tags.php?taxonomy=contact_events | 1,854 | 3.59 | 41.82 | 33.91 |
Add Event /wp-admin/post-new.php?post_type=contact_event | 2,885 | 8.04 | 195.81 | 74.77 |
Contacts /wp-admin/edit.php?post_type=user_contact | 2,118 | 3.62 | 48.34 | 30.71 |
Contacts Statuses /wp-admin/edit-tags.php?taxonomy=user_status | 1,685 | 3.37 | 46.17 | 32.59 |
Companies Statuses /wp-admin/edit-tags.php?taxonomy=comp_status | 1,679 | 3.48 | 44.72 | 32.95 |
Add company /wp-admin/post-new.php?post_type=company | 2,973 | 7.92 | 175.61 | 62.36 |
Schedule /wp-admin/edit.php?post_type=contact_event | 1,422 | 3.57 | 49.04 | 29.29 |
Add contact /wp-admin/post-new.php?post_type=user_contact | 3,167 | 8.12 | 218.31 | 65.16 |
Contacts Sources /wp-admin/edit-tags.php?taxonomy=user_source | 1,499 | 3.36 | 50.19 | 32.74 |
Companies /wp-admin/edit.php?post_type=company | 1,981 | 3.58 | 48.89 | 27.14 |
Uninstaller [IO: ▲0.06MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- contact_events_children
- widget_theysaidso_widget
- comp_status_children
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- user_status_children
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=user_contact
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/idcrm-contacts-companies/admin/partials/idcrm-contacts-admin-display.php
- > /wp-content/plugins/idcrm-contacts-companies/public/partials/idcrm-contacts-public-display.php
- > /wp-content/plugins/idcrm-contacts-companies/templates/template-parts/archive-contacts-event.php
- 46× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/idcrm-contacts-companies/includes/actions/idcrm-action-menu.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/idcrm-contacts-companies/templates/inc/check-user.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/idcrm-contacts-companies/templates/inc/schedule-loop.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/idcrm-contacts-companies/templates/inc/footer.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/idcrm-contacts-companies/templates/crm.php:11
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/idcrm-contacts-companies/templates/inc/header.php on line 6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/idcrm-contacts-companies/includes/idcrm-settings.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/idcrm-contacts-companies/templates/inc/content-schedule-form.php:10
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/idcrm-contacts-companies/includes/actions/idcrm-action-menu.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/idcrm-contacts-companies/templates/inc/check-user.php:17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Screenshots: Screenshot #5 (https://youtu.be/MH9uepKJNKs) image missing
idcrm-contacts-companies/idcrm-contacts.php 92% from 13 tests
"id:CRM Contacts & Companies" version 2.1.16's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("idcrm-contacts-companies.php" instead of "idcrm-contacts.php")
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
There were no executable files found in this plugin268,375 lines of code in 746 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 560 | 22,435 | 15,581 | 229,720 |
CSS | 25 | 1,664 | 217 | 15,074 |
Sass | 64 | 1,056 | 883 | 11,936 |
PHP | 78 | 1,280 | 733 | 7,548 |
SVG | 9 | 0 | 8 | 1,413 |
LESS | 1 | 187 | 7 | 758 |
Markdown | 4 | 349 | 0 | 630 |
TypeScript | 2 | 126 | 87 | 543 |
PO File | 1 | 248 | 346 | 542 |
JSON | 2 | 0 | 0 | 211 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 14.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 45 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 83 | 38.43% |
▷ Public methods | 182 | 84.26% |
▷ Protected methods | 4 | 1.85% |
▷ Private methods | 30 | 13.89% |
Functions | 29 | |
▷ Named functions | 22 | 75.86% |
▷ Anonymous functions | 7 | 24.14% |
Constants | 35 | |
▷ Global constants | 5 | 14.29% |
▷ Class constants | 30 | 85.71% |
▷ Public constants | 30 | 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
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/images/logo-text.png | 4.67KB | 3.49KB | ▼ 25.30% |
templates/images/logo-light-text.png | 5.30KB | 3.98KB | ▼ 24.95% |
templates/images/custom-select.png | 14.64KB | 0.15KB | ▼ 98.97% |
templates/images/logo-text-crm.png | 4.47KB | 3.41KB | ▼ 23.79% |
templates/images/logo-icon.png | 5.58KB | 2.03KB | ▼ 63.68% |