84% sight-pay

Code Review | Sight Pay - is an awesome new way to shop! Get anything you want, and pay for it later.

WordPress plugin Sight Pay - is an awesome new way to shop! Get anything you want, and pay for it later. scored84%from 54 tests.

About plugin

  • Plugin page: sight-pay
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.3
  • WordPress version: 6.3.1
  • First release: Oct 29, 2022
  • Latest release: Nov 17, 2022
  • Number of updates: 6
  • Update frequency: every 3.2 days
  • Top authors: innosight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /225 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Sight Pay - is an awesome new way to shop! Get anything you want, and pay for it later.
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.47 ▼4.22
Dashboard /wp-admin3.31 ▼0.0344.96 ▼20.99
Posts /wp-admin/edit.php3.36 ▲0.0146.91 ▲1.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.96 ▲2.82
Media Library /wp-admin/upload.php3.24 ▲0.0134.62 ▼3.66

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

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

Browser metrics Passed 4 tests

Sight Pay - is an awesome new way to shop! Get anything you want, and pay for it later.: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.22 ▼0.042.05 ▲0.3644.98 ▲0.24
Dashboard /wp-admin2,195 ▲185.50 ▼0.1380.55 ▼26.1437.09 ▼6.53
Posts /wp-admin/edit.php2,107 ▲41.96 ▼0.0535.98 ▼2.1135.24 ▲0.88
Add New Post /wp-admin/post-new.php1,541 ▲1018.21 ▼4.82589.80 ▼73.3070.87 ▲19.35
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.0595.72 ▼19.6342.27 ▼5.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
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_filter() in wp-content/plugins/sight-pay/includes/GateWay.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
6 plugin tags: payment, woocommerce payment, payment method, payment for woocommerce, pay later...

sight-pay/wp-pay-later.php 92% from 13 tests

This is the main PHP file of "Sight Pay - is an awesome new way to shop! Get anything you want, and pay for it later." version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sight-pay.php" instead of "wp-pay-later.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected119 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21628119

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin