Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼266.66ms] Passed 4 tests
An overview of server-side resources used by Display text domains
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 39.75 ▲4.09 |
Dashboard /wp-admin | 3.08 ▲0.02 | 44.04 ▼0.29 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 43.41 ▲0.04 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 85.15 ▼1,061.09 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 34.06 ▼5.31 |
Display text domains /wp-admin/tools.php?page=cc-display-domains | 2.99 | 28.32 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Display text domains
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲48 | 15.86 ▲0.22 | 8.05 ▼0.47 | 53.34 ▲6.25 |
Dashboard /wp-admin | 2,932 ▲82 | 5.88 ▲0.01 | 139.00 ▲7.80 | 109.43 ▲13.28 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▲0.00 | 63.29 ▲0.14 | 88.94 ▲7.86 |
Add New Post /wp-admin/post-new.php | 1,659 ▼192 | 18.41 ▲1.30 | 375.19 ▲3.30 | 121.26 ▲10.96 |
Media Library /wp-admin/upload.php | 1,777 ▲2 | 5.02 ▲0.03 | 152.95 ▲4.54 | 108.14 ▼8.38 |
Display text domains /wp-admin/tools.php?page=cc-display-domains | 1,046 | 2.09 | 54.22 | 75.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/display-text-domains/text-domain-loadmap.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Czech translation example)
display-text-domains/text-domain-loadmap.php 85% from 13 tests
The main file in "Display text domains" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 218 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("display-text-domains.php" instead of "text-domain-loadmap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected44 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 18 | 44 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin