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.11MB] [CPU: ▼2.02ms] Passed 4 tests
Analyzing server-side resources used by Smartsupp – live chat, chatbots, video recordings
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.08 ▼0.82 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.50 ▼8.79 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.79 ▲2.83 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 90.28 ▼1.31 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 41.11 ▲7.89 |
Smartsupp Live Chat /wp-admin/options-general.php?page=smartsupp | 3.36 | 33.19 |
Server storage [IO: ▲5.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
smartsupp |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Smartsupp – live chat, chatbots, video recordings: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.61 ▼0.78 | 2.03 ▼0.19 | 44.07 ▲5.38 |
Dashboard /wp-admin | 2,225 ▲37 | 5.83 ▼0.04 | 100.79 ▼11.12 | 89.43 ▲50.91 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 1.98 ▼0.03 | 33.76 ▼7.05 | 32.59 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,683 ▲169 | 22.47 ▲4.87 | 692.59 ▼14.39 | 59.20 ▲7.01 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.26 ▲0.12 | 99.88 ▼5.68 | 76.43 ▲29.38 |
Smartsupp Live Chat /wp-admin/options-general.php?page=smartsupp | 913 | 1.76 | 16.70 | 94.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require(wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/chat-code-generator/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/chat-code-generator/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/chat-code-generator/tests/ChatGeneratorTest.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Smartsupp\\Auth\\Request\\HttpRequest' not found in wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/php-partner-client/src/Smartsupp/Auth/Request/CurlRequest.php:10
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/chat-code-generator/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/chat-code-generator/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/php-partner-client/tests/Smartsupp/Auth/Request/CurlRequestTest.php:4
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/php-partner-client/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/php-partner-client/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/smartsupp-live-chat/admin/views/admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/php-partner-client/tests/Smartsupp/Auth/ApiTest.php:6
- > PHP Warning
require(wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/php-partner-client/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/smartsupp-live-chat/vendor/smartsupp/php-partner-client/tests/bootstrap.php on line 3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=smartsupp
- > Javascript (severe) in unknown
/wp-includes/js/dist/i18n.min.js?ver=7701b0c3857f914212ef 1:9103 Uncaught TypeError: Cannot read properties of undefined (reading 'hooks')
- > GET request to /wp-admin/options-general.php?page=smartsupp
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=smartsupp 225:0 Uncaught ReferenceError: wp is not defined
- > GET request to /wp-admin/options-general.php?page=smartsupp
- > Javascript (severe) in unknown
/wp-admin/js/common.min.js?ver=6.3.1 1:61 Uncaught ReferenceError: wp is not defined
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Donate link: Invalid URI ("")
smartsupp-live-chat/smartsupp.php 85% from 13 tests
The primary PHP file in "Smartsupp – live chat, chatbots, video recordings" version 3.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 327 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smartsupp-live-chat.php" instead of "smartsupp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,204 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 334 | 162 | 2,284 |
PHP | 21 | 375 | 663 | 1,486 |
JSON | 4 | 0 | 0 | 160 |
JavaScript | 1 | 10 | 2 | 104 |
Markdown | 2 | 31 | 0 | 94 |
YAML | 2 | 6 | 0 | 43 |
XML | 2 | 6 | 0 | 32 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 8 | 6.56% |
▷ Public methods | 101 | 82.79% |
▷ Protected methods | 2 | 1.64% |
▷ Private methods | 19 | 15.57% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 5.33MB with 3.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 1,387.45KB | 431.06KB | ▼ 68.93% |
screenshot-1.png | 1,048.65KB | 292.87KB | ▼ 72.07% |
images/logo.png | 4.56KB | 2.70KB | ▼ 40.84% |
images/chatbot.png | 118.80KB | 36.24KB | ▼ 69.50% |
screenshot-2.png | 1,254.28KB | 400.64KB | ▼ 68.06% |