Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼291.34ms] Passed 4 tests
An overview of server-side resources used by Contact Form 7 - Capsule CRM - Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 58.62 ▲6.85 |
Dashboard /wp-admin | 3.41 ▲0.00 | 34.04 ▲1.57 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 40.26 ▲3.57 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 99.51 ▼1,158.97 |
Media Library /wp-admin/upload.php | 3.30 ▼0.01 | 24.57 ▼11.54 |
Server storage [IO: ▲2.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 172 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Contact Form 7 - Capsule CRM - Integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲62 | 16.19 ▲0.44 | 6.56 ▲0.57 | 2.06 ▲0.01 |
Dashboard /wp-admin | 2,895 ▲41 | 6.15 ▲0.01 | 116.23 ▼20.04 | 152.31 ▼4.76 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▲0.01 | 62.43 ▼4.19 | 144.89 ▲3.67 |
Add New Post /wp-admin/post-new.php | 1,689 ▼63 | 21.81 ▲0.49 | 409.90 ▼53.16 | 155.87 ▼11.01 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.48 ▼0.01 | 149.72 ▲5.20 | 186.42 ▼6.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/freemius/templates/ajax-loader.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function CFCC_CAPSULE_CRM\\absint() in wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/app/panel-page.php:10
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/app/option-page.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/integration-of-capsule-crm-for-contact-form-7/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
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 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #10 is missing in integration-of-capsule-crm-for-contact-form-7/assets to your readme.txt
integration-of-capsule-crm-for-contact-form-7/contact-form-7-capsule-crm.php 77% from 13 tests
The principal PHP file in "Contact Form 7 - Capsule CRM - Integration" v. 1.0.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("integration-of-capsule-crm-for-contact-form-7.php" instead of "contact-form-7-capsule-crm.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 184 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin32,054 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 7,382 | 16,078 | 31,582 |
JavaScript | 4 | 41 | 59 | 216 |
PO File | 1 | 72 | 72 | 173 |
CSS | 12 | 1 | 0 | 83 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,885)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 87.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,885.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,172 | |
▷ Static methods | 184 | 15.70% |
▷ Public methods | 829 | 70.73% |
▷ Protected methods | 15 | 1.28% |
▷ Private methods | 328 | 27.99% |
Functions | 97 | |
▷ Named functions | 96 | 98.97% |
▷ Anonymous functions | 1 | 1.03% |
Constants | 125 | |
▷ Global constants | 100 | 80.00% |
▷ Class constants | 25 | 20.00% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/contact-form-7-capsule-crm.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |