Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.25ms] Passed 4 tests
Analyzing server-side resources used by Live Agent Call
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.26 ▼1.26 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.24 ▼1.57 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 49.59 ▼2.87 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.88 ▼13.14 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.81 ▼3.43 |
Live Agent Call /wp-admin/options-general.php?page=Live-Agent-Call | 3.23 | 33.89 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
lac |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Live Agent Call
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲185 | 15.08 ▲0.88 | 27.99 ▲26.08 | 43.26 ▼3.10 |
Dashboard /wp-admin | 2,242 ▲57 | 5.39 ▲0.49 | 105.74 ▲5.95 | 38.61 ▼8.78 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.39 ▲0.37 | 46.04 ▲4.19 | 48.63 ▲13.46 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.53 ▲0.35 | 631.25 ▲30.21 | 34.78 ▼14.80 |
Media Library /wp-admin/upload.php | 1,421 ▲36 | 4.88 ▲0.67 | 102.03 ▼5.05 | 41.92 ▼4.40 |
Live Agent Call /wp-admin/options-general.php?page=Live-Agent-Call | 1,856 | 3.28 | 60.29 | 42.75 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- lac
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=Live-Agent-Call
- > Notice in wp-content/plugins/live-agent-call/Live Agent Call.php+102
Undefined index: customersipdomain
- > GET request to /wp-admin/options-general.php?page=Live-Agent-Call
- > Notice in wp-content/plugins/live-agent-call/Live Agent Call.php+105
Undefined index: customerwss
- > GET request to /wp-admin/options-general.php?page=Live-Agent-Call
- > Notice in wp-content/plugins/live-agent-call/Live Agent Call.php+108
Undefined index: customerauthusername
- > GET request to /wp-admin/options-general.php?page=Live-Agent-Call
- > Notice in wp-content/plugins/live-agent-call/Live Agent Call.php+111
Undefined index: customersipusername
- > GET request to /wp-admin/options-general.php?page=Live-Agent-Call
- > Notice in wp-content/plugins/live-agent-call/Live Agent Call.php+114
Undefined index: customersippassword
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Live-Agent-Call
- > Notice in wp-content/plugins/live-agent-call/Live Agent Call.php+265
Undefined index: agentsipdomain
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Live-Agent-Call
- > Notice in wp-content/plugins/live-agent-call/Live Agent Call.php+266
Undefined index: agentwss
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Live-Agent-Call
- > Notice in wp-content/plugins/live-agent-call/Live Agent Call.php+268
Undefined index: agentauthusername
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Live-Agent-Call
- > Notice in wp-content/plugins/live-agent-call/Live Agent Call.php+267
Undefined index: agentsipusername
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Live-Agent-Call
- > Notice in wp-content/plugins/live-agent-call/Live Agent Call.php+269
Undefined index: agentsippassword
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: click to call, call now, agent, ip calling, live call...
live-agent-call/Live Agent Call.php 92% from 13 tests
The main file in "Live Agent Call" v. 0.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("live-agent-call.php" instead of "Live Agent Call.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin10,695 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,928 | 1,676 | 9,579 |
CSS | 1 | 86 | 13 | 795 |
PHP | 1 | 58 | 27 | 321 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
agentdisconnect.png | 47.98KB | 18.40KB | ▼ 61.66% |