84% la-crm-integration-with-contact-form

Code Review | LA CRM Integration with Contact Form

WordPress plugin LA CRM Integration with Contact Form scored84%from 54 tests.

About plugin

  • Plugin page: la-crm-integratio...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2
  • WordPress version: 6.3.1
  • First release: Feb 11, 2021
  • Latest release: Apr 10, 2023
  • Number of updates: 17
  • Update frequency: every 46.8 days
  • Top authors: yudiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.42ms] Passed 4 tests

This is a short check of server-side resources used by LA CRM Integration with Contact Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.54 ▲0.66
Dashboard /wp-admin3.31 ▲0.0048.47 ▼5.32
Posts /wp-admin/edit.php3.36 ▲0.0051.60 ▼1.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.40 ▼9.41
Media Library /wp-admin/upload.php3.23 ▲0.0031.66 ▼9.40

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for LA CRM Integration with Contact Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.24 ▼1.155.18 ▲3.5143.83 ▼0.39
Dashboard /wp-admin2,221 ▲216.08 ▲0.23107.27 ▲4.0442.01 ▼3.81
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0550.11 ▲8.2536.98 ▲1.85
Add New Post /wp-admin/post-new.php1,540 ▼523.28 ▼0.25675.42 ▲12.8052.16 ▲0.14
Media Library /wp-admin/upload.php1,400 ▼04.30 ▲0.1196.60 ▼17.3144.41 ▼5.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_verify_nonce() in wp-content/plugins/la-crm-integration-with-contact-form/admin/licf-api-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/la-crm-integration-with-contact-form/la-crm-integration-with-contact-form.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/la-crm-integration-with-contact-form/init/licf-functions.php:8

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Stable tag: Empty string
You can take inspiration from this readme.txt

la-crm-integration-with-contact-form/la-crm-integration-with-contact-form.php Passed 13 tests

"LA CRM Integration with Contact Form" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
45 characters long description:
Send Contact Form 7 data to Less Annoying CRM

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
Success! There were no dangerous files found in this plugin418 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31121403
CSS10015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin