Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.69ms] Passed 4 tests
A check of server-side resources used by Melu Managed Live Chat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.13 ▼1.88 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.44 ▼3.95 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 48.10 ▼7.12 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 90.87 ▼13.82 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 41.69 ▲2.37 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
MeluLiveChat_Plugin__installed |
widget_recent-comments |
MeluLiveChat_Plugin__version |
Browser metrics Passed 4 tests
Checking browser requirements for Melu Managed Live Chat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲142 | 13.12 ▼1.14 | 2.14 ▲0.48 | 45.54 ▲4.58 |
Dashboard /wp-admin | 2,259 ▲71 | 4.94 ▼0.88 | 103.09 ▼3.88 | 70.60 ▲26.49 |
Posts /wp-admin/edit.php | 2,145 ▲53 | 2.02 ▲0.00 | 38.67 ▲0.27 | 34.67 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,722 ▲189 | 22.43 ▼0.90 | 739.08 ▲81.18 | 47.70 ▼8.54 |
Media Library /wp-admin/upload.php | 1,435 ▲44 | 4.22 ▼0.04 | 96.76 ▼15.33 | 79.18 ▲29.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- MeluLiveChat_Plugin__version
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- MeluLiveChat_Plugin__installed
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/melu-live-chat/admin/settings.php:6
- > PHP Fatal error
Uncaught Error: Class 'Requests_Transport_cURL' not found in wp-content/plugins/melu-live-chat/Requests_Transport_cURL_Extended.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/melu-live-chat/melu-live-chat.php:58
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
melu-live-chat/melu-live-chat.php 92% from 13 tests
The entry point to "Melu Managed Live Chat" version 1.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin942 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 168 | 445 | 656 |
Sass | 2 | 55 | 6 | 259 |
SVG | 1 | 0 | 1 | 19 |
JavaScript | 1 | 1 | 0 | 7 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 2 | 28.57% |
▷ Concrete classes | 5 | 71.43% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 65.00% |
▷ Protected methods | 28 | 35.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
data/melu-logo.png | 45.28KB | 16.87KB | ▼ 62.76% |