{"id":16367529,"url":"https://github.com/alexmacarthur/picperf-wordpress","last_synced_at":"2025-10-26T07:30:40.368Z","repository":{"id":177115313,"uuid":"656986142","full_name":"alexmacarthur/picperf-wordpress","owner":"alexmacarthur","description":"WordPress plugin for upgrading your images with PicPerf.io.","archived":false,"fork":false,"pushed_at":"2024-10-02T02:05:08.000Z","size":164,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T16:42:02.247Z","etag":null,"topics":["image-processing","performance","seo"],"latest_commit_sha":null,"homepage":"https://picperf.dev","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexmacarthur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-22T04:23:25.000Z","updated_at":"2024-12-30T21:28:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"d250f948-8a8e-40d2-ae10-60c658937115","html_url":"https://github.com/alexmacarthur/picperf-wordpress","commit_stats":null,"previous_names":["alexmacarthur/picperf-wordpress"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmacarthur%2Fpicperf-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmacarthur%2Fpicperf-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmacarthur%2Fpicperf-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmacarthur%2Fpicperf-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexmacarthur","download_url":"https://codeload.github.com/alexmacarthur/picperf-wordpress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238284736,"owners_count":19446718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-processing","performance","seo"],"created_at":"2024-10-11T02:50:10.696Z","updated_at":"2025-10-26T07:30:35.086Z","avatar_url":"https://github.com/alexmacarthur.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PicPerf WordPress Plugin\n\n[PicPerf](http://picperf.io) is a service for automatically optimizing, reformating, and aggressively caching your website's images just by prefixing the URLs you're already using. This WordPress plugin will take care of that part too, making it even easier to upgrade your image performance.\n\n## Getting Started\n\n1. Create an account.\n\nIn order to benefit from this plugin, you'll need to first sign up for a plan at [picperf.io](https://picperf.io). You'll automatically be given a 14-day free trial (no card required), but in order keep your images optimized beyond that, upgrade to a regular plan.\n\n1. Add your domain.\n\nAdd your website's domain inside the PicPerf dashboard. If your WordPress site runs on a different domain from your public website, please add both domains.\n\n## Installation\n\nAfter you've created an account and added your domain, all you need to do is install the plugin and activate it. You're set!\n\n## Usage\n\nThis plugin will automatically prefix every URL found in images, style tags, inline styles, and data attributes with `https://picperf.io`, allowing it to be optimized, reformatted, and globally cached. By default, it'll impact every image that's rendered in the final HTML output of your page.\n\n### Changing Transformation Scope\n\nIf you'd like to disable universal URL transformations, you can set the `PICPERF_TRANSFORMATION_SCOPE` constant in your `wp-config.php` file to `null`. Setting it to `CONTENT` will cause only images rendered via the `the_content` filter to be transformed. For example:\n\n```php\n// Transform all images (default).\ndefine('PICPERF_TRANSFORMATION_SCOPE', 'ALL');\n\n// Only transform `the_content` images.\ndefine('PICPERF_TRANSFORMATION_SCOPE', 'CONTENT');\n\n// Transform no images.\ndefine('PICPERF_TRANSFORMATION_SCOPE', null);\n```\n\n### Using an Auto-Generated Image Sitemap\n\nWhen a `sitemap_path` query parameter is set on an image, PicPerf will automatically include it in an image sitemap generated for you. By default, no images are included in the sitemap. However, you can enable this by setting the `PICPERF_ADD_SITEMAP_PATH` constant.\n\nYou\n\n```php\n\u003c?php\n\n// Include no images in sitemap (default).\ndefine('PICPERF_ADD_SITEMAP_PATH', null);\n\n// Only add `the_content` images to sitemap.\ndefine('PICPERF_ADD_SITEMAP_PATH', 'CONTENT');\n\n// Add all image so sitemap.\ndefine('PICPERF_ADD_SITEMAP_PATH', 'ALL');\n```\n\n## Auto-Registered Sitemap Endpoint\n\nBy default, this plugin will register an image sitemap for your site at `https://ur-site.com/picperf/sitemap` and add a `\u003clink\u003e` tag to the `\u003chead\u003e` of your pages.\n\nAll this endpoint does is proxy the auto-generated sitemap provided at `https://picperf.io/sitemap/ur-site.com`. The benefit is that search engines will be able to crawl and index it, since it'll be available through your domain (as set returned by the `get_site_url()` function).\n\nIf you'd like to disable this endpoint, set the `PICPERF_DISABLE_SITEMAP` to `true`.\n\n```php\n\u003c?php\n\ndefine('PICPERF_DISABLE_SITEMAP', true);\n```\n\n## Manually Transforming URLs\n\nIf you've disabled universal transformation and would like to manually handle images, you may use the `PicPerf/transformUrl()` function. It's available globally when the plugin is active:\n\n```php\n$transformedUrl = PicPerf\\transformUrl(\"https://example.com/my-image.jpg\");\n\n// https://picperf.io/https://example.com/my-image.jpg\n```\n\n## Read More\n\nFor more information on PicPerf, dig into [the documentation](http://picperf.io/docs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmacarthur%2Fpicperf-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexmacarthur%2Fpicperf-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmacarthur%2Fpicperf-wordpress/lists"}