Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.43MB] [CPU: ▲2.06ms] Passed 4 tests
This is a short check of server-side resources used by Simple Floating Contact Form
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 41.31 ▲5.75 |
Dashboard /wp-admin | 3.76 ▲0.46 | 53.72 ▲6.69 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 53.32 ▲0.87 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 83.78 ▲2.78 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 35.86 ▼1.15 |
Simple Floating Contact Form /wp-admin/options-general.php?page=simple-floating-contact-form-general | 3.73 | 41.85 |
Server storage [IO: ▲5.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,677 new files
Database: no new tables, 42 new options
New WordPress options |
---|
sfcf-form-toggler |
sfcf-form-name-input |
sfcf-color-text |
sfcf-color-terms-link |
sfcf-color-bg |
sfcf-display-pages |
sfcf-color-success-icon |
sfcf-success-button |
sfcf-color-input-border |
sfcf-corners-square |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Floating Contact Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,249 ▲488 | 16.67 ▲2.14 | 23.59 ▲21.99 | 59.07 ▲18.55 |
Dashboard /wp-admin | 2,359 ▲182 | 7.20 ▲1.55 | 149.06 ▲66.08 | 41.09 ▲1.31 |
Posts /wp-admin/edit.php | 2,293 ▲193 | 3.98 ▲1.98 | 71.06 ▲36.22 | 32.04 ▼5.25 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 22.80 ▼0.36 | 666.25 ▼22.23 | 36.33 ▼30.28 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 5.38 ▲1.17 | 103.80 ▲3.55 | 43.31 ▲0.81 |
Simple Floating Contact Form /wp-admin/options-general.php?page=simple-floating-contact-form-general | 3,344 | 5.22 | 134.60 | 39.74 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 42 options in the database
- widget_recent-posts
- sfcf-display-posts
- sfcf-success-title
- sfcf-success-note
- sfcf-color-input-text-focus
- sfcf-corners-square
- sfcf-color-input-text
- can_compress_scripts
- sfcf-no-styling-option
- sfcf-form-icon
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 334× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simple-floating-contact-form/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4
- > PHP Fatal error
Trait 'Illuminate\\Support\\Traits\\Macroable' not found in wp-content/plugins/simple-floating-contact-form/vendor/illuminate/support/Str.php on line 12
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\Translation\\TranslatorInterface' not found in wp-content/plugins/simple-floating-contact-form/vendor/symfony/translation/IdentityTranslator.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Formatter\\MessageFormatterInterface' not found in wp-content/plugins/simple-floating-contact-form/vendor/symfony/translation/Formatter/MessageFormatter.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Extractor\\ExtractorInterface' not found in wp-content/plugins/simple-floating-contact-form/vendor/symfony/translation/Extractor/ChainExtractor.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/simple-floating-contact-form/vendor/nesbot/carbon/src/Carbon/Exceptions/UnitException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/simple-floating-contact-form/vendor/illuminate/support/Facades/Cache.php:25
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/simple-floating-contact-form/vendor/illuminate/support/Facades/Date.php:88
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/simple-floating-contact-form/vendor/composer/installers/src/Composer/Installers/WinterInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\Arrayable' not found in wp-content/plugins/simple-floating-contact-form/vendor/illuminate/support/MessageBag.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: floating contact form, simple contact form, contact button, contact form, floating form...
simple-floating-contact-form/simple-floating-contact-form.php Passed 13 tests
"Simple Floating Contact Form" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
39 characters long description:
Show the contact popup on your website.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/simple-floating-contact-form/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,391 | 10,505 | 36,525 | 53,042 |
SVG | 5 | 0 | 1 | 6,261 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 18 | 0 | 0 | 1,829 |
Markdown | 17 | 371 | 1 | 947 |
PO File | 1 | 75 | 82 | 171 |
YAML | 3 | 31 | 3 | 123 |
reStructuredText | 1 | 74 | 78 | 75 |
Bourne Shell | 1 | 3 | 11 | 12 |
DOS Batch | 1 | 0 | 0 | 4 |
JavaScript | 4 | 0 | 0 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 7.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 324.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 90 | |
Interfaces | 129 | |
Traits | 35 | |
Classes | 371 | |
▷ Abstract classes | 21 | 5.66% |
▷ Concrete classes | 350 | 94.34% |
▷ Final classes | 39 | 11.14% |
Methods | 3,171 | |
▷ Static methods | 643 | 20.28% |
▷ Public methods | 2,743 | 86.50% |
▷ Protected methods | 283 | 8.92% |
▷ Private methods | 145 | 4.57% |
Functions | 494 | |
▷ Named functions | 130 | 26.32% |
▷ Anonymous functions | 364 | 73.68% |
Constants | 202 | |
▷ Global constants | 15 | 7.43% |
▷ Class constants | 187 | 92.57% |
▷ Public constants | 183 | 97.86% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin