84% live-eftpos-for-woocommerce

Code Review | Live eftpos for WooCommerce

WordPress plugin Live eftpos for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: live-eftpos-for-w...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0+
  • WordPress version: 6.3.1
  • First release: Dec 2, 2020
  • Latest release: Nov 2, 2022
  • Number of updates: 9
  • Update frequency: every 78.0 days
  • Top authors: livedev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.77ms] Passed 4 tests

This is a short check of server-side resources used by Live eftpos for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.74 ▲5.57
Dashboard /wp-admin3.46 ▲0.1647.29 ▲1.11
Posts /wp-admin/edit.php3.57 ▲0.2245.32 ▼1.58
Add New Post /wp-admin/post-new.php6.04 ▲0.1680.91 ▼24.36
Media Library /wp-admin/upload.php3.38 ▲0.1635.82 ▲1.77

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Live eftpos for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.16 ▼0.451.69 ▼0.1245.22 ▲0.76
Dashboard /wp-admin2,192 ▲115.62 ▼0.0586.94 ▼15.5143.18 ▼0.98
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0633.63 ▼10.4235.87 ▲4.17
Add New Post /wp-admin/post-new.php1,536 ▲123.14 ▲4.95691.61 ▲88.6253.36 ▼20.39
Media Library /wp-admin/upload.php1,397 ▼34.22 ▼0.04107.49 ▼4.9346.84 ▲3.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/live-eftpos-for-woocommerce/live-eftpos-for-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: Please take inspiration from this readme.txt

live-eftpos-for-woocommerce/live-eftpos-for-woocommerce.php Passed 13 tests

The main PHP file in "Live eftpos for WooCommerce" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
115 characters long description:
Live eftpos for WooCommerce enables businesses to easily accept card payments while using the WooCommerce platform.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin895 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3158133895
CSS1400

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity22.00
▷ Minimum class complexity1.00
▷ Maximum class complexity106.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
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/livegroup.png7.76KB3.39KB▼ 56.32%
assets/img/logo.png2.92KB1.64KB▼ 43.76%