Benchmarks
Plugin footprint 82% from 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.34MB] [CPU: ▼311.61ms] 75% from 4 tests
Server-side resources used by Forms by CaptainForm - Form Builder for WordPress
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 600.25ms on /wp-admin/admin.php?page=CaptainForm-Support)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.26 | 64.39 ▲14.09 |
Dashboard /wp-admin | 3.75 ▲0.34 | 34.37 ▼1.91 |
Posts /wp-admin/edit.php | 3.96 ▲0.32 | 46.27 ▼69.80 |
Add New Post /wp-admin/post-new.php | 7.61 ▲0.64 | 88.22 ▼1,172.55 |
Media Library /wp-admin/upload.php | 3.73 ▲0.43 | 27.63 ▼2.18 |
CaptainForm /wp-admin/options-general.php?page=CaptainFormOptions | 3.58 | 26.28 |
My Account /wp-admin/admin.php?page=CaptainForm-MyAccount | 3.58 | 982.82 |
New Form /wp-admin/admin.php?page=CaptainForm-NewForm | 3.59 | 566.12 |
My Forms /wp-admin/admin.php?page=CaptainForm | 3.59 | 516.41 |
Change Plan /wp-admin/admin.php?page=CaptainForm-ChangePlan | 3.59 | 496.53 |
Support /wp-admin/admin.php?page=CaptainForm-Support | 3.59 | 600.25 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 100 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_captainform_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Forms by CaptainForm - Form Builder for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,932 ▲178 | 16.10 ▲0.43 | 8.74 ▲2.28 | 2.24 ▼0.38 |
Dashboard /wp-admin | 2,939 ▲79 | 6.22 ▲0.09 | 124.32 ▼0.56 | 257.73 ▲87.55 |
Posts /wp-admin/edit.php | 2,739 ▲54 | 3.24 ▲0.01 | 66.32 ▼0.37 | 303.62 ▲158.19 |
Add New Post /wp-admin/post-new.php | 1,720 ▲30 | 16.78 ▼3.82 | 427.99 ▼24.76 | 166.12 ▲10.44 |
Media Library /wp-admin/upload.php | 1,772 ▲74 | 5.81 ▲0.30 | 132.71 ▼7.43 | 211.20 ▲26.22 |
CaptainForm /wp-admin/options-general.php?page=CaptainFormOptions | 1,117 | 2.60 | 54.99 | 125.31 |
My Account /wp-admin/admin.php?page=CaptainForm-MyAccount | 1,751 | 7.02 | 337.71 | 120.22 |
New Form /wp-admin/admin.php?page=CaptainForm-NewForm | 1,661 | 6.96 | 240.05 | 119.67 |
My Forms /wp-admin/admin.php?page=CaptainForm | 1,689 | 6.84 | 166.75 | 165.26 |
Change Plan /wp-admin/admin.php?page=CaptainForm-ChangePlan | 1,758 | 6.91 | 220.62 | 122.44 |
Support /wp-admin/admin.php?page=CaptainForm-Support | 1,748 | 6.83 | 174.20 | 106.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- widget_captainform_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 12× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/captainform/includes/integrations/class-captainform-integration-handler.php
- > /wp-content/plugins/captainform/public/partials/form-resources/captainform-lightbox-embedding.php
- > /wp-content/plugins/captainform/includes/integrations/class-captainform-integration-posts.php
- > /wp-content/plugins/captainform/public/partials/captainform-public-display.php
- > /wp-content/plugins/captainform/admin/partials/captainform-admin-plugin-credentials-error.php
- > /wp-content/plugins/captainform/admin/partials/captainform-admin-plugin-options.php
- > /wp-content/plugins/captainform/public/partials/form-resources/captainform-normal-embedding.php
- > /wp-content/plugins/captainform/includes/integrations/class-captainform-integration-users.php
- > /wp-content/plugins/captainform/public/partials/form-resources/captainform-global-vars.php
- > /wp-content/plugins/captainform/public/partials/form-resources/captainform-lightbox-window-leave-embedding.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: captainform_display_as_lightbox_name in wp-content/plugins/captainform/admin/partials/captainform-admin-publish-options.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/captainform/includes/class-captainform-widget.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/captainform/admin/partials/captainform-admin-publish-options.php:7
- > PHP Notice
Undefined variable: iframe_url in wp-content/plugins/captainform/admin/partials/captainform-support-chat.php on line 3
- > PHP Notice
Undefined variable: captainform_servicedomain in wp-content/plugins/captainform/public/partials/form-resources/captainform-global-vars.php on line 13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/captainform/admin/partials/captainform-admin-display.php:16
- > PHP Notice
Undefined variable: embedding_type in wp-content/plugins/captainform/public/partials/form-resources/captainform-global-vars.php on line 16
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=CaptainForm-Support
- > Other (warning) in unknown
http://www.googleadservices.com/pagead/conversion.js 80 Unrecognized feature: 'attribution-reporting'.
- > GET request to /wp-admin/admin.php?page=CaptainForm-MyAccount
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=CaptainForm-MyAccount 340:38 Uncaught ReferenceError: CFTracker is not defined
- > GET request to /wp-admin/admin.php?page=CaptainForm-NewForm
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=CaptainForm-NewForm 340:38 Uncaught ReferenceError: CFTracker is not defined
- > GET request to /wp-admin/admin.php?page=CaptainForm
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=CaptainForm 340:38 Uncaught ReferenceError: CFTracker is not defined
- > GET request to /wp-admin/admin.php?page=CaptainForm-ChangePlan
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=CaptainForm-ChangePlan 340:38 Uncaught ReferenceError: CFTracker is not defined
- > GET request to /wp-admin/admin.php?page=CaptainForm-Support
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=CaptainForm-Support 340:38 Uncaught ReferenceError: CFTracker is not defined
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 47 tag instead of maximum 10
captainform/captainform.php Passed 13 tests
The main PHP file in "Forms by CaptainForm - Form Builder for WordPress" ver. 2.5.3 adds more information about the plugin and also serves as the entry point for this plugin
127 characters long description:
CaptainForm is a fully-featured WordPress form plugin created for web designers, developers, and also for non-tech savvy users.
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
There were no executable files found in this plugin7,378 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 463 | 204 | 3,771 |
PHP | 37 | 511 | 1,396 | 2,172 |
CSS | 14 | 204 | 56 | 1,432 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 143 | |
▷ Static methods | 52 | 36.36% |
▷ Public methods | 94 | 65.73% |
▷ Protected methods | 2 | 1.40% |
▷ Private methods | 47 | 32.87% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
15 PNG files occupy 0.40MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
public/images/publish_lighbox_default_image_v2.png | 18.56KB | 1.02KB | ▼ 94.50% |
admin/css/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
admin/js/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
admin/images/icon-alert-close.png | 355.55KB | 0.28KB | ▼ 99.92% |