Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.80ms] Passed 4 tests
An overview of server-side resources used by Paytm Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.01 ▼4.05 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.26 ▼19.38 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.56 ▼1.55 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.57 ▲5.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.43 ▲5.80 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_paytm_order_data |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paytm Payment Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.11 ▼1.26 | 4.73 ▲2.89 | 37.77 ▼8.11 |
Dashboard /wp-admin | 2,209 ▲21 | 5.85 ▲0.97 | 96.20 ▼24.26 | 39.41 ▼7.46 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.04 ▼0.08 | 40.47 ▲3.59 | 35.53 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 23.34 ▲0.03 | 623.26 ▼61.65 | 55.49 ▲4.83 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.20 ▼0.01 | 97.36 ▼11.40 | 42.11 ▼4.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- 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
The smoke test was a success, however most plugin functionality was not tested
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/paytm-payments/class.paytm.php:5
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: paytm payments, paytm plugin, paytm, paytm payment gateway, paywithpaytm...
paytm-payments/woo-paytm.php 77% from 13 tests
The main PHP script in "Paytm Payment Gateway" version 2.8.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 556 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("paytm-payments.php" instead of "woo-paytm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,390 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 183 | 167 | 1,149 |
JavaScript | 2 | 20 | 11 | 131 |
CSS | 2 | 14 | 3 | 108 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 19 | 54.29% |
▷ Public methods | 21 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 40.00% |
Functions | 20 | |
▷ Named functions | 18 | 90.00% |
▷ Anonymous functions | 2 | 10.00% |
Constants | 49 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 49 | 100.00% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin