69% cf7-dynamics-crm

Code Review | WP Dynamics CRM for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms

WordPress plugin WP Dynamics CRM for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms scored69%from 54 tests.

About plugin

  • Plugin page: cf7-dynamics-crm
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 29, 2018
  • Latest release: Oct 7, 2023
  • Number of updates: 26
  • Update frequency: every 69.5 days
  • Top authors: CRMPerks (84.62%)asif876 (19.23%)

Code review

54 tests

User reviews

18 reviews

Install metrics

300+ active /5,791 total downloads

Benchmarks

Plugin footprint 48% 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.67MB] [CPU: ▲3.11ms] Passed 4 tests

An overview of server-side resources used by WP Dynamics CRM for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2841.21 ▼3.49
Dashboard /wp-admin4.14 ▲0.8461.20 ▲9.39
Posts /wp-admin/edit.php4.19 ▲0.8457.66 ▲11.73
Add New Post /wp-admin/post-new.php6.66 ▲0.7890.59 ▼1.26
Media Library /wp-admin/upload.php4.00 ▲0.7743.93 ▲7.78

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 71 new files
Database: 3 new tables, 7 new options
New tables
wp_vxcf_dynamics_log
wp_vxcf_dynamics
wp_vxcf_dynamics_accounts
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
vxcf_dynamics_version
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Dynamics CRM for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.31 ▼1.301.91 ▼0.5539.60 ▼4.19
Dashboard /wp-admin2,222 ▲344.81 ▼0.05108.46 ▼14.3540.17 ▼3.62
Posts /wp-admin/edit.php2,102 ▲131.97 ▼0.0439.46 ▲0.0936.75 ▲1.03
Add New Post /wp-admin/post-new.php1,551 ▲3723.18 ▲5.68654.22 ▼48.5368.33 ▲8.10
Media Library /wp-admin/upload.php1,407 ▲224.24 ▼0.00105.45 ▼4.8945.35 ▲2.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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 validation failed for this plugin
    • > Notice in wp-content/plugins/cf7-dynamics-crm/uninstall.php+12
    Undefined property: vxcf_dynamics_install::$id
  • Zombie tables were found after uninstall: 3 tables
    • wp_vxcf_dynamics_accounts
    • wp_vxcf_dynamics_log
    • wp_vxcf_dynamics
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • vxcf_dynamics_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: contact form 7 dynamics crm, wpforms dynamics crm integration, elementor forms dynamics crm, ninja forms dynamics crm

cf7-dynamics-crm/cf7-dynamics-crm.php 85% from 13 tests

The principal PHP file in "WP Dynamics CRM for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms" v. 1.1.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 235 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected8,063 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP207488007,146
SVG100640
CSS52310271
JavaScript31206

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 115)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity160.43
▷ Minimum class complexity6.00
▷ Maximum class complexity406.00
Average method complexity6.97
▷ Minimum method complexity1.00
▷ Maximum method complexity115.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods187
▷ Static methods3317.65%
▷ Public methods18297.33%
▷ Protected methods00.00%
▷ Private methods52.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
35 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_diagonals-small_50_93c3cd_40x40.png0.33KB0.10KB▼ 69.67%
images/failed.png1.54KB0.48KB▼ 68.88%
images/Android.png0.56KB0.62KB0.00%
css/images/ui-icons_ffeb33_256x240.png4.44KB4.17KB▼ 6.02%
images/filtered.png1.47KB0.48KB▼ 67.40%