diff --git a/CHANGELOG.md b/CHANGELOG.md index dd2da6a15..a35d1a88d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added +- [#23](https://github.com/green-code-initiative/ecoCode/pull/23) Add images to the description files. ### Changed - [#27](https://github.com/green-code-initiative/ecoCode/pull/27) Fix [WARNING] Maven-shade-plugin overlapping classes and upgrade SonarRuntime. diff --git a/php-plugin/src/main/resources/fr/cnumr/l10n/php/rules/custom/S72.html b/php-plugin/src/main/resources/fr/cnumr/l10n/php/rules/custom/S72.html index 3b51bdc50..0a2b750b6 100644 --- a/php-plugin/src/main/resources/fr/cnumr/l10n/php/rules/custom/S72.html +++ b/php-plugin/src/main/resources/fr/cnumr/l10n/php/rules/custom/S72.html @@ -1,4 +1,4 @@ -

Executing SQL queries in loop induced unnecessary calculation by the cpu, RAM usage and network transfert.

+

Executing SQL queries in loop induced unnecessary network transfert, calculation by the cpu and RAM usage.

Noncompliant Code Example

     public function foo() {
@@ -42,3 +42,14 @@ 

Compliant Solution

}
+ +

The three sources of impacts of a code identified are:

+ - Energy (measured in joules) +
- Transfer (measured in Bytes) +
- Storage (measured in Bytes)
+
The control of these 3 impacts allows to lengthen the life of the terminals as well as reduce their energy consumption. +
The ETSdiff tool allows to measure a differential on these three values and in a given context (database and fixed measurement environment). +
The results generated by ETSdiff must help define the interest of the rule reported by Sonarqube in the context of the code analyzed. +
+ETSdiff percent comparison