diff --git a/.wordpress-org/icon.gif b/.wordpress-org/icon.gif new file mode 100644 index 00000000..40b661da Binary files /dev/null and b/.wordpress-org/icon.gif differ diff --git a/.wordpress-org/icon.svg b/.wordpress-org/icon.svg new file mode 100644 index 00000000..8de7c3b5 --- /dev/null +++ b/.wordpress-org/icon.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/config/wp-version.conf b/config/wp-version.conf index be899af4..d0567cad 100644 --- a/config/wp-version.conf +++ b/config/wp-version.conf @@ -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 \ No newline at end of file +71_85=wordpress:7.1-php8.5-apache \ No newline at end of file diff --git a/package.json b/package.json index 33e0fa28..7fd0eac0 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/readme.txt b/readme.txt index 994cdb81..7f3c14c4 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -103,7 +103,7 @@ 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. @@ -111,7 +111,7 @@ Want to contribute? Check out the [Tinify Wordpress plugin on GitHub](https://gi = 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. @@ -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. diff --git a/src/class-tiny-notices.php b/src/class-tiny-notices.php index 6ca2aac6..5ddedd3d 100644 --- a/src/class-tiny-notices.php +++ b/src/class-tiny-notices.php @@ -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' ); @@ -291,7 +291,7 @@ private function show_incompatible_plugins( $incompatible_plugins ) { $notice = '
'; $notice .= '

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

'; @@ -305,7 +305,7 @@ private function show_incompatible_plugins( $incompatible_plugins ) { $notice .= ''; $notice .= ''; diff --git a/src/class-tiny-plugin.php b/src/class-tiny-plugin.php index ff0708e0..1ee1b4ec 100644 --- a/src/class-tiny-plugin.php +++ b/src/class-tiny-plugin.php @@ -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' ) ); } diff --git a/src/class-tiny-settings.php b/src/class-tiny-settings.php index 342f9d8e..8f442ea5 100644 --- a/src/class-tiny-settings.php +++ b/src/class-tiny-settings.php @@ -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', @@ -485,7 +490,10 @@ private function setup_incomplete_checks() { public function render_settings_moved() { echo '

'; - 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 '

'; $url = admin_url( 'options-general.php?page=tinify' ); $link = ""; diff --git a/src/views/settings.php b/src/views/settings.php index e240ac33..fc6ea357 100644 --- a/src/views/settings.php +++ b/src/views/settings.php @@ -1,5 +1,5 @@
-

+

diff --git a/test/integration/plugin.spec.ts b/test/integration/plugin.spec.ts index 63b7d11e..8e78ca89 100644 --- a/test/integration/plugin.spec.ts +++ b/test/integration/plugin.spec.ts @@ -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 () => { diff --git a/test/integration/settings.spec.ts b/test/integration/settings.spec.ts index e059c38f..6fadee7f 100644 --- a/test/integration/settings.spec.ts +++ b/test/integration/settings.spec.ts @@ -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); }); diff --git a/tiny-compress-images.php b/tiny-compress-images.php index 37ccc7e0..12a4879b 100644 --- a/tiny-compress-images.php +++ b/tiny-compress-images.php @@ -1,7 +1,7 @@
'; $notice .= esc_html__( - 'TinyPNG - JPEG, PNG & WebP image compression', + 'TinyPNG Image Optimization – Image Compression JPEG & PNG | Convert to WebP & AVIF', 'tiny-compress-images' ); $notice .= '