90% gateway-payougo-checkout

Code Review | Gateway Payougo Checkout

WordPress plugin Gateway Payougo Checkout scored90%from 54 tests.

About plugin

  • Plugin page: gateway-payougo-c...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6+
  • WordPress version: 6.3.1
  • First release: Jun 22, 2020
  • Latest release: Nov 1, 2022
  • Number of updates: 30
  • Update frequency: every 28.8 days
  • Top authors: payou1302560 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.87ms] Passed 4 tests

Server-side resources used by Gateway Payougo Checkout
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.24 ▼1.53
Dashboard /wp-admin3.37 ▲0.0752.85 ▼0.05
Posts /wp-admin/edit.php3.49 ▲0.1354.85 ▲5.67
Add New Post /wp-admin/post-new.php5.95 ▲0.0791.19 ▼5.96
Media Library /wp-admin/upload.php3.29 ▲0.0741.67 ▲4.08

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Gateway Payougo Checkout
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.74 ▲0.351.69 ▼0.5841.32 ▼6.49
Dashboard /wp-admin2,241 ▲385.86 ▲0.94113.95 ▲9.6746.09 ▲6.63
Posts /wp-admin/edit.php2,121 ▲212.01 ▼0.0136.76 ▼1.7436.71 ▲5.60
Add New Post /wp-admin/post-new.php1,561 ▲3522.93 ▲5.39613.18 ▼8.3170.77 ▲1.29
Media Library /wp-admin/upload.php1,420 ▲204.21 ▼0.0297.79 ▼11.0241.74 ▼4.21

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

gateway-payougo-checkout/gateway-payougo-checkout.php Passed 13 tests

The principal PHP file in "Gateway Payougo Checkout" v. 1.0.5 is loaded by WordPress automatically on each request
111 characters long description:
Accept all Mobile money payment (Orange, MTN), Simplify your merchant services and your payment gateway today!.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin5,918 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,1311,7105,456
JavaScript69442408
CSS14054

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity21.05
▷ Minimum class complexity1.00
▷ Maximum class complexity174.00
Average method complexity3.99
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes37
▷ Abstract classes38.11%
▷ Concrete classes3491.89%
▷ Final classes00.00%
Methods250
▷ Static methods20.80%
▷ Public methods21385.20%
▷ Protected methods3313.20%
▷ Private methods41.60%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants88
▷ Global constants33.41%
▷ Class constants8596.59%
▷ Public constants85100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/payougo_small.png2.81KB1.94KB▼ 31.17%
assets/img/buy.png9.12KB3.16KB▼ 65.32%