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.04MB] [CPU: ▲1.57ms] Passed 4 tests
An overview of server-side resources used by GetInChat Live Chat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 47.68 ▼1.67 |
Dashboard /wp-admin | 3.35 ▲0.04 | 53.60 ▼3.95 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 53.49 ▲1.40 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.03 | 99.88 ▲10.49 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 47.95 ▲10.99 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
gic_setup_step |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GetInChat Live Chat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▼10 | 13.11 ▼1.59 | 1.75 ▼0.41 | 44.20 ▼0.47 |
Dashboard /wp-admin | 2,209 ▲3 | 5.80 ▼0.11 | 109.40 ▼0.31 | 68.93 ▲24.00 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.01 ▲0.02 | 38.25 ▼2.44 | 32.76 ▼4.37 |
Add New Post /wp-admin/post-new.php | 1,558 ▲16 | 23.78 ▲0.77 | 665.23 ▼210.38 | 68.00 ▲5.29 |
Media Library /wp-admin/upload.php | 1,397 ▲15 | 4.16 ▲0.00 | 115.17 ▲8.22 | 70.64 ▲24.12 |
Uninstaller [IO: ✅] [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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- gic_setup_step
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/getinchat/getinchat.php
- > /wp-content/plugins/getinchat/templates/script.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant GIC_SCRIPT_URL - assumed 'GIC_SCRIPT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/getinchat/templates/script.php on line 3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/getinchat/templates/page.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/getinchat/templates/error.php:9
- > PHP Warning
Use of undefined constant GIC_PLUGIN_URL - assumed 'GIC_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/getinchat/templates/error.php on line 4
- > PHP Notice
Undefined variable: channel_id in wp-content/plugins/getinchat/templates/script.php on line 2
- > PHP Notice
Undefined variable: error in wp-content/plugins/getinchat/templates/page.php on line 7
- > PHP Warning
Use of undefined constant GIC_PLUGIN_URL - assumed 'GIC_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/getinchat/templates/page.php on line 4
- > PHP Notice
Undefined variable: error in wp-content/plugins/getinchat/templates/error.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Tags: Too many tags (90 tag instead of maximum 10); only the first 5 tags are used in your directory listing
getinchat/getinchat.php 92% from 13 tests
The main PHP file in "GetInChat Live Chat" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin350 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 63 | 26 | 313 |
CSS | 1 | 3 | 0 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 23.08% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/getinchat-logo-full-512.png | 6.61KB | 3.50KB | ▼ 47.15% |
img/getinchat-icon.png | 1.68KB | 1.00KB | ▼ 40.54% |
img/getinchat-logo-512.png | 10.29KB | 4.62KB | ▼ 55.14% |