90% akouendy-woocommerce-orange-money-gateway

Code Review | Woocommerce Akouendy Gateway

WordPress plugin Woocommerce Akouendy Gateway scored90%from 54 tests.

About plugin

  • Plugin page: akouendy-woocomme...
  • Plugin version: 3.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Jul 27, 2019
  • Latest release: Sep 10, 2023
  • Number of updates: 8
  • Update frequency: every 188.4 days
  • Top authors: akouendydev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,736 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼8.75ms] Passed 4 tests

Analyzing server-side resources used by Woocommerce Akouendy Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.72 ▼5.76
Dashboard /wp-admin3.31 ▲0.0047.50 ▼8.03
Posts /wp-admin/edit.php3.36 ▲0.0045.26 ▼7.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.10 ▼14.18
Media Library /wp-admin/upload.php3.23 ▲0.0037.81 ▲1.67

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce Akouendy Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.322.34 ▲0.2245.09 ▼0.33
Dashboard /wp-admin2,209 ▲215.86 ▼0.0299.27 ▼23.5439.44 ▼3.11
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0636.95 ▲0.7531.77 ▼1.25
Add New Post /wp-admin/post-new.php1,533 ▲1423.42 ▲0.22679.21 ▲2.5055.75 ▼9.52
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0199.19 ▼11.9045.08 ▼2.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: sngal, senegal, woocommerce, payment gateway, wave...

akouendy-woocommerce-orange-money-gateway/akouendy-woocommerce-gateway.php 92% from 13 tests

The main PHP file in "Woocommerce Akouendy Gateway" ver. 3.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("akouendy-woocommerce-orange-money-gateway.php" instead of "akouendy-woocommerce-gateway.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,186 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP62361101,182
JavaScript2204

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity24.00
▷ Minimum class complexity15.00
▷ Maximum class complexity29.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods47
▷ Static methods12.13%
▷ Public methods4289.36%
▷ Protected methods12.13%
▷ Private methods48.51%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/ banner-772x250.png9.87KB4.13KB▼ 58.17%
assets/images/wave.png6.15KB2.46KB▼ 59.96%
assets/images/orange-cash.png4.54KB1.82KB▼ 59.97%
assets/images/orange-money.png4.54KB1.82KB▼ 59.97%
assets/icon-256x256.png6.48KB3.14KB▼ 51.63%