{"id":158765,"date":"2022-06-16T14:32:32","date_gmt":"2022-06-16T14:32:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/startklar-image-optimizer\/"},"modified":"2022-06-16T16:28:36","modified_gmt":"2022-06-16T16:28:36","slug":"startklar-image-optimizer","status":"publish","type":"plugin","link":"https:\/\/fr.wordpress.org\/plugins\/startklar-image-optimizer\/","author":18065171,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"1.0","tested":"6.0.12","requires":"5.6","requires_php":"5.6.20","requires_plugins":"","header_name":"Startklar Image Optimizer","header_author":"Startklar","header_description":"Plugin  is designed for batch optimization of images that are in the WordPress media library.","assets_banners_color":"","last_updated":"2022-06-16 16:28:36","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/donate\/?hosted_button_id=J2FXPNSYGWLBE","header_plugin_uri":"https:\/\/startklar.app\/","header_author_uri":"https:\/\/startklar.app\/","rating":0,"author_block_rating":0,"active_installs":20,"downloads":3142,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"wshberlin","date":"2022-06-16 16:28:36"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2743648,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2743648,"resolution":"256x256","location":"assets","locale":"","width":128,"height":128}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":2743627,"resolution":"1","location":"assets","locale":"","width":1515,"height":891}},"screenshots":{"1":"How easy it is to set up a cron-task."}},"plugin_section":[],"plugin_tags":[187,247,186],"plugin_category":[52,54],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-158765","plugin","type-plugin","status-publish","hentry","plugin_tags-optimization","plugin_tags-performance","plugin_tags-seo","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_committers-wshberlin"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/startklar-image-optimizer\/assets\/icon-128x128.png?rev=2743648","icon_2x":"https:\/\/ps.w.org\/startklar-image-optimizer\/assets\/icon-256x256.png?rev=2743648","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/startklar-image-optimizer\/assets\/screenshot-1.jpg?rev=2743627","caption":"How easy it is to set up a cron-task."}],"raw_content":"<!--section=description-->\n<p>This plugin allows you to optimize images from your media library and thus improve the SEO performance of your site.\nThis plugin is based on the JPEGOPTIM utility and PNGQUANT utility which must be installed on your host.\nThe essence of our plugin is that when it starts, it sorts through all the attachments for the articles of your WP-site\nand processes them right at the place where they are located.\nAfter that, the attachment is marked as processed, which prevents it from being processed again.\nIn the admin page you can view the total number of your images and the number of processed images,\nas well as select the number of images to be processed in one cycle.\nAt the moment, the script for optimization is made in the form of a standard wp-action (its name is \"startklar_image_optimizer_process\")\nthat can be called from another place.<\/p>\n\n<p>Here is an example of how to call this action:\n do_action( 'startklar_image_optimizer_process' );<\/p>\n\n<p>For example, for a simple implementation, you can use the \"WP Crontrol\" plugin (https:\/\/ru.wordpress.org\/plugins\/wp-crontrol\/)\n by which you can create a cron task that can optimize one image every minute.\nThis tactic was chosen in order to process all the files of the site without introducing excessive load to the site\n(since the native cron in WP is activated by hits and has a runtime limit, like similar http sessions of this host).<\/p>\n\n<p>Screenshot #1 shows how easy it is to set up a cron-task.<\/p>\n\n<!--section=installation-->\n<p><strong>Plugin installation.<\/strong>\nInstallation is done as standard for WP. Install \"WP Crontrol\" plugin in addition if you need to run cron optimization.<\/p>\n\n<p><strong>Plugin setup.<\/strong>\nThe setup interface is as simple and intuitive as possible.\nGo to the admin page and make sure you have the JPEGOPTIM utility and the PNGQUANT utility installed.\nUse the admin page to view statistics and select how many images, are processed per cycle.\n<strong>Usage.<\/strong>\nCreate a new cron task for the action \"startklar_image_optimizer_process\" in the plugin \"WP Crontrol\".\nScreenshot #1 shows how easy it is to set up a cron-task.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20can%20i%20check%20that%20the%20plugin%20is%20configured%20and%20working%20correctly%3F'><h3>How can I check that the plugin is configured and working correctly?<\/h3><\/dt>\n<dd><p>You can temporarily activate debug mode in WordPress.<\/p>\n\n<p>define( 'WP_DEBUG', true );\ndefine( 'WP_DEBUG_LOG', true );<\/p>\n\n<p>'WP_DEBUG' is a PHP constant (a permanent global variable) that can be used to trigger the debug mode throughout WordPress.\n'WP_DEBUG_LOG'   - When set to true, the log is saved to debug.log in the content directory (usually \/wp-content\/plugins\/startklar_image_optimizer\/debug.log) within your sites filesystem. Alternatively, you can set it to a valid file path to have the file saved elsewhere.<\/p>\n\n<p>Now you can see lines like this in your log file:<\/p>\n\n<p>START OPTIMIZATION 14.06.2022 18:25:18\n_wp_attachment_metadata id=26\nPROCESS FILEC:\\xampp1\\htdocs\\my-wp\/wp-content\/uploads\/2022\/06\/pexels-jhovani-morales-12319997-200x300.jpg  BY jpegoptim\nEND\nAfter processing, the source file should reduce in size, it's not difficult to track.\nAfter checking, return the constants that are responsible for debugging to their original state.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First Release<\/li>\n<\/ul>","raw_excerpt":"This plugin allows you to optimize images from your media library and thus improve the SEO performance of your site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/158765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=158765"}],"author":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wshberlin"}],"wp:attachment":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=158765"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=158765"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=158765"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=158765"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=158765"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=158765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}