+

Search Tips   |   Advanced Search

Examine modules

Use the modules sections to explore the modules of a specific profile or all of the modules available with the system, theme, or both.

Reference Identifiers provided as part of the subcontributions within a tree.


Modules by profile

Use the Examine modules by profile section to explore the modules of a specific profile. Select a profile in the Select Profile screen and then advance to the Module Explorer to explore the modules in that profile.

The Select Profile screen displays the themes and their profiles in the tree view and shows details on the selected branch in the details view. We can now learn more about the various artifacts installed in the system before we select a profile to examine.

The tree view also shows in parentheses which theme and profile is the default so this information is easily visible. All other information is shown in the details view, such as the location of the profile JSON file. The profile JSON file is an element that can be clicked and opens a new window and serves the resource in the browser when clicked.

After selecting a profile, the Module Explorer screen will display.


All modules

Use the Examine all modules section to explore all modules available with the system, theme, or both. Select a theme or the system module branch on the Select Theme screen and then advance to the Module Explorer.

The Select Theme screen displays a system modules branch and all themes in the tree view. Select a theme to view more information about the various artifacts installed in the system before you decide on a theme and continue to the Module Explorer.


Module explorer

The module explorer displays the module hierarchy of the system in a split view. The tree view shows the module hierarchy, the details view shows details on the selected module from the tree view.

We can get to the module explorer from different paths in the UI.

  1. When we examine modules by profile, we have two root branches:

    • Modules: The root for all modules in the none deferred section of the profile.

    • Deferred Modules: The root for all modules in the deferred section of the profile.

  2. When we examine the system and theme modules, we have one or two branches:

    • System Modules: Contains all modules defined globally through a plugin.xml.

    • Theme Modules: Contains all modules defined within the themes contribution folder as part of the JSON files. This branch is only shown when a theme is selected.

When we expand a tree or branch, if it is large and takes more than 30 seconds to expand, the expansion process is stopped. Expand those branches individually.

The module hierarchy has three main views:

      Complete hierarchy
      This view displays the root and a list of modules underneath as child branches. The child branches for each module then represent the prerequisite dependencies that each module defines. We can drill down until no prerequisites are defined. Therefore, within the tree various modules might display multiple times since they can be defined as a prerequisite for different modules. For example: The wp_toolbar module, referenced in the deferred profile, defines the dojo module as a prerequisite. Then, the dojo module defines the dojo_17 module as a prerequisite. When we look at the module explorer, we can drill down into the Deferred Modules section, which displays the wp_toolbar module. If we drill down further, we can see the dojo module is child of wp_toolbar, and the dojo_17 module is child of the dojo module.

      Parent view of a selected branch
      This view displays the parents of a module. The parent is a module that has a prerequisite of a child module. Module A has a prerequisite of module B, which means that B 's parent is A. It is useful to figure out who is using a specific module and verify whether the usage is correct.

      The parent is displayed as a child branch within the view, the tree is upside down.

      For instance: When we look at the wp_client_main module in the parent view, it has a child branch in the tree called wp_status_bar. Therefore, wp_status_bar is the parent of wp_client_main.

      Child view of a selected branch
      This view behaves identically to the complete hierarchy view except that it focused on a single branch as the parent. The dependencies of just this single branch are displayed.

      Size explorer

      This view shows a pie chart representation of the relative sizes of the modules and size details. The size details panel shows three representations of a module's size. Each section of the panel computes the size differently. The first section shows the total download size of the module and its dependencies. Duplicate dependencies are included once in the size calculation. The middle section shows the total download size for each child of the currently selected module. Dependencies shared between siblings are included in the size calculation of each child module. The last section shows all descendants of the currently selected module and the size of each module, not including the size of the module's prerequisites. For example, assume each module size is 1 KB. The hierarchy looks like the following, and module_0 is the current module.

      • module_0
        • module_1
          • module_2
          • module_3

        • module_2
          • module_3

        • module_3

      The size of module_0 in the first section is 4 KB, which includes the size of the module and each of its descendants. module_2 is a prerequisite for both module_0 and module_1 so it is counted only once. The middle section includes module_1, module_2, and module_3. The size of module_1 is 3 KB. The last section includes all of module_0's descendants or module_1, module_2, and module_3 and the size of each of those modules is 1 KB.

      We can view sizes as compressed or uncompressed and we can switch between them by clicking the compression icon in the toolbar.

      We can browse through the Size Explorer by clicking the segments of the pie chart, or the links in the child section for more details. To return to a higher level, click the module from the Size Explorer breadcrumb trail or click the Go to Parent link.

The details view displays the details for the selected module such as:

    ID Displays the module ID.
    Version Displays the module version, if one was defined.
    Is system-module Yes if the module is globally defined through a plugin.xml file.
    Is meta-module Yes if the module does not contain any contributions, but instead contains only prerequisites.
    Is deprecated Yes, if the module was deprecated.
    Location Displays the file path for the module.
    Capabilities Displays all capabilities for the module.
    Prereqs Displays all prerequisites for the module.
    Parents Displays all parent modules for the module
    Contributions Displays all contributions by contribution and sub contribution. The resources are elements that can be clicked, which open a new window and serves the resource in the browser when clicked. In simulation mode, the resources cannot be clicked.


Search within the module explorer

Use the search bar to search the tree view and the details view for various information. The following search scopes are supported:

    Module Identifier Search for a specific module by name. For example, wp_client_main.
    Resource Search for the module that exposes a certain resource. For example, enter master.css to identify the module that exposes this resource. This search is useful if you find an error in a JavaScript file in the browser. We can find the module that this resource belongs to.
    Capability Search for the modules associated with a specific capability. For example, to know which module provides the dojo capability. Then, you know which module add as a prerequisite for our own module.
    Reference Identifiers Search for which dynamic content spot or module reference is exposed by which module.

Enter a term into the search field in the toolbar, and press Enter or click the Find icon. The found item is then highlighted for a short time with a yellow background. Pressing Enter again or clicking Find icon again will find the next item. If no item is found, either a pop-up dialog opens to instruct us to start the search from the beginning or the background of the search field is marked in red.


Parent Theme Optimization Analyzer