99% e-billing-moyen-de-paiement-woocommerce

Code Review | E-billing Moyen de Paiement - Woocommerce

WordPress plugin E-billing Moyen de Paiement - Woocommerce scored 99% from 54 tests.

About plugin

  • Plugin page: e-billing-moyen-d...
  • Plugin version: 1.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-1.0.0
  • WordPress version: 5.8.1
  • First release: Jul 25, 2018
  • Latest release: Oct 13, 2018
  • Number of updates: 21
  • Update frequency: every 10.4 days
  • Top authors: marsevenssept (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 611 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼138.86ms] Passed 4 tests

Server-side resources used by E-billing Moyen de Paiement - Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1248.23 ▲22.86
Dashboard /wp-admin3.06 ▲0.0056.62 ▲6.11
Posts /wp-admin/edit.php3.11 ▲0.0054.08 ▲6.04
Add New Post /wp-admin/post-new.php5.42 ▼0.0297.41 ▼565.83
Media Library /wp-admin/upload.php3.00 ▲0.0036.91 ▼1.74

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for E-billing Moyen de Paiement - Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.99 ▲0.4911.01 ▼0.0951.95 ▲5.61
Dashboard /wp-admin2,964 ▲335.89 ▼0.14162.16 ▲0.97110.59 ▲2.15
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0175.36 ▼8.55106.57 ▲15.13
Add New Post /wp-admin/post-new.php1,683 ▼018.55 ▲3.66450.09 ▼18.61123.86 ▲1.38
Media Library /wp-admin/upload.php1,748 ▼595.00 ▼0.03177.10 ▲11.61130.27 ▲10.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

e-billing-moyen-de-paiement-woocommerce/woocommerceEbillingPayment.php 92% from 13 tests

The main file in "E-billing Moyen de Paiement - Woocommerce" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("e-billing-moyen-de-paiement-woocommerce.php" instead of "woocommerceEbillingPayment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected388 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods426.67%
▷ Public methods1493.33%
▷ Protected methods16.67%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/airtel-moov-acheter.png3.24KB1.81KB▼ 44.04%