Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.39ms] Passed 4 tests
Analyzing server-side resources used by Zendesk Chat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.16 ▼1.02 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.25 ▼0.54 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.89 ▲0.71 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.13 ▼11.26 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.92 ▼0.74 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Zendesk Chat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.33 ▲0.10 | 1.72 ▼0.26 | 42.81 ▼0.35 |
Dashboard /wp-admin | 2,199 ▲19 | 5.56 ▼0.06 | 83.16 ▼9.91 | 76.25 ▲33.09 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 1.98 ▼0.02 | 36.28 ▲0.57 | 31.49 ▼4.76 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.01 ▼0.31 | 666.54 ▼16.67 | 118.46 ▲50.11 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.17 ▼0.01 | 101.71 ▼15.56 | 77.08 ▲28.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: messages in wp-content/plugins/zopim-live-chat/includes/views/linked-view.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zopim-live-chat/zopim.php:22
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/zopim-live-chat/includes/views/linked-view.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_notices() on null in wp-content/plugins/zopim-live-chat/includes/views/login-form.php:4
- > PHP Notice
Undefined variable: notices in wp-content/plugins/zopim-live-chat/includes/views/login-form.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/zopim-live-chat/includes/views/linked-view.php:7
- > PHP Notice
Undefined variable: messages in wp-content/plugins/zopim-live-chat/includes/views/login-form.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/zopim-live-chat/includes/views/login-form.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Zopim_Base_View' not found in wp-content/plugins/zopim-live-chat/includes/class-linked-view.php:3
- > PHP Warning
require_once(wp-content/plugins/zopim-live-chat/dev/wp-settings.php): failed to open stream: No such file or directory in wp-content/plugins/zopim-live-chat/dev/wp-config.php on line 89
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 33 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Chat window on your website - active chat), #2 (Account Configuration - Link Up), #3 (Account Configuration - Linked Up with Launch Dashboard), #4 (Dashboard View - Open new browser tab), #5 (Widget Customization from Dashboard)
zopim-live-chat/zopim.php 77% from 13 tests
The main PHP file in "Zendesk Chat" ver. 1.4.18 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/language" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zopim-live-chat.php" instead of "zopim.php")
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
Good job! No executable or dangerous file extensions detected1,171 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 251 | 478 | 1,032 |
CSS | 1 | 10 | 0 | 69 |
Markdown | 1 | 19 | 0 | 42 |
make | 1 | 8 | 6 | 21 |
Dockerfile | 1 | 1 | 0 | 4 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 8 | 16.67% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 3 | 6.25% |
▷ Private methods | 3 | 6.25% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 33 | 86.84% |
▷ Class constants | 5 | 13.16% |
▷ Public constants | 5 | 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
5 PNG files occupy 3.47MB with 2.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 470.66KB | 137.30KB | ▼ 70.83% |
screenshot-4.png | 1,262.21KB | 358.17KB | ▼ 71.62% |
screenshot-1.png | 644.68KB | 199.74KB | ▼ 69.02% |
screenshot-5.png | 722.41KB | 211.80KB | ▼ 70.68% |
screenshot-2.png | 453.89KB | 134.74KB | ▼ 70.31% |