Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.71MB] [CPU: ▼0.86ms] 75% from 4 tests
Analyzing server-side resources used by Lead Generated
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 981.67ms on /wp-admin/options-general.php?page=lead-management-system-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.68 | 43.94 ▲6.97 |
Dashboard /wp-admin | 4.07 ▲0.76 | 53.97 ▲7.07 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 48.68 ▼0.06 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 88.69 ▼12.23 |
Media Library /wp-admin/upload.php | 3.93 ▲0.69 | 37.59 ▲1.87 |
Lead Generated Settings /wp-admin/options-general.php?page=lead-management-system-settings | 3.89 | 981.67 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wsl_settings |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Lead Generated
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲116 | 13.49 ▼1.10 | 8.08 ▲6.47 | 42.71 ▲0.31 |
Dashboard /wp-admin | 2,202 ▲21 | 5.61 ▼0.11 | 94.46 ▼2.54 | 46.03 ▲1.23 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.06 | 35.20 ▼0.64 | 31.29 ▼5.53 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.22 ▲5.05 | 676.92 ▲18.70 | 58.64 ▼15.08 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.19 ▲0.03 | 98.84 ▲0.07 | 42.62 ▼1.34 |
Lead Generated Settings /wp-admin/options-general.php?page=lead-management-system-settings | 796 | 2.00 | 25.44 | 25.96 |
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 does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- wsl_settings
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lead-generated/admin/partials/send_to_company_field.php
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Lg_Crm' not found in wp-content/plugins/lead-generated/includes/class-wsl-gravity-api.php:3
- > PHP Notice
Trying to get property 'type' of non-object in wp-content/plugins/lead-generated/admin/partials/send_to_company_field.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Lg_Crm' not found in wp-content/plugins/lead-generated/includes/class-wsl-divi-api.php:3
- > PHP Fatal error
Uncaught Error: Class 'Lg_Crm' not found in wp-content/plugins/lead-generated/includes/class-wsl-elementor-api.php:3
- > PHP Fatal error
Uncaught Error: Class 'Lg_Crm' not found in wp-content/plugins/lead-generated/includes/class-wsl-cf7-api.php:3
- > PHP Fatal error
Uncaught Error: Class 'Lg_Crm' not found in wp-content/plugins/lead-generated/includes/class-wsl-caldera-api.php:3
- > PHP Notice
Undefined variable: company in wp-content/plugins/lead-generated/admin/partials/send_to_company_field.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/lead-generated/lead-generated.php:29
- > PHP Fatal error
Uncaught Error: Class 'Lg_Crm' not found in wp-content/plugins/lead-generated/includes/class-wsl-beaver-api.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function lgcrm_get_cf7_post_settings() in wp-content/plugins/lead-generated/admin/editor-panel.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: crm, leads, management, cf7, contact-form
lead-generated/lead-generated.php 92% from 13 tests
The primary PHP file in "Lead Generated" version 1.25 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)
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
There were no executable files found in this plugin4,433 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 660 | 120 | 4,419 |
JavaScript | 1 | 0 | 1 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin