Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.86MB] [CPU: ▼39.18ms] Passed 4 tests
Analyzing server-side resources used by Hsforms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.11 ▼0.35 | 14.33 ▼30.69 |
Dashboard /wp-admin | 3.16 ▼0.15 | 19.05 ▼30.33 |
Posts /wp-admin/edit.php | 3.16 ▼0.20 | 20.47 ▼23.74 |
Add New Post /wp-admin/post-new.php | 3.16 ▼2.73 | 21.19 ▼71.95 |
Media Library /wp-admin/upload.php | 3.16 ▼0.08 | 21.08 ▼9.03 |
Segments /wp-admin/edit.php?post_type=segment | 3.16 | 19.50 |
General Settings /wp-admin/admin.php?page=hsforms-options | 3.16 | 19.40 |
Hotelsuite API /wp-admin/admin.php?page=hsforms-api | 3.16 | 18.06 |
RateCodes /wp-admin/edit.php?post_type=ratecode | 3.16 | 18.82 |
TravelPeriods /wp-admin/edit.php?post_type=travelperiod | 3.16 | 19.51 |
Server storage [IO: ▲1.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Hsforms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,028 ▲282 | 14.77 ▲0.40 | 27.01 ▲24.80 | 37.79 ▼6.66 |
Dashboard /wp-admin | 2,241 ▲53 | 5.85 ▼0.06 | 108.47 ▼7.56 | 38.67 ▼9.97 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.02 ▲0.02 | 40.28 ▲4.81 | 36.36 ▼0.18 |
Add New Post /wp-admin/post-new.php | 6,482 ▲4,968 | 21.83 ▲4.24 | 961.65 ▲307.01 | 41.64 ▼5.22 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.21 ▲0.01 | 100.59 ▲1.36 | 45.18 ▲2.03 |
Segments /wp-admin/edit.php?post_type=segment | 1,093 | 2.00 | 38.87 | 30.43 |
General Settings /wp-admin/admin.php?page=hsforms-options | 1,045 | 2.06 | 25.35 | 30.61 |
Hotelsuite API /wp-admin/admin.php?page=hsforms-api | 838 | 2.03 | 28.50 | 27.77 |
RateCodes /wp-admin/edit.php?post_type=ratecode | 1,096 | 1.94 | 33.09 | 30.89 |
TravelPeriods /wp-admin/edit.php?post_type=travelperiod | 1,141 | 2.00 | 33.41 | 29.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/hsforms/src/init.php+184
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 96 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=travelperiod
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/hsforms/src/init.php+238
Trying to access array offset on value of type bool
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 items
- 19× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/hsforms/vendor/typo3fluid/fluid/examples/example_multiplepaths.php
- > /wp-content/plugins/hsforms/vendor/typo3fluid/fluid/examples/example_format.php
- > /wp-content/plugins/hsforms/vendor/typo3fluid/fluid/examples/example_mvc.php
- > /wp-content/plugins/hsforms/vendor/typo3fluid/fluid/examples/example_math.php
- > /wp-content/plugins/hsforms/vendor/typo3fluid/fluid/examples/example_cachestatic.php
- > /wp-content/plugins/hsforms/vendor/typo3fluid/fluid/examples/example_single.php
- > /wp-content/plugins/hsforms/vendor/typo3fluid/fluid/examples/example_variables.php
- > /wp-content/plugins/hsforms/vendor/typo3fluid/fluid/examples/example_customresolving.php
- > /wp-content/plugins/hsforms/vendor/typo3fluid/fluid/examples/example_escapingmodifier.php
- > /wp-content/plugins/hsforms/vendor/typo3fluid/fluid/examples/example_cachewarmup.php
- 202× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/hsforms/src/RateCode/rc.php:4
- > PHP Fatal error
Uncaught Error: Class 'TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper' not found in wp-content/plugins/hsforms/vendor/typo3fluid/fluid/src/ViewHelpers/CycleViewHelper.php:50
- > PHP Fatal error
Uncaught Error: Class 'TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractViewHelper' not found in wp-content/plugins/hsforms/vendor/typo3fluid/fluid/src/ViewHelpers/CaseViewHelper.php:20
- > PHP Fatal error
Uncaught Error: Class 'TYPO3Fluid\\Fluid\\Tests\\Functional\\Fixtures\\ViewHelpers\\AbstractEscapingViewHelper' not found in wp-content/plugins/hsforms/vendor/typo3fluid/fluid/tests/Functional/Fixtures/ViewHelpers/EscapeChildrenEnabledAndEscapeOutputDisabledViewHelper.php:20
- > PHP Fatal error
Uncaught Error: Interface 'TYPO3Fluid\\Fluid\\Core\\Parser\\ParsedTemplateInterface' not found in wp-content/plugins/hsforms/vendor/typo3fluid/fluid/src/Core/Parser/ParsingState.php:20
- > PHP Fatal error
Uncaught Error: Class 'TYPO3Fluid\\Fluid\\Tests\\Unit\\ViewHelpers\\ViewHelperBaseTestcase' not found in wp-content/plugins/hsforms/vendor/typo3fluid/fluid/tests/Unit/ViewHelpers/IfViewHelperTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'TYPO3Fluid\\Fluid\\Core\\Cache\\FluidCacheInterface' not found in wp-content/plugins/hsforms/vendor/typo3fluid/fluid/src/Core/Cache/SimpleFileCache.php:17
- > PHP Fatal error
Uncaught Error: Class 'TYPO3Fluid\\Fluid\\Tests\\UnitTestCase' not found in wp-content/plugins/hsforms/vendor/typo3fluid/fluid/tests/Unit/Core/Cache/FluidCacheWarmupResultTest.php:17
- > PHP Fatal error
Uncaught Error: Interface 'TYPO3Fluid\\Fluid\\Core\\Parser\\TemplateProcessorInterface' not found in wp-content/plugins/hsforms/vendor/typo3fluid/fluid/src/Core/Parser/TemplateProcessor/EscapingModifierTemplateProcessor.php:21
- > PHP Fatal error
Uncaught Error: Class 'TYPO3Fluid\\Fluid\\Tests\\UnitTestCase' not found in wp-content/plugins/hsforms/vendor/typo3fluid/fluid/tests/Unit/Core/ViewHelper/Traits/ParserRuntimeOnlyTest.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
hsforms/plugin.php 77% from 13 tests
The entry point to "Hsforms" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("hsforms.php" instead of "plugin.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 505 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected51,386 lines of code in 490 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 139 | 3,400 | 2,443 | 22,786 |
PHP | 276 | 3,203 | 10,813 | 18,154 |
JSON | 10 | 0 | 0 | 7,864 |
Markdown | 9 | 224 | 0 | 705 |
HTML | 43 | 128 | 35 | 637 |
PO File | 2 | 205 | 215 | 442 |
CSS | 6 | 25 | 19 | 412 |
Sass | 3 | 37 | 2 | 336 |
XML | 1 | 1 | 0 | 27 |
YAML | 1 | 9 | 0 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 54 | |
Interfaces | 15 | |
Traits | 6 | |
Classes | 217 | |
▷ Abstract classes | 16 | 7.37% |
▷ Concrete classes | 201 | 92.63% |
▷ Final classes | 0 | 0.00% |
Methods | 1,401 | |
▷ Static methods | 63 | 4.50% |
▷ Public methods | 1,242 | 88.65% |
▷ Protected methods | 150 | 10.71% |
▷ Private methods | 9 | 0.64% |
Functions | 90 | |
▷ Named functions | 29 | 32.22% |
▷ Anonymous functions | 61 | 67.78% |
Constants | 48 | |
▷ Global constants | 1 | 2.08% |
▷ Class constants | 47 | 97.92% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin