89% ajomoney-gateway-for-woocommerce

Code Review | AjoMoney Gateway for Woocommerce

WordPress plugin AjoMoney Gateway for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: ajomoney-gateway-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.3-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 31, 2022
  • Latest release: Mar 31, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ajomoney (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /209 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.99ms] Passed 4 tests

This is a short check of server-side resources used by AjoMoney Gateway for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.10 ▼4.12
Dashboard /wp-admin3.36 ▲0.0145.59 ▼15.41
Posts /wp-admin/edit.php3.41 ▲0.0552.98 ▲9.73
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.20 ▼13.60
Media Library /wp-admin/upload.php3.28 ▲0.0534.35 ▲1.16

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for AjoMoney Gateway for Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.09 ▼0.251.63 ▼0.2436.63 ▼6.63
Dashboard /wp-admin2,198 ▲245.63 ▼0.0887.48 ▼0.2939.40 ▼3.65
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0533.98 ▼2.7829.81 ▼6.57
Add New Post /wp-admin/post-new.php1,526 ▼023.79 ▲0.80661.42 ▲3.2653.07 ▼7.83
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.0694.35 ▼5.7642.21 ▼0.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 90% 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: buy now pay later, payment gateway, ajomoney, woocommerce, bnpl...

ajomoney-gateway-for-woocommerce/ajomoney-woocommerce.php 77% from 13 tests

This is the main PHP file of "AjoMoney Gateway for Woocommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ajomoney-gateway-for-woocommerce.php" instead of "ajomoney-woocommerce.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin235 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png108.08KB43.72KB▼ 59.55%