Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▼6.56ms] Passed 4 tests
Analyzing server-side resources used by LiveAgent - Omnichannel Help Desk & Live Chat Software
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 42.85 ▼0.80 |
Dashboard /wp-admin | 3.75 ▲0.45 | 51.17 ▲1.93 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 47.66 ▼0.57 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 85.01 ▼26.81 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 37.58 ▲6.44 |
Server storage [IO: ▲5.44MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for LiveAgent - Omnichannel Help Desk & Live Chat Software
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.06 ▼0.34 | 2.78 ▲1.06 | 31.50 ▼17.90 |
Dashboard /wp-admin | 2,220 ▲32 | 5.43 ▲0.53 | 133.97 ▲19.84 | 88.51 ▲45.26 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.58 ▲0.57 | 55.96 ▲16.76 | 37.05 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,694 ▲160 | 22.87 ▼0.09 | 667.09 ▲16.05 | 30.93 ▼19.35 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.81 ▲0.51 | 114.90 ▲13.89 | 60.28 ▲14.57 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
include_once(WP_PLUGIN_DIR/liveagent/Config.php): failed to open stream: No such file or directory in wp-content/plugins/liveagent/liveagent.php on line 18
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/liveagent/Loader.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'liveagent_Loader' not found in wp-content/plugins/liveagent/liveagent.php:33
- > PHP Fatal error
Uncaught Error: Class 'liveagent_Form_Validator_Base' not found in wp-content/plugins/liveagent/Form/Validator/Account.class.php:11
- > PHP Fatal error
Uncaught Error: Class 'liveagent_Form_Base' not found in wp-content/plugins/liveagent/Form/Settings/Account.class.php:11
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/liveagent/liveagent.php on line 18
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/liveagent/liveagent.php on line 32
- > PHP Warning
include_once(): Failed opening 'WP_PLUGIN_DIR/liveagent/Loader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/liveagent/liveagent.php on line 32
- > PHP Warning
include_once(): Failed opening 'WP_PLUGIN_DIR/LIVEAGENT_PLUGIN_NAME/LoadClassException.class.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/liveagent/Loader.php on line 11
- > PHP Warning
include_once(WP_PLUGIN_DIR/LIVEAGENT_PLUGIN_NAME/LoadClassException.class.php): failed to open stream: No such file or directory in wp-content/plugins/liveagent/Loader.php on line 11
- > PHP Warning
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 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Creating a LiveAgent account), #2 (Example of a running chat from visitor's view), #3 (Screenshot from the application - Tickets grid), #4 (What you'll see after you connect an account), #5 (LiveAgent dashboard and leaderboards of your support agents), #6 (Example of a Knowledge Base generated by LiveAgent)
liveagent/liveagent.php Passed 13 tests
Analyzing the main PHP file in "LiveAgent - Omnichannel Help Desk & Live Chat Software" version 4.4.3
54 characters long description:
Plugin enables integration of Wordpress with LiveAgent
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,372 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 1 | 1,686 |
PHP | 17 | 189 | 326 | 1,348 |
JavaScript | 3 | 328 | 124 | 1,243 |
CSS | 3 | 38 | 10 | 727 |
PO File | 2 | 224 | 359 | 368 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 2 | 12.50% |
▷ Concrete classes | 14 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 2 | 1.96% |
▷ Public methods | 55 | 53.92% |
▷ Protected methods | 24 | 23.53% |
▷ Private methods | 23 | 22.55% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 4 | 10.53% |
▷ Class constants | 34 | 89.47% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.39MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/img/lock.png | 0.17KB | 0.18KB | 0.00% |
resources/img/menu-icon.png | 0.80KB | 0.93KB | 0.00% |
screenshot-5.png | 166.38KB | 55.59KB | ▼ 66.59% |
screenshot-4.png | 114.07KB | 39.34KB | ▼ 65.51% |
resources/img/ok_icon.png | 0.54KB | 0.66KB | 0.00% |