Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.70MB] [CPU: ▼5.29ms] 75% from 4 tests
An overview of server-side resources used by LeadSnap
Please fix the following
- CPU: You should keep total CPU usage under 500.00ms (currently 877.57ms on /wp-admin/options-general.php?page=lead-management-system-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 52.18 ▲9.30 |
Dashboard /wp-admin | 4.07 ▲0.72 | 45.89 ▼15.10 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 53.24 ▲11.02 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.70 | 82.27 ▼17.77 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 37.49 ▲2.40 |
LeadSnap Settings /wp-admin/options-general.php?page=lead-management-system-settings | 3.89 | 877.57 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wsl_settings |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for LeadSnap
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲167 | 13.65 ▼1.03 | 6.52 ▲4.74 | 42.85 ▼2.59 |
Dashboard /wp-admin | 2,213 ▲22 | 5.88 ▼0.03 | 99.40 ▼15.65 | 39.23 ▼4.80 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▲0.00 | 39.15 ▼0.38 | 36.15 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,550 ▲8 | 18.11 ▼0.11 | 649.36 ▲45.39 | 69.94 ▲11.76 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▲0.03 | 96.75 ▼0.74 | 42.78 ▲2.19 |
LeadSnap Settings /wp-admin/options-general.php?page=lead-management-system-settings | 803 | 2.03 | 23.96 | 24.76 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- wsl_settings
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/leadsnap/admin/partials/send_to_company_field.php
- 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Wncrm_Base' not found in wp-content/plugins/leadsnap/includes/class-wsl-cf7-api.php:3
- > PHP Fatal error
Uncaught Error: Class 'Wncrm_Base' not found in wp-content/plugins/leadsnap/includes/class-wsl-thriveform-api.php:3
- > PHP Notice
Undefined variable: company in wp-content/plugins/leadsnap/admin/partials/send_to_company_field.php on line 13
- > PHP Notice
Trying to get property 'type' of non-object in wp-content/plugins/leadsnap/admin/partials/send_to_company_field.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'Wncrm_Base' not found in wp-content/plugins/leadsnap/includes/class-wsl-elementor-api.php:3
- > PHP Fatal error
Uncaught Error: Class 'Wncrm_Base' not found in wp-content/plugins/leadsnap/includes/class-wsl-caldera-api.php:3
- > PHP Fatal error
Uncaught Error: Class 'Wncrm_Base' not found in wp-content/plugins/leadsnap/includes/class-wsl-divi-api.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wncrm_get_cf7_post_settings() in wp-content/plugins/leadsnap/admin/editor-panel.php:3
- > PHP Fatal error
Uncaught Error: Class 'Wncrm_Base' not found in wp-content/plugins/leadsnap/includes/class-wsl-typeform-api.php:3
- > PHP Fatal error
Uncaught Error: Class 'Wncrm_Base' not found in wp-content/plugins/leadsnap/includes/class-wsl-wpf-api.php:3
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: cf7, crm, management, contact-form, leads
leadsnap/leadsnap.php 92% from 13 tests
The main file in "LeadSnap" v. 1.25 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,432 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 661 | 119 | 4,418 |
JavaScript | 1 | 0 | 1 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 38.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 289 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 289 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin