Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼0.37ms] Passed 4 tests
Server-side resources used by Light live chat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 39.35 ▼1.19 |
Dashboard /wp-admin | 3.64 ▲0.34 | 50.51 ▲2.62 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 45.99 ▼0.64 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 83.47 ▼2.28 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 36.88 ▲4.96 |
LightChat widget /wp-admin/options-general.php?page=light-live-chat | 5.03 | 46.09 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 536 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Light live chat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.42 ▼0.19 | 1.68 ▲0.09 | 44.16 ▲1.79 |
Dashboard /wp-admin | 2,202 ▲21 | 5.56 ▼0.07 | 93.81 ▼5.73 | 42.01 ▲0.75 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.02 | 33.34 ▼4.10 | 33.28 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,529 ▼1 | 23.59 ▲0.51 | 688.69 ▲25.67 | 59.75 ▲12.57 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.17 ▼0.05 | 93.17 ▼7.90 | 42.58 ▼5.02 |
LightChat widget /wp-admin/options-general.php?page=light-live-chat | 879 | 2.00 | 24.45 | 26.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/light-live-chat/classes/Plugin.php
- > /wp-content/plugins/light-live-chat/classes/Html.php
- > /wp-content/plugins/light-live-chat/classes/ACTIONS.php
- > /wp-content/plugins/light-live-chat/light-live-chat.php
- > /wp-content/plugins/light-live-chat/classes/Settings.php
- 144× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/light-live-chat/vendors/vendor/twig/twig/src/Test/IntegrationTestCase.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/light-live-chat/vendors/vendor/twig/twig/src/Test/NodeTestCase.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\Cache\\CacheInterface' not found in wp-content/plugins/light-live-chat/vendors/vendor/twig/twig/src/Cache/FilesystemCache.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/light-live-chat/vendors/vendor/twig/twig/src/Node/Expression/Binary/GreaterEqualBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/light-live-chat/vendors/vendor/twig/twig/src/Node/Expression/Binary/BitwiseXorBinary.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/light-live-chat/vendors/vendor/twig/twig/src/Node/Expression/NameExpression.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\TokenParser\\TokenParserInterface' not found in wp-content/plugins/light-live-chat/vendors/vendor/twig/twig/src/TokenParser/AbstractTokenParser.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\IncludeTokenParser' not found in wp-content/plugins/light-live-chat/vendors/vendor/twig/twig/src/TokenParser/EmbedTokenParser.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/light-live-chat/vendors/vendor/twig/twig/src/Node/MacroNode.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/light-live-chat/vendors/vendor/twig/twig/src/TokenParser/WithTokenParser.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2, #3 in light-live-chat/assets to your readme.txt
light-live-chat/light-live-chat.php Passed 13 tests
The entry point to "Light live chat" version 1.0.5 is a PHP file that has certain tags in its header comment area
119 characters long description:
Providing an easy way for a live chat widget integration. Multilingual. For LightChat.org customers (has a free tariff)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin20,739 lines of code in 517 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 378 | 4,040 | 5,139 | 16,904 |
reStructuredText | 114 | 2,495 | 2,472 | 2,962 |
JSON | 7 | 0 | 0 | 477 |
PO File | 1 | 27 | 33 | 79 |
Markdown | 4 | 25 | 0 | 71 |
JavaScript | 1 | 10 | 46 | 62 |
Bourne Shell | 1 | 6 | 1 | 43 |
Sass | 5 | 16 | 1 | 43 |
YAML | 1 | 7 | 0 | 43 |
Twig | 4 | 0 | 0 | 28 |
CSS | 1 | 6 | 1 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 5.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 14 | |
Traits | 0 | |
Classes | 352 | |
▷ Abstract classes | 14 | 3.98% |
▷ Concrete classes | 338 | 96.02% |
▷ Final classes | 54 | 15.98% |
Methods | 900 | |
▷ Static methods | 69 | 7.67% |
▷ Public methods | 753 | 83.67% |
▷ Protected methods | 59 | 6.56% |
▷ Private methods | 88 | 9.78% |
Functions | 113 | |
▷ Named functions | 99 | 87.61% |
▷ Anonymous functions | 14 | 12.39% |
Constants | 88 | |
▷ Global constants | 3 | 3.41% |
▷ Class constants | 85 | 96.59% |
▷ Public constants | 85 | 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