77% instantio

Code Review | = Instantio - WooCommerce Quick Checkout | Instant Checkout, Side Cart & Popup Cart

WordPress plugin = Instantio - WooCommerce Quick Checkout | Instant Checkout, Side Cart & Popup Cart scored77%from 54 tests.

About plugin

  • Plugin page: instantio
  • Plugin version: 3.1.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 26, 2021
  • Latest release: Nov 16, 2023
  • Number of updates: 175
  • Update frequency: every 5.9 days
  • Top authors: psdtowpservice (88.57%)fida02 (8.57%)mdshuvo (4%)

Code review

54 tests

User reviews

14 reviews

Install metrics

600+ active /26,671 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.62MB] [CPU: ▼1.84ms] Passed 4 tests

This is a short check of server-side resources used by = Instantio - WooCommerce Quick Checkout | Instant Checkout, Side Cart & Popup Cart
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.95 ▲1.4939.69 ▼2.69
Dashboard /wp-admin4.93 ▲1.5853.99 ▼7.32
Posts /wp-admin/edit.php5.16 ▲1.8060.22 ▲16.71
Add New Post /wp-admin/post-new.php7.65 ▲1.7692.79 ▼6.39
Media Library /wp-admin/upload.php4.87 ▲1.6444.79 ▲9.03
Dashboard /wp-admin/admin.php?page=ins_dashboard4.9642.29

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 200 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
tf_display_admin_notice_time

Browser metrics 75% from 4 tests

An overview of browser requirements for = Instantio - WooCommerce Quick Checkout | Instant Checkout, Side Cart & Popup Cart
It is time to focus on the following
  • Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 91,356 on /wp-admin/admin.php?page=wiopt#tab=general)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,724 ▼2313.47 ▼0.881.01 ▼0.6713.85 ▼29.77
Dashboard /wp-admin2,249 ▲725.73 ▲0.1599.62 ▼1.4243.40 ▼1.64
Posts /wp-admin/edit.php2,535 ▲4325.33 ▲3.3797.81 ▲59.6438.89 ▲1.36
Add New Post /wp-admin/post-new.php1,640 ▲11423.22 ▲0.09657.03 ▼21.5244.49 ▼12.19
Media Library /wp-admin/upload.php1,454 ▲544.29 ▲0.1085.02 ▼23.4745.81 ▼3.41
Dashboard /wp-admin/admin.php?page=ins_dashboard2,2315.1668.32125.86
Settings /wp-admin/admin.php?page=wiopt#tab=general91,3565.92487.33282.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • tf_display_admin_notice_time
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/instantio/includes/controller/checkout_editor.php:4
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/instantio/includes/app/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/instantio/includes/app/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/instantio/functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instantio/includes/controller/ins-checkout-editor.php:9
    • > PHP Warning
      require_once(wp-content/plugins/instantio/includes/app/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/instantio/includes/app/.php-cs-fixer.dist.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ins_dashboard
    • > Network (severe)
    wp-content/plugins/instantio/admin/tf-options/img/play.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=wiopt#tab=general
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=wiopt#tab=general 923 The specified value "1px" cannot be parsed, or is out of range.
    • > GET request to /wp-admin/admin.php?page=wiopt#tab=general
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=wiopt#tab=general 934 The specified value "1px" cannot be parsed, or is out of range.
    • > GET request to /wp-admin/admin.php?page=wiopt#tab=general
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=wiopt#tab=general 945 The specified value "1px" cannot be parsed, or is out of range.
    • > GET request to /wp-admin/admin.php?page=wiopt#tab=general
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=wiopt#tab=general 956 The specified value "1px" cannot be parsed, or is out of range.
    • > GET request to /wp-admin/admin.php?page=wiopt#tab=general
    • > Javascript (severe) in unknown
    /wp-content/plugins/instantio/admin/tf-options/assets/js/dashboard.js?ver=2.0.1 10:40 Uncaught TypeError: Cannot read properties of undefined (reading 'getElementsByClassName')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #9 (Glassmorphism theme - You can use the popular glass effect in the design.), #10 (Gradient theme - It uses the smooth Gradient color effect to the instantio.)
  • Tags: Please delete some tags, you are using 34 tag instead of maximum 10
The official readme.txt might help

instantio/instantio.php 92% from 13 tests

The main PHP file in "= Instantio - WooCommerce Quick Checkout | Instant Checkout, Side Cart & Popup Cart" ver. 3.1.8 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:
  • Description: Keep the plugin description shorter than 140 characters (currently 200 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin43,018 lines of code in 147 files:
LanguageFilesBlank linesComment linesLines of code
PHP601,8881,71914,776
PO File113,5397,61010,429
Sass419321917,664
CSS6188946,559
JavaScript114594073,148
SVG1600302
XML161195
JSON10045

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity23.93
▷ Minimum class complexity1.00
▷ Maximum class complexity130.00
Average method complexity4.31
▷ Minimum method complexity1.00
▷ Maximum method complexity71.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes42
▷ Abstract classes00.00%
▷ Concrete classes42100.00%
▷ Final classes00.00%
Methods279
▷ Static methods113.94%
▷ Public methods23383.51%
▷ Protected methods62.15%
▷ Private methods4014.34%
Functions32
▷ Named functions2784.38%
▷ Anonymous functions515.62%
Constants14
▷ Global constants14100.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
21 compressed PNG files occupy 1.10MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/tf-options/img/pro/Dedicated-Mobile-Layout.png2.43KB2.03KB▼ 16.37%
admin/tf-options/img/tutorial-1.png23.34KB24.67KB0.00%
assets/img/delete.png1.22KB1.18KB▼ 3.68%
admin/tf-options/img/layout/version2.png1.45KB1.27KB▼ 12.89%
admin/tf-options/img/layout/Dark.png0.69KB0.69KB0.00%