Skip to content

Commit

Permalink
Merge pull request #31 from Scanfully/dev
Browse files Browse the repository at this point in the history
1.2.6
  • Loading branch information
barrykooij authored Jul 17, 2024
2 parents 3b13bbb + acdc483 commit 7a7e3cb
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 35 deletions.
Binary file removed assets/images/_logo-text.png
Binary file not shown.
Binary file modified assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 27 additions & 20 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://scanfully.com
Tags: scanfully, performance, monitoring, site health
Requires at least: 6.0
Tested up to: 6.5.3
Stable tag: 1.2.5
Stable tag: 1.2.6
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Requires PHP: 7.4
Expand All @@ -15,41 +15,43 @@ Scanfully is your favorite WordPress performance and site health monitoring tool

## SCANFULLY FOR WORDPRESS

> <strong>Early Access</strong><br />

> Scanfully is currently still in development. This means we've not opened up our dashboard for everyone just yet. To be one of the first to learn about when we open up access for Scanfully, subscribe to our [Early Access program](https://scanfully.com/early-access).

Scanfully is your favorite WordPress performance and health monitoring tool. This plugin connects your WordPress site to your [Scanfully](https://scanfully.com) dashboard and collects the events happening in your WordPress site. Combined with our various performance-related scans, Scanfully offers you insight into a fully encompasing overview of your site's health.
Scanfully is your favorite WordPress Performance and Site Health monitoring tool. This plugin connects your WordPress site to your [Scanfully](https://scanfully.com) dashboard and bridges the two. It syncs critical information from your WordPress site to our dashboard as well as it collects the changes happening in your WordPress site. Combined with our various performance-related scans, Scanfully offers you insight into a fully encompasing overview of your site's health.

## ONE DASHBOARD TO RULE THEM ALL

Your Scanfully Dashboard consolidates all your WordPress sites, sending you timely alerts for required changes.

Easily connect changes made inside your WordPress site to performance and site health impact. Get notifications for the events that are important to you. Right when they happen. Exactly when you want to know they happen.

## SCANFULLY FEATURES
### SCANFULLY FEATURES

Scanfully helps you stay on top of your WordPress Site Health and Performance in many ways. Let’s take a look at what we have available:

Scanfully helps you stay on top of your WordPress Site Health and Performance in many ways. Let’s take a look!
#### SINGLE DASHBOARD
**All your sites in one dashboard** allowing you to easily navigate to the various monitoring features.

### SINGLE DASHBOARD
All your sites in one dashboard allowing you to easily navigate to the various monitoring features.
#### UPTIME MONITORING
Scanfully checks your WordPress sites with **comprehensive uptime monitoring** and **smart notifications**

### UPTIME MONITORING
Scanfully checks your WordPress sites with comprehensive uptime checks and smart notifications
#### PERFORMANCE MONITORING
We do fequent **Performance Checks** to measure how fast your site loads, and provide you with an easy to read graph and recommendations

### PERFORMANCE MONITORING
We check how fast your site loads and provide you with an easy to read graph and recommendations
#### SITE HEALTH
**One Site Health dashboard to rule them all**. We collect and import all of your WordPress site’s health data in one view. Easy insights into the site health metrics that matter the most for your site.

### SITE HEALTH
All of your WordPress site’s health in one view. Easy insight into the health metrics that matter most
#### WORDPRESS EVENTS TIMELINE
Our WordPress Events Timeline **collects all changes happening inside your WordPress admin**. All these events combined with our checks provide you a unique insight into what’s going on. No longer do you have to guess what change caused the problem your client just reported and insisted he didn't do anything to cause it.

### WORDPRESS EVENTS TIMELINE
All WordPress events combined with our checks provide you a unique insight into what’s going on
#### SMART NOTIFICATIONS
Scanfully's smart notification systems allows you to define where you want to receive [whatever kind of notification you prefer](https://scanfully.com/docs/channels/). We currently offer Slack, Discord, email, and Pushover.

### LIGHTHOUSE SCANS (coming soon)
#### LIGHTHOUSE SCANS (coming soon)
Automated insights into the performance, accessibility, and quality of your website in one place

## More information
#### VULNERABILITTY SCANS (coming soon)
You will want to know as soon as possible when your WordPress site has a vulnerable plugin or theme, right? Well, that's exactly what you'll be receiving notification for when we launch this feature.

### More information

* Visit the [Scanfully website](http://www.scanfully.com/?utm_source=wp-plugin-repo&utm_medium=link&utm_campaign=more-information)
* Find and contact us on X(formerly Twitter): [@scanfullyapp](http://x.com/scanfullyapp)
Expand Down Expand Up @@ -93,6 +95,11 @@ No, our plugin on listens to changes in the WordPress backend and sends these ch

== Changelog ==

= 1.2.6 : Jul 17, 2024 =
* Tweak: Specify __DIR__ on autoload require
* Tweak: Generate health data in separate function for reusability.
* Tweak: Added 'scanfully_health_data' filter for health data.

= 1.2.5 : Jun 18, 2024 =
* Tweak: Directly run site health cron jobs after connecting.

Expand Down
6 changes: 3 additions & 3 deletions scanfully.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @wordpress-plugin
* Plugin Name: Scanfully
* Version: 1.2.5
* Version: 1.2.6
* Plugin URI: https://scanfully.com/wp-plugin
* Description: Scanfully is your favorite WordPress performance and health monitoring tool.
* Author: Scanfully
Expand Down Expand Up @@ -46,10 +46,10 @@ function Scanfully(): \Scanfully\Main {
add_action( 'plugins_loaded', function () {
// meta
define( 'SCANFULLY_PLUGIN_FILE', __FILE__ );
define( 'SCANFULLY_VERSION', '1.2.5' );
define( 'SCANFULLY_VERSION', '1.2.6' );

// boot
require 'vendor/autoload.php';
require __DIR__ . '/vendor/autoload.php';
Scanfully()->setup();
}, 20 );

Expand Down
30 changes: 18 additions & 12 deletions src/Health/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,7 @@ private static function get_plugins(): array {
return $map;
}

/**
* Send the health data to the API
*
* @return void
*/
public static function send_site_data(): void {

// todo add a transient last sent time to prevent sending too many requests.

public static function get_site_data(): array {
// load wp_site_health class if not loaded, this is not loaded by default.
if ( ! class_exists( 'WP_Site_Health' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
Expand All @@ -287,8 +279,6 @@ public static function send_site_data(): void {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}

$request = new SiteDataRequest();

// get php settings array.
$php_settings = self::get_php_settings();

Expand Down Expand Up @@ -338,8 +328,24 @@ public static function send_site_data(): void {
'plugins' => self::get_plugins(),
];

// filter data
$data = apply_filters( 'scanfully_health_data', $data );

return $data;
}

/**
* Send the health data to the API
*
* @return void
*/
public static function send_site_data(): void {

// todo add a transient last sent time to prevent sending too many requests.

// send event.
$request->send( $data );
$request = new SiteDataRequest();
$request->send( self::get_site_data() );
}

/**
Expand Down

0 comments on commit 7a7e3cb

Please sign in to comment.