10% woopaymu-woocommerce-ipaymu-gateway

Code Review | Woopaymu Woocommerce Ipaymu indonesia payment Gateway

WordPress plugin Woopaymu Woocommerce Ipaymu indonesia payment Gateway scored10%from 54 tests.

About plugin

  • Plugin page: woopaymu-woocomme...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jul 12, 2013
  • Latest release: Jul 12, 2013
  • Number of updates: 12
  • Update frequency: N/A
  • Top authors: ozilboy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,507 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/woopaymu-woocommerce-ipaymu-gateway/index.php+148
    syntax error, unexpected 'new' (T_NEW)

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

An overview of server-side resources used by Woopaymu Woocommerce Ipaymu indonesia payment Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.69 ▼7.35
Dashboard /wp-admin3.31 ▲0.0041.97 ▼7.74
Posts /wp-admin/edit.php3.36 ▲0.0047.98 ▼1.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.13 ▼24.56
Media Library /wp-admin/upload.php3.23 ▲0.0033.65 ▲0.72

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woopaymu Woocommerce Ipaymu indonesia payment Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.47 ▲0.161.77 ▼0.2638.17 ▼3.50
Dashboard /wp-admin2,209 ▲215.85 ▼0.0299.85 ▼1.7040.46 ▼1.84
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0936.12 ▼5.4729.66 ▼7.63
Add New Post /wp-admin/post-new.php1,533 ▲1123.15 ▼0.12586.36 ▼76.5658.44 ▲8.30
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0495.43 ▼7.3139.94 ▼6.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/woopaymu-woocommerce-ipaymu-gateway/index.php on line 148

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (The setting gateway, enter your api key here.), #2 (This is how the plugin in action, the buyer will send to ipaymu to complete payment.)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === woopaymu-woocommerce-ipaymu-gateway === )
You can take inspiration from this readme.txt

woopaymu-woocommerce-ipaymu-gateway/index.php 92% from 13 tests

"Woopaymu Woocommerce Ipaymu indonesia payment Gateway" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woopaymu-woocommerce-ipaymu-gateway.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected200 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18579200

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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/ipaymu_badge.png4.48KB2.33KB▼ 48.05%