Best Code Coverage Tools for PHP

Find and compare the best Code Coverage tools for PHP in 2026

Use the comparison tool below to compare the top Code Coverage tools for PHP on the market. You can filter results by user reviews, pricing, features, platform, region, support options, integrations, and more.

  • 1
    Parasoft Reviews
    Top Pick

    Parasoft

    Parasoft

    $35/user/mo
    137 Ratings
    See Tool
    Learn More
    Parasoft's mission is to provide automated testing solutions and expertise that empower organizations to expedite delivery of safe and reliable software. A powerful unified C and C++ test automation solution for static analysis, unit testing and structural code coverage, Parasoft C/C++test helps satisfy compliance with industry functional safety and security requirements for embedded software systems.
  • 2
    Codecov Reviews

    Codecov

    Codecov

    $10 per user per month
    Enhance the quality of your code by adopting healthier coding practices and refining your code review process. Codecov offers a suite of integrated tools designed to organize, merge, archive, and compare coverage reports seamlessly. This service is free for open-source projects, with paid plans beginning at just $10 per user each month. It supports multiple programming languages, including Ruby, Python, C++, and JavaScript, and can be effortlessly integrated into any continuous integration (CI) workflow without the need for extensive setup. The platform features automatic merging of reports across all CI systems and languages into a unified document. Users can receive tailored status updates on various coverage metrics and review reports organized by project, folder, and test type, such as unit or integration tests. Additionally, detailed comments on the coverage reports are directly included in your pull requests. Committed to safeguarding your data and systems, Codecov holds SOC 2 Type II certification, which verifies that an independent third party has evaluated and confirmed their security practices. By utilizing these tools, teams can significantly increase code quality and streamline their development processes.
  • 3
    DeepSource Reviews

    DeepSource

    DeepSource

    $12 per user per month
    DeepSource streamlines the process of identifying and resolving code issues during reviews, including risks of bugs, anti-patterns, performance bottlenecks, and security vulnerabilities. Setting it up with your Bitbucket, GitHub, or GitLab account takes under five minutes, making it incredibly convenient. It supports various programming languages such as Python, Go, Ruby, and JavaScript. Additionally, DeepSource encompasses all essential programming languages, Infrastructure-as-Code capabilities, secret detection, code coverage, and much more. This means you can rely solely on DeepSource for code protection. Initiate your development with the most advanced static analysis platform, ensuring that you catch bugs before they make their way into production. It boasts the largest array of static analysis rules available in the market. Your team will benefit from having a centralized location to monitor and address code health effectively. With DeepSource, code formatting can be automated, ensuring your CI pipeline remains intact without style violations disrupting the process. Furthermore, it can automatically generate and implement fixes for detected issues with just a few clicks, enhancing your team's productivity and efficiency.
  • 4
    PHPUnit Reviews

    PHPUnit

    PHPUnit

    Free
    PHPUnit necessitates the activation of the dom and json extensions, which are typically enabled by default, alongside the pcre, reflection, and spl extensions that are also standard and cannot be disabled without modifying PHP's build system or source code. Additionally, to generate code coverage reports, the Xdebug extension (version 2.7.0 or newer) and the tokenizer extension must be present, while the ability to create XML reports relies on the xmlwriter extension. Writing unit tests is fundamentally a best practice for developers to detect and resolve bugs, refactor code, and provide documentation for a unit of software being tested. Ideally, unit tests should encompass all potential execution paths within a program to maximize effectiveness. Generally, a single unit test is aligned with one specific path in a particular function or method. Nonetheless, it is important to recognize that a test method may not function as a completely isolated or independent unit, as there can often be subtle dependencies between various test methods that stem from the underlying implementation of a test scenario. This interconnectedness can sometimes lead to challenges in maintaining test integrity and reliability.
  • 5
    Xdebug Reviews

    Xdebug

    Xdebug

    Free
    Xdebug is a powerful PHP extension that enhances the development workflow by offering various tools and functionalities. It allows developers to step through code in their integrated development environment as scripts run, making debugging much easier. The extension provides an enhanced version of the var_dump() function and delivers stack traces for notices, warnings, errors, and exceptions, clearly indicating the path leading to issues. Additionally, it logs all function calls, including arguments and their locations, to the disk, and can be configured to also record every variable assignment and return value for each function. This feature set enables developers, with the aid of visualization tools, to thoroughly examine the performance of their PHP applications and identify any bottlenecks. Moreover, Xdebug reveals the sections of code that are executed during unit testing with PHPUnit, aiding in better test coverage. For convenience, installing Xdebug via a package manager is typically the quickest method; simply replace the PHP version with the version you are currently using. You can also install Xdebug using PECL on both Linux and macOS, utilizing Homebrew for a streamlined setup process. Overall, Xdebug significantly enhances PHP development by providing essential debugging tools and performance insights.
  • 6
    PCOV Reviews

    PCOV

    PCOV

    Free
    A standalone driver compatible with CodeCoverage for PHP is known as PCOV. When PCOV is not configured, it will search for directories named src, lib, or app in the current working directory sequentially; if none of these are located, it defaults to using the current directory, which can lead to inefficient use of resources by storing coverage data for the entire test suite. If the PCOV configuration includes test code, it is advisable to utilize the exclude command to optimize resource usage. To prevent the unnecessary allocation of additional memory arenas for traces and control flow graphs, PCOV should be adjusted based on the memory demands of the test suite. Furthermore, to avoid table reallocations, the PCOV setting should exceed the total number of files being tested, including all test files. It's important to note that interoperability with Xdebug is not achievable. Internally, PCOV overrides the executor function, which can disrupt any extension or SAPI that attempts to do the same. Notably, PCOV operates at zero cost, allowing code to execute at full speed, thus enhancing performance without additional overhead. This efficiency makes it a valuable tool for developers looking to maintain high performance while ensuring effective code coverage.
  • 7
    Codacy Reviews

    Codacy

    Codacy

    $15.00/month/user
    Codacy is an automated code review tool. It helps identify problems through static code analysis. This allows engineering teams to save time and tackle technical debt. Codacy seamlessly integrates with your existing workflows on Git provider as well as with Slack and JIRA or using Webhooks. Each commit and pull-request includes notifications about security issues, code coverage, duplicate code, and code complexity. Advanced code metrics provide insight into the health of a project as well as team performance and other metrics. The Codacy CLI allows you to run Codacy code analysis locally. This allows teams to see Codacy results without needing to check their Git provider, or the Codacy app. Codacy supports more than 30 programming languages and is available in free open source and enterprise versions (cloud or self-hosted). For more see https://www.codacy.com/
  • 8
    SonarQube Cloud Reviews
    Enhance your productivity by ensuring only high-quality code is released, as SonarQube Cloud (previously known as SonarCloud) seamlessly evaluates branches and enriches pull requests with insights. Identify subtle bugs to avoid unpredictable behavior that could affect users and address security vulnerabilities that threaten your application while gaining knowledge of application security through the Security Hotspots feature. Within moments, you can begin using the platform right where your code resides, benefiting from immediate access to the most current features and updates. Project dashboards provide vital information on code quality and readiness for release, keeping both teams and stakeholders in the loop. Showcase project badges to demonstrate your commitment to excellence within your communities. Code quality and security are essential across your entire technology stack, encompassing both front-end and back-end development. That’s why we support a wide range of 24 programming languages, including Python, Java, C++, and many more. The demand for transparency in coding practices is on the rise, and we invite you to be a part of this movement; it's completely free for open-source projects, making it an accessible opportunity for all developers! Plus, by participating, you contribute to a larger community dedicated to improving software quality.
  • 9
    Coveralls Reviews

    Coveralls

    Coveralls

    $10 per month
    We assist you in confidently delivering your code by identifying which sections are left untested by your suite. Our service is free for open-source projects, while private repositories can benefit from our pro accounts. You can sign up instantly through platforms like GitHub, Bitbucket, and GitLab. Ensuring a thoroughly tested codebase is crucial for success, yet identifying gaps in your tests can be a challenging task. Since you're likely already using a continuous integration server for testing, why not allow it to handle the heavy lifting? Coveralls integrates seamlessly with your CI server, analyzing your coverage data to uncover hidden issues before they escalate into bigger problems. If you're only checking your code coverage locally, you may miss out on valuable insights and trends throughout your entire development process. Coveralls empowers you to explore every aspect of your coverage while providing unlimited historical data. By using Coveralls, you can eliminate the hassle of monitoring your code coverage, gaining a clear understanding of your untested sections. This allows you to develop with assurance that your code is properly covered and robust. In summary, Coveralls not only streamlines the tracking process but also enhances your overall development experience.
  • 10
    Jtest Reviews
    Maintain high-quality code while adhering to agile development cycles. Jtest's extensive Java testing tools will ensure that you code flawlessly at every stage of Java software development. Streamline Compliance with Security Standards. Ensure that your Java code conforms to industry security standards. Automated generation of compliance verification documentation Get Quality Software Out Faster Java testing tools can be integrated to detect defects faster and more efficiently. Reduce time and costs by avoiding costly and complicated problems later. Increase your return on unit testing. Create a set of JUnit test suites that are easy to maintain and optimize for code coverage. Smart test execution allows you to get faster feedback from CI as well as within your IDE. Parasoft Jtest integrates seamlessly into your development ecosystem and CI/CD pipeline for real-time, intelligent feedback about your testing and compliance progress.
  • Previous
  • You're on page 1
  • Next