Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.44ms] Passed 4 tests
Server-side resources used by LeadBack - Callback, Chatbot and Live Chat Widgets for WordPress sites
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.23 ▲2.75 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.14 ▼7.97 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.32 ▲1.42 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.88 ▼13.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.13 ▲4.33 |
Server storage [IO: ▲9.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by LeadBack - Callback, Chatbot and Live Chat Widgets for WordPress sites
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.23 ▼1.14 | 1.84 ▲0.14 | 43.50 ▲4.74 |
Dashboard /wp-admin | 2,222 ▲31 | 5.86 ▲0.94 | 102.08 ▼7.57 | 39.29 ▼5.51 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.03 ▼0.01 | 40.49 ▲2.82 | 36.08 ▲4.49 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 23.30 ▲0.23 | 674.42 ▼11.39 | 54.48 ▲4.13 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.17 ▼0.04 | 109.21 ▲5.79 | 48.70 ▲5.85 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leadback/leadback.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/leadback/options-page.php:3
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (104 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #1 (WP Plugin settings), #2 (Widget and chat bot DEMO), #3 (Widget customization), #4 (Button customization), #5 (Multibutton modile widget customization), #6 (Multibutton modile widget DEMO)
leadback/leadback.php Passed 13 tests
"LeadBack - Callback, Chatbot and Live Chat Widgets for WordPress sites" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
This plugin makes a simple widget for callback and live chat on your website. Official LeadBack plugin.
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
No dangerous file extensions were detected224 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 42 | 30 | 114 |
PHP | 2 | 22 | 15 | 74 |
PO File | 1 | 6 | 6 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.12MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 121.99KB | 37.38KB | ▼ 69.35% |