Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼139.31ms] Passed 4 tests
This is a short check of server-side resources used by LeadSquared Suite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.29 | 38.09 ▲14.25 |
Dashboard /wp-admin | 3.24 ▲0.18 | 46.42 ▲3.40 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 46.83 ▲1.96 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.17 | 88.83 ▼564.65 |
Media Library /wp-admin/upload.php | 3.18 ▲0.18 | 34.73 ▲2.07 |
Leadsquared Forms /wp-admin/edit.php?post_type=leadsquared_form | 3.22 | 35.61 |
Leadsquared CF7 Logs /wp-admin/edit.php?post_type=leadsquared_cf7_logs | 3.22 | 34.80 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 2 new options
New WordPress options |
---|
_leadsquared_rest_api |
leadsquared_modules |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LeadSquared Suite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,734 ▲138 | 16.34 ▲0.72 | 10.32 ▲0.68 | 46.02 ▼3.74 |
Dashboard /wp-admin | 2,988 ▲60 | 5.89 ▼0.12 | 142.46 ▼4.56 | 120.56 ▲5.70 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.62 ▼0.09 | 60.03 ▼5.06 | 90.74 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,690 ▲192 | 18.84 ▼0.14 | 377.73 ▲8.29 | 108.00 ▲2.00 |
Media Library /wp-admin/upload.php | 1,773 ▼40 | 4.99 ▼0.05 | 122.78 ▼20.69 | 145.51 ▲22.08 |
Leadsquared Forms /wp-admin/edit.php?post_type=leadsquared_form | 1,459 | 2.55 | 57.62 | 71.28 |
Leadsquared CF7 Logs /wp-admin/edit.php?post_type=leadsquared_cf7_logs | 1,464 | 2.65 | 58.60 | 76.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/leadsquared-suite/inc/lsq-script.php
- > /wp-content/plugins/leadsquared-suite/leadsquared.php
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/leadsquared-suite/inc/metabox-display.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function getMetadata() in wp-content/plugins/leadsquared-suite/inc/modules/tel.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function getMetadata() in wp-content/plugins/leadsquared-suite/inc/modules/legacy.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/leadsquared-suite/inc/lsqadmin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function getMetadata() in wp-content/plugins/leadsquared-suite/inc/modules/url.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function getMetadata() in wp-content/plugins/leadsquared-suite/inc/modules/email.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/leadsquared-suite/inc/metabox-tracking.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/leadsquared-suite/inc/settingsapi.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function getMetadata() in wp-content/plugins/leadsquared-suite/inc/modules/text.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/leadsquared-suite/inc/comment-form-configuration.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: leadsquared, contact form, leadsquared form
leadsquared-suite/leadsquared.php 92% from 13 tests
The principal PHP file in "LeadSquared Suite" v. 0.7.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("leadsquared-suite.php" instead of "leadsquared.php")
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
Everything looks great! No dangerous files found in this plugin2,835 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 412 | 145 | 2,639 |
JavaScript | 3 | 13 | 16 | 176 |
CSS | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 104.00 |
▷ Minimum class complexity | 104.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 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
9 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-25.png | 1.76KB | 0.76KB | ▼ 56.84% |
images/LS_Wp_icon.png | 2.55KB | 1.53KB | ▼ 40.23% |
images/tracking.png | 23.25KB | 7.59KB | ▼ 67.34% |
images/powered_by.png | 4.55KB | 2.32KB | ▼ 49.02% |
images/cf7.png | 7.26KB | 2.54KB | ▼ 65.06% |