Download the PHP package nhrrob/wp-fatal-tester without Composer

On this page you can find all versions of the php package nhrrob/wp-fatal-tester. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-fatal-tester

WordPress Fatal Error Tester

A comprehensive CLI tool to detect fatal PHP errors and compatibility issues in WordPress plugins and themes. This tool helps developers identify potential fatal errors before deploying to production by testing code against different PHP and WordPress version combinations.

Features

🔍 Comprehensive Error Detection

📊 Detailed Reporting

⚡ Smart Analysis

🎯 Widget Exclusion System (New!)

Installation

Usage

Basic Usage

Test the current directory (auto-detects plugin name, shows fatal errors only):

Test a specific plugin (shows fatal errors only):

Show all errors including warnings:

Plugin Name Parameter

The plugin name parameter is optional when running the tool from within a WordPress plugin directory. The tool will automatically detect the current plugin name based on the directory structure. You only need to specify a plugin name when:

Command Line Options

What It Tests

The tool automatically tests your code against all major PHP and WordPress versions:

This comprehensive testing matrix ensures your plugin works across 20 different environment combinations by default, providing maximum compatibility coverage for WordPress plugins.

Default Behavior

By default, the tool shows only fatal errors to focus on critical issues that will break plugin functionality. This filtering approach helps developers concentrate on the most important issues first.

Use --show-all-errors to see warnings and other non-fatal issues when needed.

Widget Exclusion System

The tool now includes a sophisticated widget exclusion system to reduce false positives, especially for AJAX "Load More" operations:

Quick Start: If you're seeing many false positives from Elementor widgets, see QUICK_START_WIDGET_EXCLUSIONS.md for immediate solutions.

Tested with Essential Addons for Elementor

wp-fatal-tester has been extensively tested with the Essential Addons for Elementor free plugin and passes all compatibility tests across PHP 7.4-8.3 and WordPress 6.3-6.6. The tool includes smart ecosystem detection to prevent false positives for Elementor and WooCommerce dependencies.

See EA_TESTING_GUIDE.md for detailed testing instructions and integration examples.

Example Output

When you run vendor/bin/fataltest from within your plugin directory:

Notice: The example shows "15,847 total" errors but only 2 fatal errors are displayed. This demonstrates how the filtering helps you focus on critical issues while the high total count reflects WordPress function dependencies.

Quick Start Tips

  1. Install in your plugin directory: composer require --dev nhrrob/wp-fatal-tester
  2. Run from plugin root: vendor/bin/fataltest (no plugin name needed)
  3. Focus on fatal errors first: The default output shows only critical issues
  4. Don't worry about high error counts: Thousands of errors are normal due to WordPress dependencies
  5. Use --show-all-errors sparingly: Only when you need to see warnings and deprecated features

Error Types Detected

🔴 Fatal Errors (Must Fix)

🟡 Warnings (Should Fix)

Supported Versions

PHP Versions

WordPress Versions

Architecture

The tool is built with a modular architecture:

Core Components

Error Detectors

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Changelog

v1.0.0


All versions of wp-fatal-tester with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nhrrob/wp-fatal-tester contains the following files

Loading the files please wait ...