Skip to content

Instantly share code, notes, and snippets.

View adamsilverstein's full-sized avatar
💭
Working remotely, as usual

Adam Silverstein adamsilverstein

💭
Working remotely, as usual
View GitHub Profile
@adamsilverstein
adamsilverstein / wordpress-sizes-attribute-exploration.ipynb
Last active October 11, 2024 04:08
wordpress-sizes-attribute-exploration.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adamsilverstein
adamsilverstein / wordpress-sites-using-react.ipynb
Last active September 13, 2024 15:46
wordpress-sites-using-react.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adamsilverstein
adamsilverstein / cms ratio percent of total sites over time.sql
Created September 11, 2024 03:14
cms ratio % of total sites over time
WITH
sites AS (
SELECT
page AS url,
date,
category
FROM
`httparchive.all.pages`,
UNNEST(technologies) AS technologies,
UNNEST(technologies.categories) AS category
@adamsilverstein
adamsilverstein / performant-translations-colab.ipynb
Last active September 13, 2024 15:38
Performant Translations Colab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Performance Metrics Impact as of 7/1 dataset

These metrics show the impact on sites after installing the feature (after subtracting out any changes in WordPress core over the same period). Changes are absolute percentage changes in pass rates.

Speculative Loading: {'pct_good_cwv_change': '3.09%', 'pct_good_lcp_change': '2.64%', 'pct_good_cls_change': '2.05%', 'pct_good_inp_change': '-0.24%', 'feature_active_sites': 7206, 'feature_inactive_sites': 10000, 'inactive_to_active_percent': 100.0}

Image Prioritizer: {'pct_good_cwv_change': '3.09%', 'pct_good_lcp_change': '1.68%', 'pct_good_cls_change': '2.35%', 'pct_good_inp_change': '2.14%', 'feature_active_sites': 1264, 'feature_inactive_sites': 10000, 'inactive_to_active_percent': 100.0}

Embed Optimizer: {'pct_good_cwv_change': '3.62%', 'pct_good_lcp_change': '-0.23%', 'pct_good_cls_change': '3.62%', 'pct_good_inp_change': '1.13%', 'feature_active_sites': 3705, 'feature_inactive_sites': 10000, 'inactive_to_active_percent': 100.0}

Modern Images: {'pct_good_c

@adamsilverstein
adamsilverstein / modern-image-formats-colab.ipynb
Last active September 13, 2024 15:38
Modern Image Formats (new)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adamsilverstein
adamsilverstein / wpp-metrics-tracking.ipynb
Last active October 1, 2024 18:44
WPP Metrics Tracking colab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adamsilverstein
adamsilverstein / interactivity-api-colab.ipynb
Last active July 31, 2024 17:36
interactivity-api-colab.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adamsilverstein
adamsilverstein / wp-image-tests.php
Last active July 22, 2024 14:24
test image processing
<?php
/**
* Profile image loading and resizing.
*
* @wordpress-plugin
* Plugin Name: Profile image processing
* Description: Profile image loading and resizing by mime format.
* Plugin URI: n/a
* Version: 1.0.0
* Author: Adam Silverstein, Google
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.