Major (1) (1) - Merged
Major (1) (1) - Merged
REDUCTION PLATFORM
          Bachelor of Technology
                     in
       Computer Science & Engineering
Submitted by
                  DIPANSHU PANDEY
                     06420802721
                     May/June 2025
     BHAGWAN PARSHURAM INSTITUTE OF TECHNOLOGY
    To develop world class Laboratories and other Infrastructure conducive in acquiring latest
     knowledge and expertise.
    To bridge the knowledge and competency gaps of institute’s fresh pass-outs vis-à-vis field
     requirements.
    To strengthen Industry- Institute Interaction and partnership for imbibing corporate culture
     amongst our faculty and students.
    To promote research culture among faculty and students enhancing their academic and
     professional confidence needed to face global challenges. To honour commitment towards
     social and moral values
    To honour commitment towards social and moral values.
                                          Vision
To emerge as a center of excellence, in the field of Computer Science and Engineering &
Research, by grooming our pupils with strong conceptual knowledge to enable them as a
professional and researcher for the benefit of society.
                                           Mission
1.   To inculcate self-motivation among the students, who can find and understand the need
     of the day.
2.   To produce best quality professionals with strong conceptual knowledge and hands-
     on experience.
3.   To enable the students to be technically competent among their peers and serve as
     ethical software professionals.
4.   To facilitate industry interaction exposure for the benefit of the stakeholders.
5.   To motivate faculties and students for continuous improvement of their academic
     standards with qualitative research.
This is to certify that the material embodied in this Major Project - Dissertation titled
“ZERO WASTE: FOOD WASTE REDUCTION PLATFORM” being submitted in the partial
fulfillment of the requirements for the award of the degree of Bachelor of Technology in
Computer Science & Engineering is based on my original work. It is further certified that this
Major Project - Dissertation work has not been submitted in full or in part to this university or any
other university for the award of any other degree or diploma. My indebtedness to other works
has been duly acknowledged at the relevant places.
(Dipanshu Pandey)
06420802721
This is to certify that the work embodied in this Major Project - Dissertation titled “ZERO
WASTE: FOOD WASTE REDUCTION PLATFORM” being submitted in the partial fulfillment of
the requirements for the award of the degree of Bachelor of Technology in Computer Science &
Engineering, is original and has been carried out by DIPANSHU PANDEY (Enrollment No.
06420802721) under my supervision and guidance.
It is further certified that this Major Project - Dissertation work has not been submitted in full or
in part to this university or any other university for the award of any other degree or diploma to the
best of my knowledge and belief.
       An endeavor is not complete and successful till the people who made it possible are given
due credit for making it possible. I take this opportunity to thank all those who have made the
endeavor successful for me.
       At the very onset I thank Dr. Monika Arora, my Major Project – Dissertation supervisor for
giving inspiration on such important and valuable topic, his scholarly guidance, constant
supervision and encouragement to make it success. His research knowledge and passion for
problem solving amazes and inspires me. At all crucial stages, valuable insights given by him,
made me take the right direction. I thank her for the countless hours he has spent with me,
criticizing my ideas, enlightening my writing skills, and helping me. Her assistance during this
work has been invaluable and inspirational.
       Last but not least, I especially thank to my family members for their unconditional moral
support, encouragement, best wishes and patience for not giving them proper time during the study.
(Dipanshu Pandey)
06420802721
    Food waste is a critical global issue, contributing to environmental degradation and re-
    source inefficiency, while millions still suffer from hunger. This project aims to address
    that gap by building a web-based Food Donation Management System that streamlines
    the process of donating surplus food and ensures timely redistribution. The platform
    allows registered users (individuals or organizations) to donate excess food through a
    simple form. Once submitted, the food listing is reviewed and approved by an admin
    to ensure safety and reliability. Approved donations are made available in the deliv-
    ery agent panel, where agents can log in, view orders, and deliver the food to nearby
    NGOs or food collection centers. The system helps reduce food waste, promote re-
    sponsible consumption, and support charitable organizations by connecting donors and
    logistics teams through a structured digital workflow. Built using PHP, MySQL, and
    HTML/CSS, the platform is lightweight, user-friendly, and scalable. It focuses on oper-
    ational efficiency, transparency, and social impact through the responsible redistribution
    of food.
Declaration iv
Certificate v
Acknowledgement vi
Abstract vii
    CHAPTER 1: INTRODUCTION                                                                                                        1
    CHAPTER 2: PROBLEM STATEMENT                                                                                                   4
      2.1 Problem Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                               4
      2.2 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                             4
    CHAPTER 3: ANALYSIS                                                                                                           7
      3.1 Software Requirement Specifications . . .       .    .    .    .    .   .   .   .   .   .    .    .    .   .   .   .    7
      3.2 Feasibility Study of the Project . . . . . .    .    .    .    .    .   .   .   .   .   .    .    .    .   .   .   .    9
      3.3 Tools / Technologies / Platform Used . . .       .    .    .    .   .   .   .   .   .   .    .    .    .   .   .   .   10
      3.4 Use Case Diagram . . . . . . . . . . . . .      .    .    .    .    .   .   .   .   .   .    .    .    .   .   .   .   12
    CHAPTER 5: IMPLEMENTATION                                                                                                    17
        5.1 Screenshots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                          17
        5.2 Source Code of Some Modules . . . . . . . . . . . . . . . . . . . . . .                                              20
Bibliography 38
    Food wastage is a significant global issue, with millions of tons of edible food dis-
    carded each year despite widespread hunger and malnutrition. According to the United
    Nations, over 1.3 billion tons of food are wasted globally, while approximately 828
    million people go to bed hungry. The problem is not solely about overproduction but
    largely stems from inefficiencies in distribution, communication, and the lack of orga-
    nized systems to connect surplus food with those in need. In this context, technology
    can offer sustainable, efficient, and impactful solutions.
        The proposed Food Donation Management System is a web-based platform de-
    signed to bridge the gap between food donors and organizations that can effectively re-
    distribute surplus food. By digitizing the processes of donation, approval, and delivery,
    the platform ensures real-time communication, improves accountability, and stream-
    lines coordination among all stakeholders — donors, administrators, and delivery per-
    sonnel.
        • Donors: Individuals, restaurants, and organizations can register, submit food do-
          nation details (type, quantity, pickup location, expiry), and track the status and
          history of their donations.
        • Delivery Agents: Delivery personnel access a panel where they view assigned
          tasks, update delivery statuses (e.g., In Transit, Delivered), and share live location
          data for tracking purposes.
    To ensure a seamless experience for users and improve the operational efficiency of
    food redistribution, the system includes the following core features:
       2. Email Notification System: Automated alerts are sent to users at critical stages,
          such as after donation submission, admin approval, and assignment for delivery.
       3. Admin Dashboard: Admins can manage the entire process from donation ap-
          proval to delivery assignment and view donation analytics.
       4. Delivery Agent Panel: Delivery agents can view pending pickups, update their
          delivery progress, and confirm completion of delivery tasks.
       5. Live Location Tracking: Delivery agents can share real-time location data, en-
          hancing trust and ensuring timely delivery.
       6. Donation History Logs: Both donors and delivery agents can view their respec-
          tive history for transparency and record-keeping.
       7. Chatbot Integration: A chatbot offers users support with FAQs and common
          issues, reducing dependency on manual customer service.
       8. Dark Mode Support: Users can switch to dark mode, enhancing accessibility
          and reducing eye strain.
    While several food donation platforms exist (e.g., Feeding India by Zomato, Robin
    Hood Army, No Food Waste), many fall short in one or more key areas:
        • No Analytical Insights: Admins often lack access to visual data reports or per-
          formance metrics.
        • Device Dependence: Many platforms are app-based only, excluding users who
          prefer or only have access to web browsers.
    The Food Donation Management System addresses the above limitations by introduc-
    ing:
        • Role-Based Access Control: Each user has a distinct dashboard tailored to their
          functions, improving usability and clarity.
        • Live Delivery Tracking: Adds transparency and boosts user confidence in the
          fulfillment process.
        • Data Visualization and Insights: Admins can view donation trends, categorize
          data, and generate reports to support better decision-making.
2. 1 Problem Definition
    Food wastage is a persistent and growing problem across the globe, affecting both de-
    veloped and developing nations. Despite advancements in food production and distri-
    bution, a significant percentage of edible food is discarded every day from households,
    restaurants, supermarkets, and events. According to the United Nations Environment
    Programme (UNEP), over 931 million tons of food are wasted annually, contributing
    not only to economic losses but also to environmental degradation. At the same time,
    millions of people suffer from hunger, malnutrition, and food insecurity, particularly in
    underprivileged and vulnerable communities. This imbalance presents an urgent need
    for a systemic solution that bridges the gap between food surplus and food scarcity.
        One of the major reasons for this problem is the lack of an efficient and accessible
    platform to coordinate food donations and logistics. While many individuals and or-
    ganizations are willing to donate surplus food, there is no structured system to ensure
    timely collection, approval, and delivery to the right recipients or facilities. Manual
    processes, lack of communication, poor tracking, and limited visibility into donation
    status often lead to operational inefficiencies and wasted opportunities. Additionally,
    there is no real-time system that notifies stakeholders or tracks the status of donations
    and deliveries transparently.
        The lack of integration between donors, administrators, and delivery agents fur-
    ther hampers the ability to act swiftly and responsibly. Without proper accountability,
    even well-intentioned food donations may go uncollected or unutilized. There is also
    a noticeable absence of digital tools like analytics dashboards, notification systems, or
    automated logs to help improve and manage food donation operations over time.
        In this context, a digital solution is necessary to streamline the end-to-end process
    of food donation, review, assignment, and delivery. A web-based platform tailored to
    this problem can provide transparency, traceability, and operational efficiency to food
    redistribution systems. The aim is to minimize waste, enhance communication, and
    ensure that food reaches verified organizations like NGOs or food waste management
    centers on time.
2.2 Objectives
    The primary objective of this project is to develop a web-based Food Donation Man-
    agement System that enables the efficient and transparent redistribution of surplus food
    through a structured, role-based workflow. The platform aims to promote sustainability
    The functional requirements define the specific behaviors, operations, and features that
    the Food Donation Management System must support to meet the needs of donors,
    administrators, and delivery agents. These requirements represent the core functionality
    of the system and are critical to achieving its objectives.
       8. Chatbot Support:
          A chatbot must be available on the website to guide users, provide answers to
          basic queries, and enhance user engagement.
    Non-functional requirements define the quality attributes, system behavior under con-
    straints, and performance goals of the Food Donation Management System. These are
    essential to ensure the system is reliable, efficient, and user-friendly over time.
    1       Usability:
    2       The user interface must be simple, intuitive, and accessible to users of all techni-
            cal backgrounds, with clear instructions and visual feedback for every action.
    3       Performance:
    4       The platform should respond to user actions within two seconds under normal
            load and handle multiple concurrent users (scalability considered for future growth).
    5       Scalability:
    6       The system must be designed to scale with an increasing number of users, food
            entries, and delivery agents without performance degradation.
    7       Security:
    8       User data, especially login credentials, must be stored securely using password
            hashing. Role-based access control must be enforced between donors, admins,
            and agents.
    9       Maintainability:
    10      The codebase should follow proper software development principles with mod-
            ular architecture, allowing future updates, bug fixes, and feature additions with
            minimal disruption.
    11      Availability:
    12      The system should be accessible 24/7 with minimal downtime. Scheduled main-
            tenance must be communicated in advance to users.
    15      Reliability:
             All data transactions, including donations and status updates, must be accurate
                and fail-safe. Recovery mechanisms should be in place in case of failures.
    16 Accessibility:
    The system should meet basic accessibility standards (font size, contrast, key- board
    navigation), including features like dark mode for better visual experience.
    17 Compliance:
    The platform must comply with basic data protection policies and local food safety
    regulations regarding food handling and redistribution practices.
    A feasibility study evaluates the practicality and success potential of the proposed Food
    Donation Management System before actual development and deployment. It involves
    analyzing several factors such as technical, operational, economic, legal, and time fea-
    sibility to ensure that the system is realistic, cost-effective, and efficient for its intended
    use.
         1. Technical Feasibility:
            The project is technically feasible using widely available and open-source tech-
            nologies like PHP, MySQL, HTML, and CSS. These technologies are stable,
            well-supported, and sufficient to implement all core features such as form sub-
            missions, email notifications, data management, authentication, and role-based
            access. Tools like Google Maps API for location tracking and basic SMTP for
            email alerts are easy to integrate. No advanced or specialized hardware is re-
            quired, and the system can be hosted on a standard web server or cloud service.
         2. Operational Feasibility:
            The platform is highly operable from the user’s perspective. It includes a simple
            interface for food donors, an admin panel for verification, and a dedicated section
            for delivery agents. With features like a chatbot, contact form, and dark mode,
            the system is user-friendly and ensures smooth operation. The role-based flow —
            from donation to delivery — is clearly defined, making it practical to implement
            in real environments like restaurants, community kitchens, and NGOs.
       4. Legal Feasibility:
          The platform ensures compliance with basic food safety and hygiene standards.
          Since food donations are made by registered users and deliveries are handled by
          authorized agents, it reduces the risk of legal issues. Terms of service and dis-
          claimers can be added to clarify liability and ensure ethical food handling prac-
          tices.
       5. Schedule Feasibility:
          Based on the scope of the project, the development can be completed within a
          planned two-month period. The breakdown includes time for requirement gath-
          ering, interface design, backend coding, database setup, testing, and deployment.
          The timeline has been organized to accommodate iterative development and bug
          fixing without overextending deadlines.
    The development of the Food Donation Management System involves a variety of web
    technologies and tools that collectively support frontend design, backend logic, data
    management, and deployment. The system has been built with a focus on accessibil-
    ity, performance, and ease of maintenance. Below is a description of the tools and
    technologies used:
        • HTML/CSS: Used for structuring and styling the frontend of the platform, in-
          cluding form layouts, navigation, and page responsiveness.
        • PHP: Server-side scripting language used to build backend logic for handling
          user authentication, donation submissions, admin actions, and email notifications.
        • MySQL: Relational database management system used to store user data, dona-
          tion entries, delivery records, and system logs.
        • XAMPP: A local development environment used to simulate the web server, PHP
          engine, and MySQL database during development and testing.
• GitHub: Used for version control and team collaboration throughout the project.
       3. JavaScript (JS):
          JavaScript adds interactivity to the system. It handles form validations, UI toggles
          (such as dark mode), dynamic content updates, and chatbot interactions on the
          client side.
       5. MySQL:
          MySQL is the relational database management system used to store and man-
          age all the application data, such as user information, donation records, delivery
          assignments, and admin actions. It ensures secure and efficient data handling.
       9. PHPMailer:
          These tools are integrated to handle email notifications. Automated emails are
          sent to users at key stages of the donation process, including donation submission,
          admin approval, and delivery assignment.
    The Food Donation Management System is divided into four main modules. Each
    module plays a critical role in the project lifecycle, from planning to deployment and
    future maintenance.
       1. Planning Module
          This module focuses on setting up the foundation for the project. It includes:
             • UI/UX Design: Designing page layouts and form structures for donors,
               admins, and agents. Includes mobile responsiveness and dark mode for ac-
               cessibility.
             • Frontend Development: Coding the user interface using HTML and CSS.
               Creating forms for food donations, login pages, dashboards, and visual com-
               ponents.
             • Backend Development: Writing the PHP logic to handle form submissions,
               user sessions, admin actions, and sending notification emails.
             • Database Setup: Designing MySQL tables for users, donations, deliveries,
               and logs. Ensuring data validation and relationships between tables.
             • Functional & Security Testing: Verifying that all features (e.g., donation
               form, admin approval) work correctly. Also checks for common vulnerabil-
               ities like SQL injection.
             • Bug Fixing & Optimization: Addressing issues found during testing and
               optimizing page loading, query performance, and email dispatch.
             • Deployment: Hosting the site on a live server (or localhost), setting up
               the domain, linking the database, and ensuring the platform is accessible to
               users.
             • Add-ons: Integrating optional but useful features like a chatbot for user
               assistance, Google Maps API for live delivery tracking, and a contact form
               for support.
             • Analytics Dashboard: Giving admins insights into total donations, top
               donors, and delivery history through charts and downloadable reports.
             • Documentation: Preparing a user manual, developer guide, and the final
               project report to help in future upgrades or team handover.
5.1 Screenshots
    In this section, we provide the source code for key modules implemented in the Food
    Donation Management System. These modules represent the core functionality and
    logic behind the platform, including frontend, backend, and database interactions.
    Below is the source code of the main homepage for the Zero Waste web platform. This
    interface includes the navigation bar, content banners, image section, donation links,
  1   <?php
  2   include("login.php");
  3   if($_SESSION[’name’]==’’){
  4       header("location: signin.php");
  5   }
  6   $emailid= $_SESSION[’email’];
  7   $connection=mysqli_connect(’127.0.0.1’, ’root’, ’’, ’demo’,
          3307);
  8   $db=mysqli_select_db($connection,’demo’);
  9
 10   if(isset($_POST[’submit’])) {
 11       $foodname=mysqli_real_escape_string($connection, $_POST[’
               foodname’]);
 12       $meal=mysqli_real_escape_string($connection, $_POST[’meal’])
             ;
 13       $category=$_POST[’image-choice’];
 14       $quantity=mysqli_real_escape_string($connection, $_POST[’
               quantity’]);
 15       $email=$_POST[’email’];
 16       $phoneno=mysqli_real_escape_string($connection, $_POST[’
               phoneno’]);
 17       $district=mysqli_real_escape_string($connection, $_POST[’
               district’]);
 18       $address=mysqli_real_escape_string($connection, $_POST[’
               address’]);
 19       $name=mysqli_real_escape_string($connection, $_POST[’name’])
             ;
 20
 36            header("Location: delivery.html");
 37            exit;
 38        } else {
 39            echo ’<script>alert("Data not saved")</script>’;
 40        }
 41   }
 42   ?>
      The database module handles the structure and management of the data related to the
      system. Below is an example of the SQL schema for the donations table.
  1   -- phpMyAdmin SQL Dump
  2   -- version 5.2.0
  3   -- https://www.phpmyadmin.net/
  4   --
  5   -- Host: 127.0.0.1:3307
  6   -- Generation Time: Apr 18, 2023 at 04:00 PM
  7   -- Server version: 10.4.27-MariaDB
  8   -- PHP Version: 8.1.12
  9
14
 20   --
 21   -- Database: ‘demo‘
 22   --
 23
24
25
 26   --
 27   -- Table structure for table ‘admin‘
 28   --
 29
 39   --
 40   -- Dumping data for table ‘admin‘
 41   --
 42
43
44
 45   --
 46   -- Table structure for table ‘delivery_persons‘
 47   --
 57   --
 58   -- Dumping data for table ‘delivery_persons‘
 59   --
 60
61
62
63
 64   --
 65   -- Table structure for table ‘food_donations‘
 66   --
 67
 84   --
 85   -- Dumping data for table ‘food_donations‘
 86   --
88
89
 90   --
 91   -- Table structure for table ‘login‘
 92   --
 93
102   --
103   -- Dumping data for table ‘login‘
104   --
105
106
107
108
109   --
110   -- Table structure for table ‘user_feedback‘
111   --
112
120   --
121   -- Dumping data for table ‘user_feedback‘
122   --
123
127   --
128   -- Indexes for dumped tables
129   --
130
131   --
132   -- Indexes for table ‘admin‘
133   --
134   ALTER TABLE ‘admin‘
135    ADD PRIMARY KEY (‘Aid‘),
136    ADD UNIQUE KEY ‘email‘ (‘email‘);
137
138   --
139   -- Indexes for table ‘delivery_persons‘
140   --
141   ALTER TABLE ‘delivery_persons‘
142    ADD PRIMARY KEY (‘Did‘),
143    ADD UNIQUE KEY ‘email‘ (‘email‘);
144
145   --
146   -- Indexes for table ‘food_donations‘
147   --
148   ALTER TABLE ‘food_donations‘
149    ADD PRIMARY KEY (‘Fid‘);
150
151   --
152   -- Indexes for table ‘login‘
153   --
154   ALTER TABLE ‘login‘
155    ADD PRIMARY KEY (‘email‘),
156    ADD UNIQUE KEY ‘id‘ (‘id‘);
157
158   --
159   -- Indexes for table ‘user_feedback‘
160   --
161   ALTER TABLE ‘user_feedback‘
162    ADD PRIMARY KEY (‘feedback_id‘);
163
164 --
168   --
169   -- AUTO_INCREMENT for table ‘admin‘
170   --
171   ALTER TABLE ‘admin‘
172    MODIFY ‘Aid‘ int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT
               =3;
173
174   --
175   -- AUTO_INCREMENT for table ‘delivery_persons‘
176   --
177   ALTER TABLE ‘delivery_persons‘
178    MODIFY ‘Did‘ int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT
               =5;
179
180   --
181   -- AUTO_INCREMENT for table ‘food_donations‘
182   --
183   ALTER TABLE ‘food_donations‘
184    MODIFY ‘Fid‘ int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT
               =26;
185
186   --
187   -- AUTO_INCREMENT for table ‘login‘
188   --
189   ALTER TABLE ‘login‘
190    MODIFY ‘id‘ int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT
               =17;
191
192   --
193   -- AUTO_INCREMENT for table ‘user_feedback‘
194   --
195   ALTER TABLE ‘user_feedback‘
196    MODIFY ‘feedback_id‘ int(11) NOT NULL AUTO_INCREMENT,
               AUTO_INCREMENT=7;
197   COMMIT;
    Testing is an essential phase in the development process to ensure the functionality, se-
    curity, usability, and reliability of the system. The goal of testing the Food Donation
    Management System was to ensure that all components function as expected, and all
    stakeholders (donors, delivery agents, admins) can seamlessly interact with the plat-
    form.
        The testing process for this project involved multiple stages, including unit testing,
    integration testing, system testing, and user acceptance testing. Below is a detailed
    overview of the testing conducted.
    Unit testing was performed to validate individual components and modules of the sys-
    tem. Each function or class in the code was tested independently to verify its correctness
    and behavior.
• Login functionality: Tested for both successful and failed login attempts.
        • Food Donation Form: Verified that the form correctly captures and stores donor
          information, food details, and expiry dates.
        • Admin Panel: Ensured that the admin can approve, reject, and assign donations
          to delivery agents correctly.
• Delivery Agent Panel: Checked the ability to view and update donation statuses.
    Integration testing ensured that different modules of the system worked together as
    expected. This phase checked whether the front-end and back-end systems were well
    integrated and communicated correctly.
        • Admin and Delivery Agent Communication: Ensured that once a donation was
          approved by the admin, it was assigned to the correct delivery agent, and updates
          were reflected in the agent’s panel.
    System testing involved evaluating the complete end-to-end functionality of the Food
    Donation Management System as a whole. The focus was to validate that all compo-
    nents worked together smoothly and that the system met the project requirements.
        • Food Donation Flow: Verified the end-to-end process starting from the donor
          submitting a donation, admin approval, delivery assignment, and delivery confir-
          mation.
        • Delivery Agent Tracking: Tested the delivery agent’s ability to track and confirm
          deliveries.
    User acceptance testing was performed by testing the system with actual end-users
    (donors, admins, and delivery agents) to ensure that the platform met the requirements
    and was user-friendly.
        • Donor Testing: Donors were asked to submit food donations and monitor the
          process until delivery.
        • Admin Testing: Admin users reviewed donations, approved them, and assigned
          delivery agents.
        • Delivery Agent Testing: Delivery agents tested the ability to track and confirm
          deliveries.
During the testing phase, a few minor issues were identified and resolved:
        • Bug in Admin Dashboard: The admin dashboard did not refresh after a donation
          was approved. This was fixed by implementing automatic page updates.
    Below is a summary of key test cases that were executed during the testing process:
      Test ID   Description                             Expected Result                                                               Status
       TC01     Testing login(correct credentials).     Login is successful and the user is redirected to dashboard.                   Pass
       TC02     Testing login(incorrect credentials).   Error message is displayed, and the user is prompted to try again.             Pass
       TC03     Test donation form submission.          Donation details are saved correctly in the database.                          Pass
       TC04     Test admin approval of donation.        Admin successfully approves the donation, and the status is updated.           Pass
       TC05     Test delivery page.                     Delivery agent receives the donation assignment and can track the status.      Pass
       TC06     Test notification system(email).        Donors, admins, and delivery agents receive timely email notifications.        Pass
       TC07     Test admin dashboard analytics.         Admin dashboard correctly displays donation statistics and activity trends.    Pass
       TC08     Test chatbot interaction.               Chatbot provides helpful responses and redirects queries appropriately.        Pass
    Performance testing was conducted to ensure that the system can handle the expected
    load, especially considering the number of donations and delivery agents that might
    access the system simultaneously.
         • Stress Testing: Tested the system under extreme conditions (e.g., 100+ simul-
           taneous donations and deliveries) to evaluate how the system responds to high
           traffic.
    Security testing was carried out to ensure that the system is resistant to common vul-
    nerabilities and exploits.
         • SQL Injection Prevention: Ensured all user inputs were sanitized and validated
           to prevent SQL injection attacks.
         • Cross-Site Scripting (XSS): Validated that input fields do not allow malicious
           JavaScript code to be executed.
         • Session Management: Verified that user sessions were handled securely, and
           users were logged out after inactivity.
    Usability testing was conducted to evaluate the user experience (UX) and ensure that
    the platform was easy to use and navigate. This included:
        • Feedback from Users: Users were asked to provide feedback on the platform’s
          usability, and suggestions for improvement were implemented.
        • Accessibility Testing: Ensured that the platform was accessible to all users, in-
          cluding those with disabilities (e.g., dark mode, text-to-speech compatibility).
6.6 Conclusion
    The testing phase was successful, and the system met all the functional and non-functional
    requirements. The Food Donation Management System is robust, secure, and user-
    friendly. Through extensive testing, we ensured that all features work as expected, and
    the platform is ready for deployment.
        Future testing can focus on continuous integration (C1I) practices, further perfor-
    mance improvements, and more in-depth usability testing with a wider range of users.
7.1 Summary
    Food waste is a global issue that coexists paradoxically with hunger and food insecurity.
    The increasing volume of edible food being discarded by households, restaurants, and
    businesses poses serious environmental, economic, and ethical concerns. This project,
    titled Food Donation Management System, was undertaken to address this gap by
    creating a digital platform that enables the responsible collection, approval, and delivery
    of surplus food to verified NGOs and food rescue organizations.
         The project is designed as a web-based solution involving three key actors: Donor,
    Admin, and Delivery Agent. Donors can submit food details using a structured form.
    The Admin panel is responsible for verifying, approving, and assigning the donation to
    an available Delivery Agent. Delivery Agents can log in to view assigned donations,
    update delivery statuses, and track delivery history. The entire process is automated
    with real-time notifications to ensure all stakeholders remain informed and the food
    reaches its destination efficiently.
    Key features of the system include:
• Donation submission form with pickup location, food details, and expiry tracking.
• Delivery agent panel with order tracking and liive location integration.
• Basic analytics to help admins monitor donation trends and platform usage.
        The technologies used in the development of this platform include PHP, MySQL,
    HTML/CSS, along with third-party services such as the Google Maps API and SMTP
    for notification functionalities.
        Manual testing was performed across all modules to ensure data integrity, work-
    flow reliability, and system security. All critical paths—from user login to food deliv-
    ery—were verified successfully and functioned as intended.
    While the Food Donation Management System meets its core objectives effectively,
    several limitations were identified during development and testing:
        • Limited user authentication features: The login system uses basic username-
          password authentication without multi-factor authentication or OAuth, which could
          improve security.
        • Lack of dynamic scalability: The application may not handle very high traffic
          efficiently due to limited server-side optimization and lack of cloud deployment.
        • Limited NGO involvement: NGOs are not directly registered or logged into the
          platform, which limits their participation in the donation lifecycle.
        These limitations do not hinder the system’s core functionality but represent areas
    for significant improvement in future versions.
    Based on the identified limitations and evolving requirements, the following improve-
    ments and expansions are proposed for future development:
        • Mobile application: Develop Android and iOS applications to enhance user ac-
          cessibility and usability.
        • Food quality rating system: Introduce food quality checks, expiry prediction
          using machine learning, and user feedback/rating features.
        The implementation of these future enhancements would greatly improve the plat-
    form’s scalability, user experience, and social impact. With continued development and
    stakeholder involvement, the Food Donation Management System can evolve into a
    comprehensive ecosystem to tackle food waste and hunger on a larger scale.
     [3] K. T. Johnson and R. B. Fields, “Reducing Food Waste through Consumer Aware-
         ness: Behavioral Insights and Solutions,” Food Policy and Economics, vol. 11, no.
         4, pp. 220–231, 2018.
     [5] J. C. Patel, “Food Waste Reduction in the Restaurant Industry: An Integrated Ap-
         proach,” Journal of Hospitality and Tourism Research, vol. 26, no. 3, pp. 101–113,
         2017.
     [6] B. D. Chang and P. A. Diaz, “Food Donation as a Business Model: The Role of
         Corporate Social Responsibility,” Business Ethics Quarterly, vol. 29, no. 1, pp.
         78–92, 2021.
     [8] P. J. Harrison, “Legal Barriers to Food Donation: Navigating Liability and Safety
         Regulations,” Law and Policy Journal, vol. 18, pp. 112–127, 2018.
     [9] S. H. Robertson, “Circular Economy and Food Waste: A Case Study Approach,”
         Waste Management Review, vol. 22, pp. 101–114, 2021.