Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .wordpress-org/icon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions .wordpress-org/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion config/wp-version.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
57_73=wordpress:5.7-php7.3-apache
60_74=wordpress:6.0-php7.4-apache
70_84=wordpress:7.0-php8.4-apache
71_85=wordpress:beta-7.1-php8.5-apache
71_85=wordpress:7.1-php8.5-apache
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tinify/wordpress-plugin",
"version": "1.0.0",
"description": "TinyPNG - JPEG, PNG & WebP image compression",
"description": "TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF",
"main": "index.js",
"scripts": {
"test:playwright": "playwright test"
Expand Down
8 changes: 4 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
=== TinyPNG - JPEG, PNG & WebP image compression ===
=== TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF ===
Contributors: TinyPNG
Donate link: https://tinypng.com/
Tags: compress images, compression, image size, page speed, performance
Expand Down Expand Up @@ -103,15 +103,15 @@ Want to contribute? Check out the [Tinify Wordpress plugin on GitHub](https://gi
= From your WordPress dashboard =

1. Visit *Plugins > Add New*.
2. Search for 'tinypng' and press the 'Install Now' button for the plugin named 'TinyPNG - JPEG, PNG & WebP image compression' by 'TinyPNG'.
2. Search for 'tinypng' and press the 'Install Now' button for the plugin named 'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF' by 'TinyPNG'.
3. Activate the plugin from your *Plugins* page.
4. Go to the *Settings > TinyPNG* page and register a new account.
5. Or enter the API key you got from https://tinypng.com/developers.
6. Go to *Media > Bulk TinyPNG* and optimize all your images!

= From WordPress.org =

1. Download the plugin named 'TinyPNG - JPEG, PNG & WebP image compression' by 'TinyPNG'.
1. Download the plugin named 'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF' by 'TinyPNG'.
2. Upload the `tiny-compress-images` directory to your `/wp-content/plugins/` directory, using your favorite method (ftp, sftp, scp, etc...)
3. Activate the plugin from your Plugins page.
4. Go to the *Settings > TinyPNG* page and register a new account.
Expand All @@ -136,7 +136,7 @@ Once set up you will see a message on the *Settings > TinyPNG* page. This will w
== Frequently Asked Questions ==

= Q: How many images can I optimize for free? =
A: In a default WordPress installation you can optimize around 100 images for free each month. WordPress creates different thumbnails of your images which all have to be compressed. Some plugins even add more sizes, so take a look at the *Settings > TinyPNG - JPEG, PNG & WebP image compression* page before you start optimization.
A: In a default WordPress installation you can optimize around 100 images for free each month. WordPress creates different thumbnails of your images which all have to be compressed. Some plugins even add more sizes, so take a look at the *Settings > TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF* page before you start optimization.

= Q: How much does it cost to use the plugin? =
A: The plugin is free to use, you receive 500 free compressions each calendar month.
Expand Down
6 changes: 3 additions & 3 deletions src/class-tiny-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function show( $name, $message, $klass = 'error', $dismissible = true ) {

$css = implode( ' ', $css );
$plugin_name = __(
'TinyPNG - JPEG, PNG & WebP image compression',
'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF',
'tiny-compress-images'
);

Expand Down Expand Up @@ -291,7 +291,7 @@ private function show_incompatible_plugins( $incompatible_plugins ) {
$notice = '<div class="error notice tiny-notice incompatible-plugins">';
$notice .= '<h3>';
$notice .= esc_html__(
'TinyPNG - JPEG, PNG & WebP image compression',
'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF',
'tiny-compress-images'
);
$notice .= '</h3>';
Expand All @@ -305,7 +305,7 @@ private function show_incompatible_plugins( $incompatible_plugins ) {
$notice .= '<table>';
$notice .= '<tr><td class="bullet">•</td><td class="name">';
$notice .= esc_html__(
'TinyPNG - JPEG, PNG & WebP image compression',
'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF',
'tiny-compress-images'
);
$notice .= '</td><td></td></tr>';
Expand Down
7 changes: 6 additions & 1 deletion src/class-tiny-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,14 @@ public function add_dashboard_widget() {

wp_enqueue_script( self::NAME . '_dashboard_widget' );

$widget_title = esc_html__(
'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF',
'tiny-compress-images'
);

wp_add_dashboard_widget(
$this->get_prefixed_name( 'dashboard_widget' ),
esc_html__( 'TinyPNG - JPEG, PNG & WebP image compression', 'tiny-compress-images' ),
$widget_title,
$this->get_method( 'add_widget_view' )
);
}
Expand Down
12 changes: 10 additions & 2 deletions src/class-tiny-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,13 @@ public function admin_menu() {
'media'
);

$page_title = __(
'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF',
'tiny-compress-images'
);

add_options_page(
__( 'TinyPNG - JPEG, PNG & WebP image compression', 'tiny-compress-images' ),
$page_title,
esc_html__( 'TinyPNG', 'tiny-compress-images' ),
'manage_options',
'tinify',
Expand Down Expand Up @@ -485,7 +490,10 @@ private function setup_incomplete_checks() {

public function render_settings_moved() {
echo '<div class="tinify-settings"><h3>';
esc_html_e( 'TinyPNG - JPEG, PNG & WebP image compression', 'tiny-compress-images' );
esc_html_e(
'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF',
'tiny-compress-images'
);
echo '</h3>';
$url = admin_url( 'options-general.php?page=tinify' );
$link = "<a href='" . $url . "'>";
Expand Down
2 changes: 1 addition & 1 deletion src/views/settings.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="wrap">
<h1><?php esc_html_e( 'TinyPNG - JPEG, PNG & WebP image compression', 'tiny-compress-images' ); ?></h2>
<h1><?php esc_html_e( 'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF', 'tiny-compress-images' ); ?></h1>
<p><?php esc_html_e( 'Speed up your website. Optimize your JPEG, PNG, and WebP images automatically with TinyPNG.', 'tiny-compress-images' ); ?></p>
<div class="tiny-compress-images">
<span id="tiny-compress-images"></span>
Expand Down
2 changes: 1 addition & 1 deletion test/integration/plugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.describe('plugin', () => {
});

test('should have title', async () => {
await expect(page.getByText('TinyPNG - JPEG, PNG & WebP image compression', { exact: true })).toBeVisible();
await expect(page.getByText('TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF', { exact: true })).toBeVisible();
});

test('includes settings link', async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test.describe('settings', () => {
});

test('can load settings page', async () => {
const showsPageTitle = await page.getByRole('heading', { name: 'TinyPNG - JPEG, PNG & WebP image compression' }).isVisible();
const showsPageTitle = await page.getByRole('heading', { name: 'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF' }).isVisible();
expect(showsPageTitle).toBe(true);
});

Expand Down
4 changes: 2 additions & 2 deletions tiny-compress-images.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: TinyPNG - JPEG, PNG & WebP image compression
* Description: Speed up your website. Optimize your JPEG, PNG, and WebP images automatically with TinyPNG.
* Plugin Name: TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF
* Description: Compress & convert images to WebP & AVIF automatically. Faster pages, improved SEO. Optimize 500 images/month free, no ads.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
* Version: 3.8.0
* Author: TinyPNG
* Author URI: https://tinypng.com
Expand Down
Loading