Skip to content

Commit 19cfeeb

Browse files
committed
Prepare version 1.1.1
- Create LICENSE - fixed scripts optimization - fixed site URL if your wordpress root is in a folder - fixed issue #3 - folder um_optimize missing
1 parent 289c42d commit 19cfeeb

16 files changed

+1086
-216
lines changed

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
Optimize loading for sites with the Ultimate Member plugin.
44

55
## Key Features
6+
67
- Removes CSS and JS files that belongs to Ultimate Member and its extensions from pages where there are no Ultimate Member elements.
78
- Combines CSS and JS files that belongs to Ultimate Member and its extensions on pages with Ultimate Member elements.
8-
- Minifies combined files.
99
- Optimizes SQL queries to get posts and users faster.
1010

1111
## Installation
@@ -22,7 +22,7 @@ Once the plugin is cloned, enter your site admin dashboard and go to _wp-admin >
2222

2323
### How to install from ZIP archive
2424

25-
You can install this plugin from the [ZIP file](https://drive.google.com/file/d/1vtzVKyZJ5pgFAWKBs734ehL8Z1JZfuF3/view) as any other plugin. Follow [this instruction](https://wordpress.org/support/article/managing-plugins/#upload-via-wordpress-admin).
25+
You can install this plugin from the [ZIP file](https://drive.google.com/file/d/12d8KIT6_nkiRytgbVNhpfkjuQLesqmBu/view) as any other plugin. Follow [this instruction](https://wordpress.org/support/article/managing-plugins/#upload-via-wordpress-admin).
2626

2727
## How to use
2828

@@ -32,27 +32,21 @@ Go to *wp-admin > Ultimate Member > Settings > General > Optimize* to manage set
3232
- **Dequeue unused JS files** - Dequeue JS files queued by the Ultimate Member plugin from pages where there are no Ultimate Member elements.
3333
- **Combine CSS files** - Combine CSS files queued by the Ultimate Member plugin and its extensions.
3434
- **Combine JS files** - Combine JS files queued by the Ultimate Member plugin and its extensions.
35-
- **Minify CSS files** - *(optional)* Minify combined CSS files.
36-
- **Minify JS files** - *(optional)* Minify combined JS files.
37-
38-
__Note:__ Settings "Minify CSS files" and "Minify JS files" are hidden if original files are minified.
3935

4036
- **Speed up Activity** - *(optional)* Optimize the SQL query that retrieves posts for the [Social Activity](https://ultimatemember.com/extensions/social-activity/) extension.
4137
- **Speed up Groups** - *(optional)* Optimize the SQL query that retrieves posts for the [Groups](https://ultimatemember.com/extensions/groups/) extension.
4238
- **Speed up Notes** - *(optional)* Optimize the SQL query that retrieves notes for the [User Notes](https://ultimatemember.com/extensions/user-notes/) extension.
4339
- **Speed up Photos** - *(optional)* Optimize the SQL query that retrieves albums for the [User Photos](https://ultimatemember.com/extensions/user-photos/) extension.
4440
- **Speed up member directories** - *(optional)* Optimize the SQL query that retrieves users for the member directory.
4541

46-
__Note:__ The experimental tool "Speed up member directories" is only available in debug mode for now.
47-
4842
Image - Optimize settings.
4943
![UM Settings, General, Optimize](https://github.com/umdevelopera/um-optimize/assets/113178913/22783720-c9af-4562-8ca7-7fff43123d99)
5044

5145
## Support
5246

5347
This is a free extension created for the community. The Ultimate Member team does not provide support for this extension. Open new [issue](https://github.com/umdevelopera/um-optimize/issues) if you are facing a problem or have a suggestion.
5448

55-
## Related links
49+
### Related links
5650

5751
Ultimate Member home page: https://ultimatemember.com
5852

includes/admin/class-admin.php

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,6 @@ public function extend_settings( $settings ) {
7171
'tooltip' => __( 'Combine JS files queued by the Ultimate Member plugin and its extensions.', 'um-optimize' ),
7272
);
7373

74-
if ( ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) || ( defined( 'UM_SCRIPT_DEBUG' ) && UM_SCRIPT_DEBUG ) ) {
75-
$fields[] = array(
76-
'id' => 'um_optimize_css_minify',
77-
'type' => 'checkbox',
78-
'label' => __( 'Minify CSS files', 'um-optimize' ),
79-
'tooltip' => __( 'Minify combined CSS files.', 'um-optimize' ),
80-
'conditional' => array( 'um_optimize_css_combine', '=', '1' ),
81-
);
82-
$fields[] = array(
83-
'id' => 'um_optimize_js_minify',
84-
'type' => 'checkbox',
85-
'label' => __( 'Minify JS files', 'um-optimize' ),
86-
'tooltip' => __( 'Minify combined JS files.', 'um-optimize' ),
87-
'conditional' => array( 'um_optimize_js_combine', '=', '1' ),
88-
);
89-
}
90-
9174
// SQL queries.
9275
$fields[] = array(
9376
'id' => 'um_optimize_assets_info',
@@ -127,13 +110,12 @@ public function extend_settings( $settings ) {
127110
'tooltip' => __( 'Optimize the SQL query that retrieves albums for the User Photos extension.', 'um-optimize' ),
128111
);
129112
}
130-
if ( defined( 'WP_DEBUG' ) && UM()->options()->get( 'members_page' ) ) {
113+
if ( UM()->options()->get( 'members_page' ) ) {
131114
$fields[] = array(
132-
'id' => 'um_optimize_members',
133-
'type' => 'checkbox',
134-
'label' => __( 'Speed up member directories', 'um-optimize' ),
135-
'tooltip' => __( 'Optimize the SQL query that retrieves users for the member directory.', 'um-optimize' ),
136-
'description' => __( 'This experimental tool is only available in debug mode for now.', 'um-optimize' ),
115+
'id' => 'um_optimize_members',
116+
'type' => 'checkbox',
117+
'label' => __( 'Speed up member directories', 'um-optimize' ),
118+
'tooltip' => __( 'Optimize the SQL query that retrieves users for the member directory.', 'um-optimize' ),
137119
);
138120
}
139121

0 commit comments

Comments
 (0)