Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/leadroid-live-chat/wp-lea-droid-chat.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; leadroidchat has a deprecated constructor
Server metrics [RAM: ▼2.48MB] [CPU: ▼358.10ms] Passed 4 tests
An overview of server-side resources used by LeaDroid Chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.89 ▼1.63 | 4.32 ▼60.28 |
Dashboard /wp-admin | 1.91 ▼1.50 | 4.22 ▼36.97 |
Posts /wp-admin/edit.php | 1.91 ▼1.73 | 3.66 ▼38.77 |
Add New Post /wp-admin/post-new.php | 1.91 ▼5.06 | 3.82 ▼1,296.38 |
Media Library /wp-admin/upload.php | 1.91 ▼1.39 | 3.39 ▼20.99 |
LeaDroid Chat /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php | 1.91 | 4.53 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for LeaDroid Chat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 16.01 ▲0.24 | 5.84 ▼0.45 | 2.86 ▲0.31 |
Dashboard /wp-admin | 2,894 ▲33 | 6.12 ▼0.19 | 123.68 ▼17.16 | 233.19 ▲71.43 |
Posts /wp-admin/edit.php | 2,690 ▲5 | 3.23 ▼0.01 | 67.07 ▼0.56 | 166.49 ▲14.10 |
Add New Post /wp-admin/post-new.php | 1,685 ▼52 | 21.52 ▲0.90 | 448.07 ▼38.68 | 188.25 ▼14.77 |
Media Library /wp-admin/upload.php | 1,700 ▲11 | 5.50 ▲0.05 | 136.13 ▼18.22 | 191.83 ▼41.84 |
LeaDroid Chat /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php | 1,100 | 2.39 | 54.54 | 115.28 |
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
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/leadroid-live-chat/wp-lea-droid-chat.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; leadroidchat has a deprecated constructor
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php
- > Deprecated in wp-content/plugins/leadroid-live-chat/wp-lea-droid-chat.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; leadroidchat has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php
- > Network (severe)
wp-admin/images/leadroid.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: lead, chat, leadroid, live, sales...
leadroid-live-chat/wp-lea-droid-chat.php 92% from 13 tests
"LeaDroid Chat" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("leadroid-live-chat.php" instead of "wp-lea-droid-chat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected102 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 50 | 15 | 102 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/leadroid.png | 11.70KB | 4.43KB | ▼ 62.15% |
images/email-16px.png | 0.24KB | 0.19KB | ▼ 22.49% |