78% nds-wolfcrm-forms-integration

Code Review | WolfCRM Forms Integration

WordPress plugin WolfCRM Forms Integration scored78%from 54 tests.

About plugin

  • Plugin page: nds-wolfcrm-forms...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2023
  • Latest release: Jun 5, 2023
  • Number of updates: 17
  • Update frequency: every 11.1 days
  • Top authors: wolfcrm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /408 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.27ms] Passed 4 tests

A check of server-side resources used by WolfCRM Forms Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1164.72 ▲20.13
Dashboard /wp-admin3.43 ▲0.1355.97 ▲3.87
Posts /wp-admin/edit.php3.55 ▲0.1953.17 ▼2.12
Add New Post /wp-admin/post-new.php6.03 ▲0.1596.13 ▼9.89
Media Library /wp-admin/upload.php3.36 ▲0.1342.11 ▲7.06
Opciones /wp-admin/admin.php?page=wolfcrm-forms-opciones3.3432.14
Campos /wp-admin/admin.php?page=wolfcrm-forms3.3531.96
Formularios tipo /wp-admin/admin.php?page=wolfcrm-forms-formularios-tipo3.3433.65

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WolfCRM Forms Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲14213.52 ▼1.118.89 ▲7.1242.33 ▼1.04
Dashboard /wp-admin2,229 ▲525.68 ▲0.0689.33 ▲0.8442.64 ▲0.09
Posts /wp-admin/edit.php2,131 ▲312.00 ▲0.0533.20 ▼3.5236.16 ▼0.61
Add New Post /wp-admin/post-new.php1,552 ▲2623.03 ▼0.04656.03 ▲4.4548.62 ▼0.53
Media Library /wp-admin/upload.php1,431 ▲314.17 ▼0.0497.60 ▼12.7644.38 ▼0.43
Opciones /wp-admin/admin.php?page=wolfcrm-forms-opciones8561.9923.4828.69
Campos /wp-admin/admin.php?page=wolfcrm-forms1,1201.9922.2725.40
Formularios tipo /wp-admin/admin.php?page=wolfcrm-forms-formularios-tipo8222.0223.5628.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/nds-wolfcrm-forms-integration/public/partials/wolfcrm-forms-integration-module-public-display.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nds-wolfcrm-forms-integration/admin/includes/generar-menu-admin.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/nds-wolfcrm-forms-integration/admin/partials/wolfcrm-forms-integration-module-admin-formularios-tipo.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/nds-wolfcrm-forms-integration/admin/partials/wolfcrm-forms-integration-module-admin-campos.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nds-wolfcrm-forms-integration/admin/includes/generar-pagina-opciones.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wolf_admin_configuracion() in wp-content/plugins/nds-wolfcrm-forms-integration/admin/partials/wolfcrm-forms-integration-module-admin-opciones.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nds-wolfcrm-forms-integration/admin/index.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: forms, ninja forms, email form, contact form, crm...

nds-wolfcrm-forms-integration/wolfcrm-forms-integration-module.php 85% from 13 tests

"WolfCRM Forms Integration" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nds-wolfcrm-forms-integration.php" instead of "wolfcrm-forms-integration-module.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected607 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP17195597601
JavaScript24546
CSS2080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity1.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin