drutiny/acquia
Acquia Cloud Site Factory
Name: Acquia:ACSF
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Ensure the Acquia Cloud Site Factory module is enabled.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | acsf |
Acquia Agent
Name: Acquia:AgentEnabled
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Ensure the Acquia Agent module is enabled.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | acquia_agent |
Acquia Application Information
Name: Acquia:AppInfo
Package: drutiny/acquia
Class: \Drutiny\Acquia\Audit\AppInfo
Application Information
ACSF Deployment Workspace
Name: Acquia:CheckSiteFactoryWorkspace
Package: drutiny/acquia
Class: \Drutiny\Acquia\Audit\AcsfDeployWorkspaceCleaned
A bug in the ACSF deployment process left codebases in the tmp
directory
which could lead to filesystem bloat and excessive inodes.
Cloud Edge Caching
Name: Acquia:CloudEdgeCaching
Package: drutiny/acquia
Class: \Drutiny\Http\Audit\HttpHeaderMatch
When Cloudflare is successfully caching a page it will send out CF-Cache-Status
headers with caching information for the page requested. The value should be HIT
Parameters
Name | Type | Description | Default |
---|---|---|---|
header | string | The HTTP header to check the value of. | cf-cache-status |
header_value | string | The value to check against. | HIT |
Acquia Cloud Edge Purging Enabled
Name: Acquia:CloudEdgeNoPurge
Package: drutiny/acquia
Class: \Drutiny\Plugin\Drupal8\Audit\ModuleDisabled
Acquia Cloud Edge CDN best practices recommend running a 1 minute or greater Time-To-Live (TTL) at the edge opposed to purging in realtime from Drupal.
This is to minimize the impact of potential floods through to Acquia Cloud for URLs that are complex for Drupal to render responses for.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | cloudflarepurger |
Acquia Connector
Name: Acquia:Connected
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Ensure the Acquia Connector module is enabled.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | acquia_connector |
Custom Domains Registered
Name: Acquia:CustomDomains
Package: drutiny/acquia
Class: \Drutiny\Acquia\Audit\CustomDomains
Ensure there is one or more custom domains registered with Acquia Cloud.
No Database Search Indexes for Drupal 7
Name: Acquia:Drupal7:NoDbSearch
Package: drutiny/acquia
Class: \Drutiny\Acquia\Audit\SearchDB
By default Drupal can create full text search indexes in the database which can lead to performance problems on large sites.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | search_api_db |
Less than 2,500 files per directory
Name: Acquia:FilesPerDirectory
Package: drutiny/acquia
Class: Drutiny\Acquia\Audit\FilesPerDirectory
On Acquia Cloud, we have found that over 2,500 files in a single directory can seriously impact a server's performance and potentially its stability.
Parameters
Name | Type | Description | Default |
---|---|---|---|
limit | integer | The limit of files per directory. | 2500 |
Memcache module enabled
Name: Acquia:MemcacheEnabled
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
You can use the Memcache module to move some common cache queries out of the database and into memory. Information held in memory will always be retrieved more quickly than information retrieved from a database query.
Memcached is available for all Acquia Cloud websites. See Using Memcached for information about how to use Memcached with an Acquia Cloud-hosted Drupal website.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | memcache |
Acquia Production Mode
Name: Acquia:ProductionMode
Package: drutiny/acquia
Class: \Drutiny\Acquia\Audit\EnvironmentAnalysis
Ensure Acquia production environment has Production Mode enabled.
Parameters
Name | Type | Description | Default |
---|---|---|---|
expression | 'environment["flags"]["production_mode"] === true' | ||
not_applicable | 'environment["flags"]["production"] === false' |
Acquia Purge Enabled
Name: Acquia:PurgeEnabled
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Acquia Purge modules allows updates in content to be reflected in page cache in realtime on the Acquia Platform. It does this by administering bans to the platform page caching service (Varnish).
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | acquia_purge |
Acquia Purge Plugin Exists
Name: Acquia:PurgePlugin
Package: drutiny/acquia
Class: \Drutiny\Plugin\Drupal8\Audit\PurgePluginExists
Enabled purging of cached content on Acquia Cloud by adding it as a purge plugin.
Parameters
Name | Type | Description | Default |
---|---|---|---|
plugin | string | The plugins to check exists | acquia_purge |
Acquia SPI
Name: Acquia:SPIEnabled
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Ensure the Acquia SPI module is enabled.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | acquia_spi |
ACSF Drupal Theme Directory Size
Name: Acquia:SiteFactory:DrupalThemeDirectory
Package: drutiny/acquia
Class: Drutiny\Audit\Filesystem\FsSize
Large theme directories can be indicative of best practice violations: * Source files in site artifact. e.g. node_modules * Media assets unsuitable for web delivery
Parameters
Name | Type | Description | Default |
---|---|---|---|
max_size | integer | The maximum size in MegaBytes a directory should be. | 50 |
path | string | The path of the directory to check for size. | '%root/%themes/site/' |
Acquia Cloud Site Factory Pingdom
Name: Acquia:SiteFactory:Pingdom
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Ensure the Acquia Cloud Site Factory Pingdom module is enabled.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | acsf_pingdom |
Acquia Search Auto Switch (D7)
Name: Acquia:SiteFactory:SearchAutoSwitch
Package: drutiny/acquia
Class: \Drutiny\Plugin\Drupal7\Audit\VariableCompare
Using Site Factory and Acquia Search, the auto core selector needs to be disabled in order to work.
Parameters
Name | Type | Description | Default |
---|---|---|---|
key | string | The name of the variable to compare. | acquia_search_disable_auto_switch |
value | mixed | The value to compare against | 1 |
Acquia Cloud Site Factory Theme
Name: Acquia:SiteFactory:ThemeEnabled
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Ensure the Acquia Cloud Site Factory Theme module is enabled.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | acsf_theme |
Acquia Cloud Site Factory Variables
Name: Acquia:SiteFactory:Variables
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Ensure the Acquia Cloud Site Factory Variables module is enabled.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | acsf_variables |
Drupal Theme Path References
Name: Acquia:SiteFactoryDefaultThemePath
Package: drutiny/acquia
Class: Drutiny\Audit\Filesystem\CodeScan
Ensure there are no hard coded references to the default theme path in the deployed theme as this can and will cause a lot of HTTP 404s.
Parameters
Name | Type | Description | Default |
---|---|---|---|
directory | string | Absolute filepath to directory to scan | '%root/%themes/site/' |
whitelist | array | Whitelist patterns which the 'patterns' parameter may yield false positives from | - .md - .txt - .svg |
patterns | array | patterns to run over each matching file. | - sites\/all\/themes\/ |
Acquia Cloud Site Factory Duplication
Name: Acquia:SiteFactoryDuplication
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Ensure the Acquia Cloud Site Factory Duplication module is enabled.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | acsf_duplication |
Acquia Cloud Site Factory OpenID
Name: Acquia:SiteFactoryOpenID
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Ensure the Acquia Cloud Site Factory OpenID module is enabled.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | acsf_openid |
Serving files from production on development environments
Name: Acquia:StageFileProxy
Package: drutiny/acquia
Class: \Drutiny\Audit\Drupal\ModuleEnabled
Development and staging servers may have less disk space allocated to them than a production server. When you are copying files from your production server back to staging or development, you can quickly fill up your disk space. It's possible to use the files on the production server for your staging site without copying them by using Stage File Proxy module.
Using the Stage File Proxy module enables a development server to maintain a clean files directory and use files from an alternate source by directly referencing that alternate source. An additional option within the module allows the file system on the development server to be seeded with files from the production server.
Parameters
Name | Type | Description | Default |
---|---|---|---|
module | string | The module to check is enabled. | stage_file_proxy |
No Page Compression
Name: Drupal-7:NoPageCompression
Package: drutiny/acquia
Class: \Drutiny\Plugin\Drupal7\Audit\VariableCompare
Drupal's Compress cached pages option (page_compression) can cause unexpected behavior when an external cache such as Varnish is employed, and typically provides no benefit. Therefore, Compress cached pages should be disabled
Parameters
Name | Type | Description | Default |
---|---|---|---|
key | string | The name of the variable to check. | page_compression |
value | bool | The value of the variable | 0 |