10% platron-payment-gate-for-jigoshop

Code Review | Platron for JigoShop

WordPress plugin Platron for JigoShop scored 10% from 54 tests.

About plugin

  • Plugin page: platron-payment-g...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 20, 2014
  • Latest release: Aug 28, 2019
  • Number of updates: 22
  • Update frequency: every 83.4 days
  • Top authors: Lexus1990 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 846 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/platron-payment-gate-for-jigoshop/include/PG_Signature.php+14
    Array and string offset access syntax with curly braces is deprecated

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

An overview of server-side resources used by Platron for JigoShop
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.52 ▲4.71
Dashboard /wp-admin3.31 ▲0.0147.85 ▼8.14
Posts /wp-admin/edit.php3.36 ▲0.0046.81 ▲1.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.47 ▼13.59
Media Library /wp-admin/upload.php3.23 ▲0.0037.03 ▲0.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Platron for JigoShop
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7513.26 ▼1.141.99 ▲0.1142.67 ▲0.83
Dashboard /wp-admin2,213 ▲214.88 ▼0.03111.15 ▲3.6242.24 ▲0.16
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0134.60 ▼2.3236.36 ▲2.86
Add New Post /wp-admin/post-new.php1,541 ▲823.28 ▲0.13655.88 ▼23.6851.78 ▲2.84
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0693.79 ▼18.9844.01 ▼3.85

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/platron-payment-gate-for-jigoshop/jigoshop-platron.php:28

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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 gateway, payment, payment gate, jigoshop, platron...

platron-payment-gate-for-jigoshop/jigoshop-platron.php 85% from 13 tests

The primary PHP file in "Platron for JigoShop" version 2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("platron-payment-gate-for-jigoshop.php" instead of "jigoshop-platron.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
Good job! No executable or dangerous file extensions detected457 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP292165378
PO File1296479

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity23.50
▷ Minimum class complexity11.00
▷ Maximum class complexity36.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods1150.00%
▷ Public methods1881.82%
▷ Protected methods14.55%
▷ Private methods313.64%
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
6 PNG files occupy 0.31MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png68.58KB32.07KB▼ 53.24%
images/platron.png3.88KB2.23KB▼ 42.60%
assets/screenshot-3.png46.97KB15.59KB▼ 66.81%
assets/screenshot-2.png54.13KB25.82KB▼ 52.30%
assets/icon-128x128.png5.89KB2.13KB▼ 63.85%