Skip to content
TubePress — free, self-hosted & actively maintained
SEO & growth

CTR ranking engine

The engagement-driven ranking system that surfaces the videos your visitors actually watch.

Most tube sites order videos by upload date or raw view count. Both reward the wrong thing: recency favours whatever was added last, and views favour whatever has been online longest. The CTR Ranking plugin replaces that with a real engagement engine: it learns from what your visitors actually see, click, watch and do next, and orders videos, galleries, categories, pornstars and channels accordingly.

It is a free, optional plugin (version 4) from the TubePress marketplace. Install it in one click from the Marketplace section of /admin/plugins: it is activated as soon as it is installed, and since TubePress 1.3.2 no account is needed (older versions ask you to connect your TubePress account first). Then manage it from its own page at /admin/ctr. While it is inactive, nothing from it is added to your pages.

When you activate it

  • Every list opens on Trending. The default order of the homepage, video and gallery lists, categories, pornstars and channels switches to Trending. You can still choose another default per list in Appearance, and your previous choices come back if you deactivate the plugin.
  • Measurement starts. One small deferred script, served by your own site, measures your pages. The first scores appear after the first recalculation, a few minutes later, and keep improving as traffic comes in.
  • Large libraries are prepared in the background. Above roughly 150,000 videos and galleries, the database columns and indexes are added after the activation page has been sent, so activation returns at once. The admin page shows Preparing database until it is done, and your site keeps working normally meanwhile.

What it measures

CTR stands for click-through rate — the share of people who, having seen a thumbnail, choose to click it. CTR Ranking measures much more than that, everywhere a thumbnail or a link is shown:

  • Impressions — a card counts as seen only when at least half of it stays on screen for 0.6 seconds, in a visible tab, in front of a real person. Each impression records the page type, the surface (main grid, related, up next, end-of-gallery screen, menus, chips, footer, search results…) and the exact position, across pagination and infinite scroll.
  • Clicks — each click is credited to the surface and the position it came from.
  • What happens after the click — on video pages, watch time and the 25%, 50%, 75% and 100% milestones (pre-roll ads do not count as watching); on gallery pages, the photos viewed, the full-screen viewer and the time spent; everywhere, likes, dislikes, favorites, shares, downloads, comments and whether the visitor opens another item.
  • Categories, tags, pornstars and channels — of videos and of galleries — are measured the same way, from their own cards and links.
  • Searches — top and trending queries, clicks per query and searches with no results.

The V4 engine

Every few minutes, each video and gallery receives a score that combines six multipliers:

ranking_score = attractiveness × satisfaction × freshness × exploration × fatigue × velocity
  • Attractiveness is a position- and surface-debiased click-through rate (COEC — clicks over expected clicks). Expected clicks accrue at impression time from click curves learned on your own traffic for each page type, surface and position, so a card in slot one must beat the usual slot-one click rate to rise. It blends the last 24 hours, 7 days, 30 days and lifetime, and it is capped.
  • Satisfaction rewards content people actually enjoy — engaged visits, how much is watched or browsed, the next item opened, likes and favorites against dislikes — and pushes click-bait down. It stays between a floor and a ceiling you control.
  • Freshness gives new uploads a temporary boost (by default up to 3x) that halves every 72 hours.
  • Exploration gives extra exposure to content that has not been seen enough yet, so every new item gets a fair test.
  • Fatigue gently rests what has been shown the most over the last seven days, keeping lists varied.
  • Velocity pushes what is taking off today compared with its usual pace.

The plain click-through rate of each item is kept as well, and the admin shows it next to the reasons behind every score.

Where the ranking is used

  • Trending — on the homepage and on every video and gallery list, including category, tag, pornstar and channel pages. The category, pornstar and channel directories and the gallery taxonomies are ranked by their own engagement.
  • The homepage rotation — the homepage cycles every 30 minutes through 24 curated mixes of proven hits, challengers, rising and fresh content and rediscovered favourites, so it feels new all day while still leading with high-engagement content. Switch the rotation off if you prefer a static ranked feed.
  • Related, recommended and similar videos and galleries.
  • Category, pornstar and channel thumbnails — unless you set an image yourself, each one shows the best-performing video it contains, without repeating the same picture on a page.

Picked for you

Returning visitors get a personal “Picked for you” rail on the homepage and on the galleries page, plus personal related suggestions, built from what they opened — with the reason shown. Their history is kept in their own browser and never stored on your server. The feature can be switched off in the settings.

Surprise me and what’s new

The themes’ Surprise me button opens a personal random pick: the plugin draws from what the visitor tends to enjoy, never repeats what they already opened, and learns from what they skip within a few seconds. A small notice on the landing page offers another pick, and a middle click opens the pick in a new tab. Without JavaScript the button still works and opens a random top item.

Returning visitors also see how many videos — or galleries, on the galleries page — were added since their last visit, and the new cards carry a New badge. Both features can be switched off in the settings, and the Overview tab shows how many visits come from Surprise me and how engaged they are.

Follow and resume

Visitors can follow a pornstar, a category, a tag or a gallery taxonomy with the themes’ Follow button, without an account; channels keep the Subscribe button of TubePress while channel subscriptions are on, and a member’s subscriptions count as follows. What a visitor follows appears as chips at the top of Picked for you, with the number of new uploads since their last visit, and their personal suggestions lean towards it. A visitor who keeps opening the same pornstar (three items) or the same channel, category or tag (four items) is invited once to follow it. Follows stay in the visitor’s browser.

The plugin also remembers where each visitor stopped: cards show how far a video was watched or a gallery browsed, a video offers to resume where the visitor left it, and the galleries page opens with a Continue browsing row of unfinished galleries that reopen at the last photo seen. Both features need Picked for you and can be switched off in the settings, and the Surfaces tab measures the chips and the Continue browsing row like any other surface.

Trending searches

The search box of the bundled themes suggests what visitors search for most right now, next to each visitor’s own recent searches, which stay in their browser. A search qualifies only when several visitors made it — each visitor counts once a day — and it found results and got clicks; a built-in safety list in many languages and your own list of hidden words in the settings keep anything unwanted out. The Search tab of the admin shows exactly what visitors see, and the feature can be switched off in the settings.

Search suggestions

As visitors type in the search box of the bundled themes, it suggests matching categories, pornstars, channels and tags, the ones visitors click most first, with the number of videos of each. The list is prepared in the background for each language and refreshed every six hours, so typing stays instant, and it can be switched off in the settings. The search box also works with the keyboard — arrow keys, Enter and Escape — and the / key jumps to it from anywhere on the page. Saving the plugin settings rebuilds the list at once, for example after you rename or remove a pornstar.

Gallery cover tests

The most-opened photo of a gallery can be tried as its cover on half of the cards. The new cover is kept only when it clearly wins on clicks — at least 300 impressions on each side, a 95% probability and a 5% lift — without hurting what visitors do after the click; otherwise the original stays. In Automatic mode the plugin runs these A/B tests when the active theme supports them and swaps covers directly otherwise; you can also always run A/B tests, always use the most-opened photo directly, or never change covers. Running tests are listed in the Experiments tab, where you can stop or apply any of them.

The admin page

/admin/ctr is organised in tabs:

TabWhat you find there
OverviewLive status and KPIs with their trends
ContentEvery video and gallery with its score, its click-through rate and the reasons behind them
SurfacesEvery surface with its click rate and its position curve
ExperimentsGallery cover tests
AudienceSessions, pages per session, depth and returning visitors
SearchTop and trending searches, clicks per query and searches with no results
SettingsFeatures, strategy, advanced tuning, privacy and protection
ToolsRecalculate now, process the event queue, don’t count this browser, CSV exports, reset and diagnostics

No numbers yet? Figures appear within a minute of the first real visits; your own visits as an admin, crawlers and automated browsers are never counted. If the web server, a firewall or a CDN keeps the tracking script or its address away from the site, the top of the Overview tab says so, with the address and the answer received: nothing can be measured until the addresses that begin with /api/ctr/ reach the site like any other page.

Strategies & tuning

  1. Pick a strategy. One click on a preset — Balanced, Discovery, Deep engagement or Trending now — sets every weight for you.
  2. Toggle the features. Engagement tracking, the use of engagement in the ranking, the ranking of categories, pornstars and channels, the homepage rotation, Picked for you, Surprise me, New since last visit, Follow, Resume & continue, search and audience analytics, bot filtering and Do Not Track can each be switched on or off.
  3. Fine-tune if you wish. The advanced panel exposes the recalculation interval, smoothing, the freshness boost and half-life, exploration, velocity, the quality cap, fatigue softness, the satisfaction floor and ceiling and the “tested” threshold. Editing any value switches the strategy to Custom.
Switching it off. Turning Engagement tracking off stops all measurement; listings keep using the statistics already collected. To return to the CMS’s own ordering, deactivate the plugin: your previous default orders come back and nothing from CTR Ranking stays on your pages.

Protection & privacy

Because the score decides what visitors see, it is defended against manipulation out of the box:

  • Bots, crawlers, headless and automated browsers and speed tests are excluded from every signal.
  • A visitor counts at most one click per item per hour, and hourly ceilings per visitor on thumbnails and clicks stop scripted floods.
  • Every tracking beacon is signed with a server secret and a daily token and is size-limited; only published content is ever counted.
  • The attractiveness multiplier is capped, limiting how far anything can be pushed.
  • Admins are never counted, and Don’t count this browser in the Tools tab also excludes your browser when you browse logged out.
Private by design. No cookie is set on your visitors and no IP address is stored: visitors are told apart for one day only, by an anonymous signature that cannot be traced back. The history behind Picked for you stays in the browser. You can also honour Do Not Track and Global Privacy Control, and choose how long hourly and daily statistics are kept.

Built for scale

The engine is engineered for libraries with millions of videos and galleries. Each beacon is a single insert into a queue that is processed every minute, in batches. Recalculation is incremental — content with recent activity, new content and unscored content is rescored, with a full rebuild every six hours — and only writes the rows whose values changed. On very large sites the interval stretches automatically so that a run never overlaps the next. Everything runs on the built-in scheduler, so no server crontab is required. The database tables, tracking endpoints, recalculation jobs, sort wiring and admin page are all provided by the plugin: the base CMS is not modified, and uninstalling removes everything the plugin added. On libraries of more than 150,000 videos and galleries, activation prepares the database in the background and pauses view counting for those few minutes, so that visitors never wait; for the same reason uninstalling leaves the ranking columns in the videos and galleries tables instead of locking the site while removing them, and they are reused if you install the plugin again.

For theme developers

The bundled Giga, Simply and Hentai themes are fully integrated. Another theme works without any change — cards that carry data-video-id or data-album-id, and links to videos, galleries and taxonomy pages, are detected automatically — and it can go further with a few attributes:

MarkupPurpose
data-ctr-s="grid"Marks a container as a surface (for example grid, related, upnext, menu, footer or search); positions are counted inside it.
data-ctr-off="24"Position of the first card when a grid starts after earlier pages.
data-ctr-ref="v123"The item behind a card or link: v video, a gallery, c category, t tag, p pornstar, h channel, and ac, at, ap, ah for gallery taxonomies.
data-ctr-foryou="v"A hidden section that the plugin fills with the visitor’s Picked for you rail (v videos, a galleries), inside its data-ctr-list element.
data-ctr-relatedA related block that the plugin may refresh with personal suggestions.
data-ctr-surprise="v"A link, usually to /surprise, that becomes the Surprise me button (v videos, a galleries); data-ctr-pick, data-ctr-another, data-ctr-because and data-ctr-close carry the texts of its notice.
data-ctr-freshA hidden banner shown to returning visitors on the homepage and the galleries page: :count in its value is replaced by the number of new items and the text goes into its data-ctr-fresh-text element.
data-ctr-new="1734567890"A hidden badge on a card, shown when the item, published at that Unix time, is newer than the visitor’s last visit.
data-ctr-follow="p12"A Follow button for a pornstar (p), category (c), tag (t), channel (h) or gallery taxonomy (ap, ac, at, ah), with its data-ctr-follow-name. The plugin sets aria-pressed, adds the class named in data-ctr-on-class and reveals the closest hidden data-ctr-follow-box.
data-ctr-followsA hidden list inside the Picked for you section that the plugin fills with the visitor’s follows and their number of new uploads.
data-ctr-continue="a"A hidden section that the plugin fills with the visitor’s unfinished galleries (a) or videos (v), inside its data-ctr-list element.
ctr-l10nThe id of a JSON script element with the visitor texts of these features: follow, following, followed_v, followed_a, unfollowed, undo, suggest_v, suggest_a, new_items, resume and close. Without it, follow suggestions and resume stay off.
ctr-trendingThe id of a JSON script element that the plugin prints itself while Trending searches is on: a list of up to eight searches to suggest in your search box. Read it; never print it yourself.
ctr-sxThe id of a JSON script element that the plugin prints itself while Search suggestions is on: the address of the list of categories, pornstars, channels and tags to suggest, fetched once, the first time the search box is used. Read it; never print it yourself.

Output these attributes only when CtrPlugin::markup('track') returns true — CtrPlugin::markup('personal') for the Picked for you section, CtrPlugin::markup('surprise') and CtrPlugin::markup('fresh') for the Surprise me button and the what’s-new markup, CtrPlugin::canFollow('p') for a Follow button and CtrPlugin::markup('resume') for Continue browsing — and check PluginManager::isActive('ctr') first, so that your pages stay clean when the plugin is off. The cards that the plugin inserts are rendered by your theme through the theme.ctr_cards filter; without it, the personal blocks simply stay hidden. Your scripts can report likes, favorites, shares, downloads and comments by dispatching a tp:video or tp:album event on document.

Next steps

Still stuck?

Open a ticket from your dashboard and our team will help you out.

Try the live demo → Download TubePress →