10% wp-ecommerce-paytm-payment

Code Review | WPeCommerce Paytm Payment

WordPress plugin WPeCommerce Paytm Payment scored10%from 54 tests.

About plugin

  • Plugin page: wp-ecommerce-payt...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2018
  • Latest release: Dec 17, 2018
  • Number of updates: 5
  • Update frequency: every 9.6 days
  • Top authors: integrationdevpaytm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,679 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-ecommerce-paytm-payment/paytm/encdec_paytm.php+25
    Array and string offset access syntax with curly braces is deprecated

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

A check of server-side resources used by WPeCommerce Paytm Payment
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.73 ▲3.48
Dashboard /wp-admin3.31 ▲0.0057.72 ▲8.93
Posts /wp-admin/edit.php3.36 ▲0.0054.40 ▼0.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.06 ▼6.34
Media Library /wp-admin/upload.php3.23 ▲0.0036.94 ▼0.74

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPeCommerce Paytm Payment
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.24 ▼0.112.02 ▲0.1144.24 ▼0.06
Dashboard /wp-admin2,198 ▲215.62 ▼0.0088.57 ▲1.4238.55 ▼1.81
Posts /wp-admin/edit.php2,103 ▼02.01 ▼0.0240.07 ▲3.2833.99 ▼5.26
Add New Post /wp-admin/post-new.php1,528 ▲223.01 ▼0.59662.78 ▼32.4946.43 ▼8.58
Media Library /wp-admin/upload.php1,400 ▲34.18 ▲0.0895.95 ▼25.5945.33 ▼3.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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 | 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ecommerce-paytm-payment/paytm.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: paytm plugin, paytm wpecommerce, paytm official, paytm, paytm wpecommerce plugin...

wp-ecommerce-paytm-payment/paytm.php 62% from 13 tests

This is the main PHP file of "WPeCommerce Paytm Payment" version 1.0, 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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 574 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-ecommerce-paytm-payment.php" instead of "paytm.php")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.3" instead of "5.6")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "4.0.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected432 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP211547432

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.50
▷ Minimum class complexity8.00
▷ Maximum class complexity13.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods1487.50%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
There were not PNG files found in your plugin