Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▲2.55ms] Passed 4 tests
This is a short check of server-side resources used by Collect Lead Form
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 45.28 ▲5.10 |
Dashboard /wp-admin | 3.70 ▲0.39 | 51.58 ▲3.17 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 56.54 ▲8.77 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 87.12 ▲0.57 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 35.76 ▲1.37 |
Collected Leads /wp-admin/edit.php?post_type=clcf_leads | 3.67 | 39.42 |
Lead Forms /wp-admin/edit.php?post_type=clcf_leads&page=collect-lead-forms | 3.57 | 38.23 |
Server storage [IO: ▲3.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 602 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Collect Lead Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,209 ▲474 | 18.86 ▲4.48 | 6.42 ▲4.66 | 42.03 ▼4.82 |
Dashboard /wp-admin | 2,511 ▲323 | 9.22 ▲4.23 | 176.03 ▲59.35 | 38.81 ▼4.96 |
Posts /wp-admin/edit.php | 2,423 ▲334 | 6.18 ▲4.04 | 73.83 ▲34.71 | 31.73 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,413 ▼106 | 16.74 ▼6.69 | 530.71 ▼128.28 | 30.07 ▼25.60 |
Media Library /wp-admin/upload.php | 1,559 ▲171 | 6.64 ▲2.35 | 111.90 ▲12.38 | 40.38 ▼4.05 |
Collected Leads /wp-admin/edit.php?post_type=clcf_leads | 1,396 | 6.19 | 74.85 | 25.94 |
Configure Server /wp-admin/crb_carbon_fields_container_configure_server.php | 26 | 0.44 | 0.07 | 14.38 |
Lead Forms /wp-admin/edit.php?post_type=clcf_leads&page=collect-lead-forms | 1,386 | 5.94 | 66.50 | 115.68 |
Form Messages /wp-admin/crb_carbon_fields_container_form_messages.php | 26 | 0.44 | 0.12 | 6.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/collect-lead-form/views/admin/cl-forms.php
- > /wp-content/plugins/collect-lead-form/views/email-template.php
- > /wp-content/plugins/collect-lead-form/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 241× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/collect-lead-form/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/collect-lead-form/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/collect-lead-form/index.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/collect-lead-form/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php:4
- > PHP Warning
Use of undefined constant CLCF__PLUGIN_URL - assumed 'CLCF__PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/collect-lead-form/views/admin/cl-forms.php on line 56
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Array_Translator' not found in wp-content/plugins/collect-lead-form/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Json_Translator.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/collect-lead-form/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php:4
- > PHP Notice
Undefined variable: hideErrorsCookieName in wp-content/plugins/collect-lead-form/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 21
- > PHP Warning
Use of undefined constant CLCF__PLUGIN_URL - assumed 'CLCF__PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/collect-lead-form/views/admin/cl-forms.php on line 86
- > PHP Fatal error
Uncaught Error: Call to undefined function CollectLeadContactForm\\esc_html() in wp-content/plugins/collect-lead-form/CLCFClasses/CLCF_Store.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/crb_carbon_fields_container_configure_server.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_configure_server.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/crb_carbon_fields_container_form_messages.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_form_messages.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #6 in collect-lead-form/assets to your readme.txt
collect-lead-form/collect-lead-form.php 85% from 13 tests
The main PHP script in "Collect Lead Form" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin36,407 lines of code in 535 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 268 | 3,175 | 7,312 | 12,262 |
JSON | 8 | 0 | 0 | 10,343 |
JavaScript | 168 | 1,793 | 3,700 | 7,860 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 49 | 340 | 0 | 1,794 |
CSS | 9 | 278 | 740 | 1,748 |
YAML | 3 | 31 | 3 | 123 |
Markdown | 4 | 25 | 0 | 75 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 236 | |
▷ Abstract classes | 12 | 5.08% |
▷ Concrete classes | 224 | 94.92% |
▷ Final classes | 1 | 0.45% |
Methods | 1,044 | |
▷ Static methods | 107 | 10.25% |
▷ Public methods | 830 | 79.50% |
▷ Protected methods | 199 | 19.06% |
▷ Private methods | 15 | 1.44% |
Functions | 112 | |
▷ Named functions | 23 | 20.54% |
▷ Anonymous functions | 89 | 79.46% |
Constants | 36 | |
▷ Global constants | 9 | 25.00% |
▷ Class constants | 27 | 75.00% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/forms/touch.png | 18.99KB | 4.97KB | ▼ 73.83% |