Skip to content

Commit

Permalink
commit v2.0.0 into development
Browse files Browse the repository at this point in the history
* complete rewrite of the plugin
* new Settings page to fine tune what is hidden/removed to your liking
* new screenshots
* tested up to WP 4.4.2
  • Loading branch information
Piet Bos committed Feb 4, 2016
1 parent dfbd449 commit 8c5aba7
Show file tree
Hide file tree
Showing 17 changed files with 1,278 additions and 320 deletions.
78 changes: 59 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,77 @@

[![plugin version](https://img.shields.io/wordpress/plugin/v/so-clean-up-wp-seo.svg)](https://wordpress.org/plugins/so-clean-up-wp-seo)

###### Last updated on 2015.12.26
###### Last updated on 2016.02.04
###### requires at least WordPress 4.0
###### tested up to WordPress 4.4.1
###### tested up to WordPress 4.4.2
###### Author: [Piet Bos](https://github.com/senlin)

Hide most of the bloat that the Yoast SEO plugin adds to your WordPress Dashboard
Hide most of the bloat that the Yoast SEO plugin adds to your WordPress Dashboard, now with Settings Page!

## Description

Almost anyone that uses Yoast SEO by Team Yoast will agree that it is a great SEO plugin, but the developers are adding more and more unwanted things to the WordPress Dashboard.

The purpose of the SO Hide SEO Bloat plugin is to clean up all those unwanted things.

As per the current release, the plugin removes and/or disables the following unwanted items:
Since v2.0.0 (released on February 4, 2016) we have a Settings page!

* removes sidebar ads on all Yoast SEO settings pages
* removes the Yoast SEO settings from the Admin Bar
* removes updated nag
* sets plugin-intro-tour user_meta to true (means done)
* removes the keyword/description columns on edit Posts/Pages pages
* removes the overview dashboard widget that was introduced in version 2.3 of the Yoast SEO plugin
* remove GSC (Google Search Console) nag that was introduced in Yoast SEO 2.3.3
* remove yst_opengraph_image_warning nag that was added to Yoast SEO 2.1, but we never noticed it before. In the changelog it has been described as "validation error", which of course is nonsense, because the world is larger than social media. The nag manifests itself by placing thick red borders around your Featured Image as well as a red-bordered warning message when your Featured Image is smaller than 200x200 pixels.
* remove + icon from new Edit screen UI as it serves only to show an ad for the premium version of Yoast SEO
* remove wpseo-score traffic light next to Move to trash on Edit Post/Page screen
* remove SEO score algorithm recalculate nag
The purpose of the settings page is that you can fine-tune what is hidden or removed to your liking. By default most of the bloat that the Yoast SEO plugin generates is hidden or removed, just like before when there were no settings yet.

It is a good idea to have a look at the Settings page if only to see what you can fine-tune. The link to the page has been added to the Yoast SEO menu and of course there is also a link to it from the Plugins page.

The default settings of the current release are as follows:

* hide the cartoon-style sidebar ads on almost all settings pages of the Yoast SEO plugin
* hide about nag that shows on every update of the plugin
* hide recalculate nag that alerts user that SEO score algorithm has been updated
* hide tagline nag that shows when your site uses the default WordPress tagline
* hide robots nag that shows when your site is blocking access to robots, for example on dev and staging sites; it also hides the warning in the advanced tab of Yoast SEO UI in edit Post/Page screen
* hide Google Search Console nag that warns about not missing any crawl errors by connecting the Yoast SEO plugin to it
* hide image warning nag that shows in edit Post/Page screen when featured image is smaller than 200x200 pixels
* hide add keyword button that shows in edit Post/Page and only serves to show an ad for the premium version
* hide seoscore traffic light in publish/update box on edit Post/Page
* hide the SEO Score, Title and Meta description admin columns on the Posts/Pages screen; Focus keyword column can be hidden too
* remove SEO Settings sub menu of SEO menu in admin bar; additional option is to remove the Keyword Research sub menu
* remove the Yoast SEO widget from the WordPress Dashboard
* the tour is set to seen (there is no setting for this as the tour can be seen at any moment by going to the General settings of the Yoast SEO plugin)

If you like the SO Hide SEO Bloat plugin, please consider leaving a [review](https://wordpress.org/support/view/plugin-reviews/so-clean-up-wp-seo?rate=5#postform).
Alternatively you are welcome to make a [donation](http://so-wp.com/donations/). Thanks!

## Frequently Asked Questions

### Where are the Settings?

For [v2.0.0](https://github.com/senlin/so-clean-up-wp-seo/milestones/version%202.0.0) we have planned a complete rewrite of the SO Hide SEO Bloat plugin which includes a Settings page to enable the user to clean up individual items, instead of the current blanket rule.
### Where is the settings page?

For now however you can stop looking, there is none yet. Activate the plugin to clean up your WordPress dashboard.
The link to the page has been added to the Yoast SEO menu and of course there is also a link to it from the Plugins page.

### Can I use SO Hide SEO Bloat on Multisite?

You can, but until further notice you need to activate the plugin on a per-site basis ([see this Github issue](https://github.com/senlin/so-clean-up-wp-seo/issues/4))

### The name of the plugin is confusing, it hides bloat of which SEO plugin?

Yes, you are right, the name is a bit vague (see Changelog v1.8.0). On the other hand there is only one SEO plugin that adds a lot of bloat to the WordPress Dashboard and that is the Yoast SEO plugin.

### The plugin doesn't do anything!

Do you have the Yoast SEO plugin installed? It hides the bloat from that plugin only.
If you have and the plugin still doesn't do anything, then please open a [support ticket](https://github.com/senlin/so-clean-up-wp-seo/issues).

### With a settings page comes additional entries in the database; what happens on uninstall?

Great question!
Indeed the SO Hide SEO Bloat plugin writes its settings to the database. The included `uninstall.php` file removes all the plugin-related entries from the database once you remove the plugin via the WordPress Plugins page (not on deactivation).

### You have only a handful ratings/reviews; why should I install this plugin?

Yes, you are correct and many people say that it is important for a plugin to have a good rating.
Fortunately there are already quite a few people that have downloaded the plugin, installed it, activated it and keep it activated, as you can see from the Active Installs in the sidebar. There must be something good that the plugin does then, right?

So if you decide to install it and you're happy about the plugin, then please help the next person (and me) by [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/so-clean-up-wp-seo?rate=5#postform).

Thank you very much!

### I have an issue with this plugin, where can I get support?

Please open an issue here on [Github](https://github.com/senlin/so-clean-up-wp-seo/issues)
Expand Down Expand Up @@ -75,6 +104,13 @@ We are looking to release a [new version](https://github.com/senlin/so-clean-up-

## Changelog

### 2.0.0 (2016.02.04)

* complete rewrite of the plugin
* new Settings page to fine tune what is hidden/removed to your liking
* new screenshots
* tested up to WP 4.4.2

### 1.8.0 (2016.01.28)

* name change to avoid "Yoast" trademark violation
Expand Down Expand Up @@ -157,6 +193,10 @@ We are looking to release a [new version](https://github.com/senlin/so-clean-up-

## Update Notice

### 2.0.0

* Version 2.0.0 is a complete rewrite of the SO Hide SEO Bloat plugin. Please visit the Settings page after you have updated to this version, so you can fine tune what is hidden/removed.

### 1.8.0

* name change to avoid "Yoast" trademark violation
Expand Down
125 changes: 125 additions & 0 deletions admin/class-so-clean-up-wp-seo-admin-api.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<?php

if ( ! defined( 'ABSPATH' ) ) exit;

class CUWS_Admin_API {

/**
* Generate HTML for displaying fields
* @param array $field Field data
* @param boolean $echo Whether to echo the field HTML or return it
* @return void
* @source: //github.com/hlashbrooke/WordPress-Plugin-Template/
* @since v2.0.0
*/
public function display_field ( $data = array(), $post = false, $echo = true ) {

// Get field info
if ( isset( $data['field'] ) ) {
$field = $data['field'];
} else {
$field = $data;
}

// Check for prefix on option name
$option_name = '';
if ( isset( $data['prefix'] ) ) {
$option_name = $data['prefix'];
}

// Get saved data
$data = '';
if ( $post ) {

// Get saved field data
$option_name .= $field['id'];
$option = get_post_meta( $post->ID, $field['id'], true );

// Get data to display in field
if ( isset( $option ) ) {
$data = $option;
}

} else {

// Get saved option
$option_name .= $field['id'];
$option = get_option( $option_name );

// Get data to display in field
if ( isset( $option ) ) {
$data = $option;
}

}

// Show default data if no option saved and default is supplied
if ( $data === false && isset( $field['default'] ) ) {
$data = $field['default'];
} elseif ( $data === false ) {
$data = '';
}

$html = '';

switch( $field['type'] ) {

case 'checkbox':
$checked = '';
if ( $data && 'on' == $data ) {
$checked = 'checked="checked"';
}
$html .= '<input id="' . esc_attr( $field['id'] ) . '" type="' . esc_attr( $field['type'] ) . '" name="' . esc_attr( $option_name ) . '" ' . $checked . '/>' . "\n";
break;

case 'checkbox_multi':
foreach ( $field['options'] as $k => $v ) {
$checked = false;
if ( in_array( $k, $data ) ) {
$checked = true;
}
$html .= '<label for="' . esc_attr( $field['id'] . '_' . $k ) . '" class="checkbox_multi"><input type="checkbox" ' . checked( $checked, true, false ) . ' name="' . esc_attr( $option_name ) . '[]" value="' . esc_attr( $k ) . '" id="' . esc_attr( $field['id'] . '_' . $k ) . '" /> ' . $v . '</label> ';
}
break;

case 'radio':
foreach ( $field['options'] as $k => $v ) {
$checked = false;
if ( $k == $data ) {
$checked = true;
}
$html .= '<label for="' . esc_attr( $field['id'] . '_' . $k ) . '"><input type="radio" ' . checked( $checked, true, false ) . ' name="' . esc_attr( $option_name ) . '" value="' . esc_attr( $k ) . '" id="' . esc_attr( $field['id'] . '_' . $k ) . '" /> ' . $v . '</label> ';
}
break;

}

switch( $field['type'] ) {

case 'checkbox_multi':
case 'radio':
$html .= '<br/><span class="description">' . $field['description'] . '</span>';
break;

default:
if ( ! $post ) {
$html .= '<label for="' . esc_attr( $field['id'] ) . '">' . "\n";
}

$html .= '<span class="description">' . $field['description'] . '</span>' . "\n";

if ( ! $post ) {
$html .= '</label>' . "\n";
}
break;
}

if ( ! $echo ) {
return $html;
}

echo $html;

}

}
Binary file modified assets/banner-772x250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshot-5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions css/admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/**
* All of the CSS for the admin-specific functionality is included in this file.
* @since v2.0.0
*/

.seo_page_cuws_settings .wrap > h2 {
background-image: url("../images/so-icon.png");
background-position: 0 0;
background-repeat: no-repeat;
background-size: 32px auto;
display: block;
min-height: 32px;
padding-left: 40px !important;
padding-top: 2px !important;
}
.seo_page_cuws_settings .wrap > p {
font-size: 16px;
}
.seo_page_cuws_settings .wrap > form span.description {
font-size: 14px;
}
.rate-this-plugin {
color: #0074A2;
font-style: italic;
font-size: 16px;
}
.support {
font-size: 16px;
}
.author.postbox {
max-width: 500px;
}
.author.postbox .hndle {
border-bottom: 1px solid #DDD;
margin-bottom: 0;
padding: 5px;
}
.author.postbox .inside {
display: block;
margin: 0;
overflow: hidden;
}
.author.postbox .inside .top {
min-height: 90px;
}
.author.postbox .inside > .top > .author-image {
border: 1px solid #DFDFDF;
float: left;
margin-right: 10px;
padding: 3px;
}
.author.postbox .inside > ul {
clear: both;
}
.author.postbox .inside li {
float: left;
width: 50%;
}
Binary file added images/pietbos-80x80.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/so-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8c5aba7

Please sign in to comment.