84% woocommerce-pure-eft

Code Review | WooCommerce Pure EFT Gateway

WordPress plugin WooCommerce Pure EFT Gateway scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-pure-eft
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Apr 21, 2015
  • Latest release: Jan 6, 2016
  • Number of updates: 27
  • Update frequency: every 9.8 days
  • Top authors: webunraveling (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,103 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by WooCommerce Pure EFT Gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.42 ▼0.81
Dashboard /wp-admin3.31 ▲0.0151.33 ▼1.38
Posts /wp-admin/edit.php3.36 ▲0.0048.97 ▼7.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.22 ▼11.39
Media Library /wp-admin/upload.php3.23 ▲0.0036.73 ▲1.55

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Pure EFT Gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼0.694.35 ▲2.6043.32 ▲3.33
Dashboard /wp-admin2,206 ▲184.87 ▼1.01115.32 ▲12.4842.48 ▼7.45
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0735.47 ▼2.3432.76 ▼2.86
Add New Post /wp-admin/post-new.php1,514 ▼1917.86 ▼5.43681.54 ▲31.7752.36 ▲9.27
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.1197.34 ▼4.0845.26 ▼2.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-pure-eft/pure-eft-gateway.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: ecommerce, woocommerce, gateway, electronic, bank...

woocommerce-pure-eft/pure-eft-gateway.php 92% from 13 tests

This is the main PHP file of "WooCommerce Pure EFT Gateway" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-pure-eft.php" instead of "pure-eft-gateway.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected4,811 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
SVG2224,612
PHP24766199

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png5.45KB2.88KB▼ 47.20%
assets/screenshot-2.png35.45KB16.67KB▼ 52.99%
assets/icon.png1.24KB1.16KB▼ 6.54%
assets/logo-icon.png1.24KB1.16KB▼ 6.54%
assets/check-instructions.png36.97KB15.15KB▼ 59.02%