78% cf7-mountstride-crm-integration

Code Review | Integration of Contact form 7 to mountstride CRM

WordPress plugin Integration of Contact form 7 to mountstride CRM scored78%from 54 tests.

About plugin

  • Plugin page: cf7-mountstride-c...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 23, 2019
  • Latest release: Jul 17, 2020
  • Number of updates: 6
  • Update frequency: every 55.0 days
  • Top authors: vsourz1td (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /703 total downloads

Benchmarks

Plugin footprint 83% 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.12MB] [CPU: ▼5.59ms] Passed 4 tests

This is a short check of server-side resources used by Integration of Contact form 7 to mountstride CRM
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.1846.52 ▼0.89
Dashboard /wp-admin3.73 ▲0.1656.42 ▼6.51
Posts /wp-admin/edit.php3.78 ▲0.1054.43 ▼1.44
Add New Post /wp-admin/post-new.php6.26 ▲0.1295.37 ▼13.52
Media Library /wp-admin/upload.php3.59 ▲0.1042.24 ▲2.91
CF7 to mountstride /wp-admin/admin.php?page=cf72mut-api-settings3.6041.58
Fields Mapping /wp-admin/admin.php?page=cf72mut-mapping3.8140.77

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Integration of Contact form 7 to mountstride CRM
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.38 ▲0.191.98 ▲0.0146.93 ▲2.34
Dashboard /wp-admin2,227 ▲505.73 ▲0.1089.22 ▼11.8538.58 ▼5.74
Posts /wp-admin/edit.php2,135 ▲352.04 ▲0.0436.98 ▼0.8133.34 ▼7.18
Add New Post /wp-admin/post-new.php1,576 ▲3618.38 ▼0.11616.94 ▼31.4155.08 ▼6.38
Media Library /wp-admin/upload.php1,429 ▲294.22 ▼0.02103.58 ▼14.2043.05 ▼3.59
CF7 to mountstride /wp-admin/admin.php?page=cf72mut-api-settings7721.7129.7223.47
Fields Mapping /wp-admin/admin.php?page=cf72mut-mapping8011.6927.6425.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cf7-mountstride-crm-integration/admin/partials/mappings.php
    • > /wp-content/plugins/cf7-mountstride-crm-integration/admin/partials/settings.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cf72mut-mapping
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/cf7-mountstride-crm-integration/admin/js/cf7-to-mountstride-admin.js?ver=1.0.0:178:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cf72mut-mapping
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 90% from 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
8 plugin tags: crm, wordpress crm, small business crm, wordpress lead management, leads to crm...

cf7-mountstride-crm-integration/cf7-to-mountstride.php 77% from 13 tests

The main file in "Integration of Contact form 7 to mountstride CRM" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cf7-mountstride-crm-integration.php" instead of "cf7-to-mountstride.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 288 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,713 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
SVG3022,754
CSS460721,488
PHP143036321,206
JavaScript26666265

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.34
Average class complexity9.86
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected