10% crm-lead-management

Code Review | CRM Lead Management

WordPress plugin CRM Lead Management scored10%from 54 tests.

About plugin

  • Plugin page: crm-lead-management
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 11, 2016
  • Latest release: Aug 16, 2016
  • Number of updates: 37
  • Update frequency: every 3.6 days
  • Top authors: sandeepsinghrules (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,497 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/crm-lead-management/crm-lead-management.php+18
    define(): Declaration of case-insensitive constants is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.91ms] Passed 4 tests

Server-side resources used by CRM Lead Management
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.39 ▼35.46
Dashboard /wp-admin2.08 ▼1.226.20 ▼46.89
Posts /wp-admin/edit.php2.08 ▼1.275.30 ▼44.05
Add New Post /wp-admin/post-new.php2.08 ▼3.806.91 ▼93.25
Media Library /wp-admin/upload.php2.08 ▼1.155.18 ▼31.45
All Leads /wp-admin/edit.php?post_type=trsleadmgmt_leads2.085.22
Settings /wp-admin/edit.php?post_type=trsleadmgmt_leads&page=trsleadmgmt-settings2.087.25
Add New /wp-admin/post-new.php?post_type=trsleadmgmt_leads2.086.19
Group Mail /wp-admin/edit.php?post_type=trsleadmgmt_leads&page=trsleadmgmt-group-mail2.086.30
Groups /wp-admin/edit-tags.php?taxonomy=lead_user_group&post_type=trsleadmgmt_leads2.085.87

Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
trsleadmgmt_general_settings
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CRM Lead Management
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.22 ▼1.071.63 ▲0.0239.37 ▼2.49
Dashboard /wp-admin2,248 ▲604.84 ▼1.2299.33 ▼3.6040.63 ▲0.63
Posts /wp-admin/edit.php2,128 ▲392.00 ▼0.0339.44 ▲1.0535.77 ▲1.77
Add New Post /wp-admin/post-new.php1,573 ▲5923.16 ▲5.63588.59 ▼88.1455.47 ▲5.45
Media Library /wp-admin/upload.php1,427 ▲394.23 ▲0.0895.17 ▼8.0545.28 ▲0.64
All Leads /wp-admin/edit.php?post_type=trsleadmgmt_leads1,1942.3236.2542.66
Settings /wp-admin/edit.php?post_type=trsleadmgmt_leads&page=trsleadmgmt-settings1,8941.9530.2030.70
Add New /wp-admin/post-new.php?post_type=trsleadmgmt_leads2,7938.82175.4669.50
Group Mail /wp-admin/edit.php?post_type=trsleadmgmt_leads&page=trsleadmgmt-group-mail1,6457.11135.3144.03
Groups /wp-admin/edit-tags.php?taxonomy=lead_user_group&post_type=trsleadmgmt_leads1,2982.1326.4527.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/crm-lead-management/crm-lead-management.php+18
    define(): Declaration of case-insensitive constants is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • trsleadmgmt_general_settings
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 66 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=lead_user_group&post_type=trsleadmgmt_leads
    • > Deprecated in wp-content/plugins/crm-lead-management/crm-lead-management.php+68
    define(): Declaration of case-insensitive constants is deprecated

SRP 50% 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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trsleadmgmt_get_lead_data_fields() in wp-content/plugins/crm-lead-management/inc/views/default-setting-page.php:113
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/crm-lead-management/crm-lead-management.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/crm-lead-management/inc/views/default-group-mail-page.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=trsleadmgmt_leads
    • > Javascript (severe) in unknown
    /wp-admin/post-new.php?post_type=trsleadmgmt_leads 414:60 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration Passed 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
No tags were detected

crm-lead-management/crm-lead-management.php Passed 13 tests

The primary PHP file in "CRM Lead Management" version 1.2.1 is used by WordPress to initiate all plugin functionality
26 characters long description:
CRM Lead Management Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,261 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP101701111,149
SVG100685
CSS32910219
JavaScript5610208

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions46
▷ Named functions46100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin