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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.73 ▲3.48 |
Dashboard /wp-admin | 3.31 ▲0.00 | 57.72 ▲8.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 54.40 ▼0.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.06 ▼6.34 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.24 ▼0.11 | 2.02 ▲0.11 | 44.24 ▼0.06 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.00 | 88.57 ▲1.42 | 38.55 ▼1.81 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.01 ▼0.02 | 40.07 ▲3.28 | 33.99 ▼5.26 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.01 ▼0.59 | 662.78 ▼32.49 | 46.43 ▼8.58 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▲0.08 | 95.95 ▼25.59 | 45.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 115 | 47 | 432 |
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 code | 0.24 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 14 | 87.50% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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