10% edd-paytm-gateway

Code Review | Paytm Digital Downloads

WordPress plugin Paytm Digital Downloads scored10%from 54 tests.

About plugin

  • Plugin page: edd-paytm-gateway
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 25, 2018
  • Latest release: Oct 25, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: integrationdevpaytm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,000 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/edd-paytm-gateway/encdec_paytm.php+25
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.79MB] [CPU: ▼56.65ms] Passed 4 tests

A check of server-side resources used by Paytm Digital Downloads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.275.94 ▼42.41
Dashboard /wp-admin2.21 ▼1.097.18 ▼46.20
Posts /wp-admin/edit.php2.21 ▼1.146.64 ▼42.43
Add New Post /wp-admin/post-new.php2.21 ▼3.675.93 ▼95.56
Media Library /wp-admin/upload.php2.21 ▼1.027.78 ▼28.67

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Paytm Digital Downloads: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▼0.241.91 ▼0.3441.15 ▼4.47
Dashboard /wp-admin2,200 ▲235.62 ▲0.0386.06 ▼7.6939.61 ▼6.30
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.1535.15 ▼1.0635.29 ▼0.01
Add New Post /wp-admin/post-new.php1,529 ▲322.90 ▼0.65656.72 ▼72.4957.09 ▲9.29
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.0498.47 ▼1.2145.89 ▲0.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/edd-paytm-gateway/encdec_paytm.php+25
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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
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_filter() in wp-content/plugins/edd-paytm-gateway/edd-paytm-gateway.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: paytm payment gateway, paytm digital downloads, edd paytm, paytm easy digital downloads, paytmwithpaytm...

edd-paytm-gateway/edd-paytm-gateway.php 85% from 13 tests

The main PHP file in "Paytm Digital Downloads" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 595 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin576 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP213175576

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods14100.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
No PNG files were detected