79% gf-insightly

Code Review | WP Gravity Forms Insightly

WordPress plugin WP Gravity Forms Insightly scored79%from 54 tests.

About plugin

  • Plugin page: gf-insightly
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: May 6, 2019
  • Latest release: Aug 10, 2023
  • Number of updates: 24
  • Update frequency: every 65.0 days
  • Top authors: CRMPerks (79.17%)asif876 (25%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /2,104 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▼0.91ms] Passed 4 tests

An overview of server-side resources used by WP Gravity Forms Insightly
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3844.02 ▲3.45
Dashboard /wp-admin3.74 ▲0.4451.33 ▲0.40
Posts /wp-admin/edit.php3.80 ▲0.4449.23 ▼7.67
Add New Post /wp-admin/post-new.php6.26 ▲0.3899.99 ▲0.17
Media Library /wp-admin/upload.php3.60 ▲0.3740.68 ▲4.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 3 new tables, 7 new options
New tables
wp_vxg_insightly
wp_vxg_insightly_accounts
wp_vxg_insightly_log
New WordPress options
db_upgraded
widget_recent-posts
vxg_insightly_pro_version
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

WP Gravity Forms Insightly: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.36 ▲0.001.80 ▼0.1942.86 ▼1.90
Dashboard /wp-admin2,217 ▲375.56 ▼0.0197.40 ▲12.7242.55 ▲0.68
Posts /wp-admin/edit.php2,126 ▲231.98 ▼0.0535.65 ▼6.9033.71 ▼4.94
Add New Post /wp-admin/post-new.php1,546 ▲1823.24 ▲0.57642.64 ▼4.9648.54 ▼4.49
Media Library /wp-admin/upload.php1,428 ▲254.22 ▲0.0096.04 ▼0.7743.46 ▲1.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 3 tables
    • wp_vxg_insightly_accounts
    • wp_vxg_insightly_log
    • wp_vxg_insightly
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • vxg_insightly_pro_version
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: gravity forms insightly, insightly, insightly gravity forms integration, insightly gravity forms, gravity forms

gf-insightly/gf-insightly.php 92% from 13 tests

The primary PHP file in "WP Gravity Forms Insightly" version 1.1.1 is used by WordPress to initiate all plugin functionality
It is important 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

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin7,041 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP207839177,035
JavaScript2105
CSS1001

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 120)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity122.00
▷ Minimum class complexity6.00
▷ Maximum class complexity349.00
Average method complexity6.41
▷ Minimum method complexity1.00
▷ Maximum method complexity120.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods179
▷ Static methods31.68%
▷ Public methods16994.41%
▷ Protected methods00.00%
▷ Private methods105.59%
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

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Android.png0.56KB0.62KB0.00%
images/active0.png0.22KB0.18KB▼ 16.67%
images/created.png1.52KB0.50KB▼ 67.24%
images/insightly-crm-logo.png3.61KB1.50KB▼ 58.41%
images/active1.png0.21KB0.18KB▼ 16.89%