10% woocommerce-pesapal-standard-gateway

Code Review | Woocommerce Pesapal Standard Payment Gateway

WordPress plugin Woocommerce Pesapal Standard Payment Gateway scored10%from 54 tests.

About plugin

  • Plugin page: woocommerce-pesap...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2014
  • Latest release: Jul 22, 2014
  • Number of updates: 8
  • Update frequency: every 0.5 days
  • Top authors: jonathan_mitnick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,568 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/woocommerce-pesapal-standard-gateway/woocomerce-pesapal-standard.php+205
    syntax error, unexpected 'new' (T_NEW)

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.79ms] Passed 4 tests

Analyzing server-side resources used by Woocommerce Pesapal Standard Payment Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.79 ▼3.35
Dashboard /wp-admin3.31 ▼0.0447.93 ▼15.38
Posts /wp-admin/edit.php3.36 ▲0.0049.92 ▲1.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.19 ▲2.01
Media Library /wp-admin/upload.php3.23 ▲0.0031.34 ▼1.89

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce Pesapal Standard Payment Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.001.92 ▼0.1641.79 ▲3.26
Dashboard /wp-admin2,198 ▲215.61 ▲0.0092.21 ▲1.0437.92 ▼5.04
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0241.27 ▼1.6534.80 ▼4.11
Add New Post /wp-admin/post-new.php1,526 ▼023.42 ▼0.15607.13 ▼21.9448.08 ▲0.61
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.0099.00 ▼5.3043.30 ▼4.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/woocommerce-pesapal-standard-gateway/woocomerce-pesapal-standard.php on line 205

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

woocommerce-pesapal-standard-gateway/woocomerce-pesapal-standard.php 92% from 13 tests

The main file in "Woocommerce Pesapal Standard Payment Gateway" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-pesapal-standard-gateway.php" instead of "woocomerce-pesapal-standard.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
Everything looks great! No dangerous files found in this plugin804 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2225263804

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.73
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes218.18%
▷ Concrete classes981.82%
▷ Final classes00.00%
Methods69
▷ Static methods1014.49%
▷ Public methods5884.06%
▷ Protected methods22.90%
▷ Private methods913.04%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin