10% ithink-logistics-ecommerce-shipping-in-india

Code Review | iThink Logistics eCommerce shipping in India

WordPress plugin iThink Logistics eCommerce shipping in India scored10%from 54 tests.

About plugin

  • Plugin page: ithink-logistics-...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 4, 2020
  • Latest release: Apr 28, 2023
  • Number of updates: 119
  • Update frequency: every 7.4 days
  • Top authors: ithinklogistics (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /7,783 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/ithink-logistics-ecommerce-shipping-in-india/ithink-plugin.php+28
    Trying to get property 'api_key' of non-object

Server metrics [RAM: ▲0.03MB] [CPU: ▲1.39ms] Passed 4 tests

This is a short check of server-side resources used by iThink Logistics eCommerce shipping in India
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0349.02 ▲11.14
Dashboard /wp-admin3.33 ▲0.0343.82 ▲0.05
Posts /wp-admin/edit.php3.38 ▲0.0345.75 ▼3.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.29 ▼0.56
Media Library /wp-admin/upload.php3.25 ▲0.0342.59 ▲9.21

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 8 new options
New tables
wp_ithink_logistics
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
at_db_version
freeshipping_totalvalue
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

iThink Logistics eCommerce shipping in India: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲12913.43 ▼0.9311.31 ▲9.7339.75 ▲0.64
Dashboard /wp-admin2,213 ▲395.61 ▲0.0983.34 ▼7.4541.81 ▲2.22
Posts /wp-admin/edit.php2,115 ▲122.01 ▲0.0233.49 ▼2.4236.05 ▼0.72
Add New Post /wp-admin/post-new.php1,541 ▲1520.98 ▼2.63734.56 ▲93.7555.90 ▼0.64
Media Library /wp-admin/upload.php1,415 ▲154.21 ▲0.04109.64 ▲15.2149.37 ▲5.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • freeshipping_totalvalue
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • at_db_version

Smoke tests 75% from 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)
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ithink-logistics-ecommerce-shipping-in-india/ithink-plugin.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ithink-logistics-ecommerce-shipping-in-india/lib/admin-order-shipping.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ithink-logistics-ecommerce-shipping-in-india/lib/pincode-api.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ithink-logistics-ecommerce-shipping-in-india/lib/free-shipping.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ithink-logistics-ecommerce-shipping-in-india/lib/shippingcalculate.php:164

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

ithink-logistics-ecommerce-shipping-in-india/ithink-plugin.php 85% from 13 tests

The primary PHP file in "iThink Logistics eCommerce shipping in India" version 2.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ithink-logistics-ecommerce-shipping-in-india.php" instead of "ithink-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected977 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6214110944
JavaScript29133

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin