79% cf7-insightly

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

WordPress plugin WP Insightly for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms scored79%from 54 tests.

About plugin

  • Plugin page: cf7-insightly
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 17, 2018
  • Latest release: Oct 7, 2023
  • Number of updates: 29
  • Update frequency: every 62.7 days
  • Top authors: CRMPerks (89.66%)asif876 (13.79%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /4,309 total downloads

Benchmarks

Plugin footprint 65% 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.69MB] [CPU: ▼6.88ms] Passed 4 tests

An overview of server-side resources used by WP Insightly for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3338.66 ▼4.54
Dashboard /wp-admin4.18 ▲0.8350.89 ▼13.51
Posts /wp-admin/edit.php4.23 ▲0.8753.92 ▲3.51
Add New Post /wp-admin/post-new.php6.70 ▲0.8189.45 ▼12.97
Media Library /wp-admin/upload.php4.03 ▲0.8045.80 ▲9.79

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 85 new files
Database: 3 new tables, 7 new options
New tables
wp_vxcf_insightly_accounts
wp_vxcf_insightly
wp_vxcf_insightly_log
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
vxcf_insightly_version
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Insightly for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.48 ▲0.101.78 ▲0.0240.69 ▲0.88
Dashboard /wp-admin2,222 ▲374.81 ▼0.25102.69 ▼9.8240.39 ▼4.65
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0139.05 ▼2.0535.28 ▼0.12
Add New Post /wp-admin/post-new.php1,527 ▲117.52 ▼5.54680.21 ▲37.6064.07 ▲9.45
Media Library /wp-admin/upload.php1,404 ▲194.19 ▲0.03108.14 ▲10.4047.96 ▲4.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 3 tables
    • wp_vxcf_insightly
    • wp_vxcf_insightly_accounts
    • wp_vxcf_insightly_log
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • vxcf_insightly_version
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: insightly, insightly form integration, contact form 7 insightly, insightly forms, ninja forms insightly

cf7-insightly/cf7-insightly.php 85% from 13 tests

The main PHP file in "WP Insightly for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and 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
  • Description: Please keep the plugin description shorter than 140 characters (currently 246 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin8,451 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP208718177,534
SVG100640
CSS52310271
JavaScript31206

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 123)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity163.00
▷ Minimum class complexity6.00
▷ Maximum class complexity480.00
Average method complexity6.85
▷ Minimum method complexity1.00
▷ Maximum method complexity123.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods194
▷ Static methods63.09%
▷ Public methods18896.91%
▷ Protected methods00.00%
▷ Private methods63.09%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
49 PNG files occupy 0.22MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/premium/marketing-data.png6.02KB5.86KB▼ 2.66%
images/premium/user-assignment.png5.96KB6.00KB0.00%
css/images/ui-bg_diagonals-small_50_93c3cd_40x40.png0.33KB0.10KB▼ 69.67%
images/updated.png1.53KB0.50KB▼ 67.37%
images/premium/notification.png6.81KB7.12KB0.00%