74% wp-infusionsoft-woocommerce

Code Review | WP Infusionsoft WooCommerce Plugin

WordPress plugin WP Infusionsoft WooCommerce Plugin scored74%from 54 tests.

About plugin

  • Plugin page: wp-infusionsoft-w...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: May 13, 2019
  • Latest release: Aug 10, 2023
  • Number of updates: 25
  • Update frequency: every 62.3 days
  • Top authors: CRMPerks (88%)asif876 (16%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /4,434 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.28MB] [CPU: ▼6.21ms] Passed 4 tests

This is a short check of server-side resources used by WP Infusionsoft WooCommerce Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2840.52 ▼2.25
Dashboard /wp-admin3.58 ▲0.2853.42 ▼0.03
Posts /wp-admin/edit.php3.70 ▲0.3447.46 ▼6.21
Add New Post /wp-admin/post-new.php6.17 ▲0.2890.81 ▼16.34
Media Library /wp-admin/upload.php3.50 ▲0.2742.96 ▲7.11

Server storage [IO: ▲1.30MB] [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: 67 new files
Database: 2 new tables, 7 new options
New tables
wp_vxc_infusionsoft_accounts
wp_vxc_infusionsoft_log
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
vxc_infusionsoft_pro_version
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Infusionsoft WooCommerce Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.18 ▼0.381.75 ▲0.2144.02 ▲3.33
Dashboard /wp-admin2,223 ▲435.63 ▲0.0389.37 ▲0.3836.97 ▼10.42
Posts /wp-admin/edit.php2,129 ▲291.98 ▲0.0037.51 ▲1.5335.35 ▼0.95
Add New Post /wp-admin/post-new.php1,546 ▲1823.03 ▼0.51682.48 ▲31.9953.97 ▲6.54
Media Library /wp-admin/upload.php1,425 ▲254.19 ▲0.05113.57 ▲2.4947.79 ▲1.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_vxc_infusionsoft_log
    • wp_vxc_infusionsoft_accounts
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • vxc_infusionsoft_pro_version
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-infusionsoft-woocommerce/templates/crm-order-box.php

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: infusionsoft, infusionsoftkeap, keap, infusionsoft and woocommerce

wp-infusionsoft-woocommerce/wp-infusionsoft-woocommerce.php Passed 13 tests

This is the main PHP file of "WP Infusionsoft WooCommerce Plugin" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
Integrates WooCommerce with Infusionsoft allowing new orders to be automatically sent to your Infusionsoft account.

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
There were no executable files found in this plugin8,442 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP187118167,610
SVG100640
CSS43712186
JavaScript31206

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 136)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity185.50
▷ Minimum class complexity9.00
▷ Maximum class complexity422.00
Average method complexity8.33
▷ Minimum method complexity1.00
▷ Maximum method complexity136.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods151
▷ Static methods31.99%
▷ Public methods14998.68%
▷ Protected methods00.00%
▷ Private methods21.32%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
32 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_ffeb33_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_white-lines_85_f7f7ba_40x100.png0.36KB0.09KB▼ 73.63%
css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
images/created.png1.52KB0.50KB▼ 67.24%