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.00MB] [CPU: ▼138.43ms] Passed 4 tests
A check of server-side resources used by NetTantra Caldera Forms - Mautic Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.04 ▲13.19 |
Dashboard /wp-admin | 3.06 ▲0.00 | 45.63 ▲10.52 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 44.25 ▲2.53 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 89.84 ▼561.76 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 34.34 ▼5.00 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 160 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by NetTantra Caldera Forms - Mautic Integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.90 ▲0.38 | 10.99 ▲1.86 | 46.78 ▼9.21 |
Dashboard /wp-admin | 2,970 ▲39 | 6.04 ▲0.10 | 137.13 ▼9.66 | 110.69 ▼8.24 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 65.71 ▲3.16 | 92.98 ▼6.85 |
Add New Post /wp-admin/post-new.php | 1,683 ▲185 | 16.19 ▼2.66 | 428.61 ▲48.84 | 118.12 ▲5.81 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.02 ▲0.01 | 153.99 ▲13.49 | 126.38 ▲9.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script 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)
Even though no errors were found, this is by no means 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/nettantra-caldera-forms-mautic-integration/core.php
- 92× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mautic\\Api\\Api' not found in wp-content/plugins/nettantra-caldera-forms-mautic-integration/vendor/mautic/api-library/lib/Api/CompanyFields.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/nettantra-caldera-forms-mautic-integration/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:14
- > PHP Warning
fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/nettantra-caldera-forms-mautic-integration/vendor/mautic/api-library/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Mautic\\Tests\\Api\\MauticApiTestCase' not found in wp-content/plugins/nettantra-caldera-forms-mautic-integration/vendor/mautic/api-library/tests/Api/NotificationsTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Mautic\\Tests\\Api\\MauticApiTestCase' not found in wp-content/plugins/nettantra-caldera-forms-mautic-integration/vendor/mautic/api-library/tests/Api/UsersTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/nettantra-caldera-forms-mautic-integration/vendor/mautic/api-library/tests/Api/MauticApiTestCase.php:19
- > PHP Fatal error
Uncaught Error: Class 'Mautic\\Api\\Api' not found in wp-content/plugins/nettantra-caldera-forms-mautic-integration/vendor/mautic/api-library/lib/Api/Stages.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Mautic\\Auth\\AuthInterface' not found in wp-content/plugins/nettantra-caldera-forms-mautic-integration/vendor/mautic/api-library/lib/Auth/AbstractAuth.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/nettantra-caldera-forms-mautic-integration/vendor/mautic/api-library/tests/QueryBuilder/WhereBuilderTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Mautic\\Api\\Contacts' not found in wp-content/plugins/nettantra-caldera-forms-mautic-integration/vendor/mautic/api-library/lib/Api/Leads.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: mautic integration, caldera api integration, mautic api integration, caldera forms
nettantra-caldera-forms-mautic-integration/core.php 92% from 13 tests
"NetTantra Caldera Forms - Mautic Integration" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nettantra-caldera-forms-mautic-integration.php" instead of "core.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin16,417 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 1,734 | 3,704 | 7,534 |
CSS | 5 | 9 | 21 | 6,699 |
JavaScript | 4 | 538 | 200 | 1,393 |
JSON | 20 | 0 | 0 | 332 |
SVG | 1 | 0 | 0 | 229 |
Markdown | 3 | 83 | 0 | 217 |
XML | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 3 | |
Traits | 2 | |
Classes | 101 | |
▷ Abstract classes | 6 | 5.94% |
▷ Concrete classes | 95 | 94.06% |
▷ Final classes | 0 | 0.00% |
Methods | 639 | |
▷ Static methods | 5 | 0.78% |
▷ Public methods | 561 | 87.79% |
▷ Protected methods | 61 | 9.55% |
▷ Private methods | 17 | 2.66% |
Functions | 15 | |
▷ Named functions | 4 | 26.67% |
▷ Anonymous functions | 11 | 73.33% |
Constants | 18 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 18 | 100.00% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
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 |
vendor/mautic/api-library/tests/mauticlogo.png | 14.79KB | 6.48KB | ▼ 56.21% |