PHPackages                             wp-media/wp-imagify-partner - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wp-media/wp-imagify-partner

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wp-media/wp-imagify-partner
===========================

A php class allowing WordPress plugin developers to promote Imagify through their own plugin

v1.0(6y ago)0126.0k↓46.3%1[1 issues](https://github.com/wp-media/wp-imagify-partner/issues)[1 PRs](https://github.com/wp-media/wp-imagify-partner/pulls)2GPL-2.0+PHP

Since Jan 22Pushed 6y ago21 watchersCompare

[ Source](https://github.com/wp-media/wp-imagify-partner)[ Packagist](https://packagist.org/packages/wp-media/wp-imagify-partner)[ Docs](https://github.com/wp-media/wp-imagify-partner)[ RSS](/packages/wp-media-wp-imagify-partner/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (2)

Imagify Partner for WordPress
=============================

[](#imagify-partner-for-wordpress)

This php class allows WordPress plugin developers to promote Imagify through their own plugin.

What it does
------------

[](#what-it-does)

It allows to create a link that will install and activate the Imagify plugin for WordPress: all is done with one click. Then a partner ID is sent to our server when the user creates an Imagify account within the Imagify plugin. In case the user creates the account outside the plugin, the partner ID is sent when the API key is filled and saved in the plugin settings.
The link should be displayed only if an Imagify API key is not already stored in the database, and Imagify not already activated (tests are provided).
See the example below for more details.

If you want to be part of this affiliation program, please drop us a line at .

Bugs
----

[](#bugs)

If you find an issue in the php class, please let us know [here](https://github.com/wp-media/wp-imagify-partner/issues). Be advised, this point of contact is to be used to report bugs and not to receive support.

To disclose a security issue to our team, please reach out to .

Want to know more about our WordPress plugins?
----------------------------------------------

[](#want-to-know-more-about-our-wordpress-plugins)

Visit [wp-media.me](https://wp-media.me/?utm_source=github&utm_medium=wp-imagify-partner_profile).

We also make other plugins that help speed up WordPress websites:

- [Imagify](https://imagify.io): it's a great WordPress plugin to optimize your images and speed up your website (but since you're here, you probably already know that).
- [WP Rocket](https://wp-rocket.me/): a user friendly WordPress plugin for page caching, cache preloading, static files compression, lazy loading, and more.

Example
-------

[](#example)

```
define( 'EXAMPLE_IMAGIFY_PARTNER_ID' , 'test' );

add_action( 'plugins_loaded', 'example_plugin_init' );
/**
 * Init.
 */
function example_plugin_init() {
	if ( ! is_admin() ) {
		return;
	}

	require_once dirname( __FILE__ ) . '/vendor/class-imagify-partner.php';

	if ( Imagify_Partner::has_imagify_api_key() ) {
		return;
	}

	// The class needs to be initiated to launch hooks.
	$imagify = new Imagify_Partner( EXAMPLE_IMAGIFY_PARTNER_ID );
	$imagify->init();

	add_action( 'admin_menu', 'example_plugin_menu' );
}

/**
 * Add a submenu.
 */
function example_plugin_menu() {
	add_submenu_page( 'options-general.php', 'Example Plugin', 'Example Plugin', 'install_plugins', 'example-plugin', 'example_plugin_page' );
}

/**
 * The plugin page displaying a link to install Imagify plugin.
 */
function example_plugin_page() {
	echo '';
	echo 'Example Plugin';
	echo '';

	if ( Imagify_Partner::is_imagify_activated() ) {
		// Imagify is activated, the user only needs to set the API key (the 3 steps banner should be displaying).
		if ( Imagify_Partner::is_success() ) {
			_e( 'Imagify has been successfully activated.', 'example-plugin' );
		} else {
			_e( 'Imagify is already activated.', 'example-plugin' );
		}
	} else {
		$imagify = new Imagify_Partner( EXAMPLE_IMAGIFY_PARTNER_ID );

		if ( Imagify_Partner::is_imagify_installed() ) {
			$button_text = __( 'Activate Imagify', 'example-plugin' );
		} else {
			$button_text = __( 'Install and activate Imagify', 'example-plugin' );
		}

		echo '' . $button_text . '';
	}

	echo '';
	echo '';
}
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2308d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5564218f7cd2ccf4542a09b7c5436e61e6b370c97fb3b04db1c5bbc0cc67e3c1?d=identicon)[wpmedia](/maintainers/wpmedia)

---

Top Contributors

[![Screenfeed](https://avatars.githubusercontent.com/u/1878479?v=4)](https://github.com/Screenfeed "Screenfeed (2 commits)")

---

Tags

wordpressImagify

### Embed Badge

![Health badge](/badges/wp-media-wp-imagify-partner/health.svg)

```
[![Health](https://phpackages.com/badges/wp-media-wp-imagify-partner/health.svg)](https://phpackages.com/packages/wp-media-wp-imagify-partner)
```

###  Alternatives

[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k222.5k13](/packages/tgmpa-tgm-plugin-activation)[aristath/kirki

Extending the WordPress customizer

1.3k73.0k4](/packages/aristath-kirki)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.6k](/packages/afragen-git-updater)[justintadlock/hybrid-carbon

God-like post featured image script.

202.5k](/packages/justintadlock-hybrid-carbon)[typisttech/wp-admin-notices

A simplified OOP implementation of the WordPress admin notices

141.2k](/packages/typisttech-wp-admin-notices)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
