78% limopay

Code Review | Limopay - WooCommerce Payment Gateway

WordPress plugin Limopay - WooCommerce Payment Gateway scored78%from 54 tests.

About plugin

  • Plugin page: limopay
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.7.0
  • WordPress version: 6.3.1
  • First release: May 8, 2021
  • Latest release: May 8, 2021
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: bdtask (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /461 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 gracefully, with no errors

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

Server-side resources used by Limopay - WooCommerce Payment Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.13 ▼0.50
Dashboard /wp-admin3.33 ▼0.0243.32 ▼13.20
Posts /wp-admin/edit.php3.38 ▲0.0247.08 ▲1.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0277.66 ▼15.27
Media Library /wp-admin/upload.php3.25 ▲0.0234.12 ▲1.78

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Limopay - WooCommerce Payment Gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.66 ▼0.721.51 ▼0.3443.65 ▲0.64
Dashboard /wp-admin2,206 ▲185.90 ▲0.97109.19 ▲6.1342.81 ▼0.48
Posts /wp-admin/edit.php2,092 ▲32.18 ▲0.1739.54 ▼0.7936.05 ▲1.42
Add New Post /wp-admin/post-new.php1,534 ▲2023.32 ▲5.71624.74 ▼3.7153.71 ▼16.69
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0795.00 ▼3.0040.32 ▼4.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/limopay/public/partials/limopay-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/limopay/admin/partials/limopay-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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:
  • Screenshots: These screenshots lack descriptions #1, #2 in limopay/assets to your readme.txt
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

limopay/limopay.php Passed 13 tests

The primary PHP file in "Limopay - WooCommerce Payment Gateway" version 1.0.0 is used by WordPress to initiate all plugin functionality
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin427 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12169580404
CSS23817
JavaScript24546

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.17
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin