Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/paytm-gravity-forms/lib/encdec_paytm.php+24
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼0.90MB] [CPU: ▼184.32ms] Passed 4 tests
A check of server-side resources used by Paytm Gravity Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▲0.01 | 12.13 ▼7.82 |
Dashboard /wp-admin | 2.75 ▼0.31 | 7.59 ▼32.19 |
Posts /wp-admin/edit.php | 2.75 ▼0.36 | 7.80 ▼32.95 |
Add New Post /wp-admin/post-new.php | 2.75 ▼2.68 | 8.01 ▼649.79 |
Media Library /wp-admin/upload.php | 2.75 ▼0.25 | 8.11 ▼22.33 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paytm Gravity Forms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.28 ▲0.80 | 8.66 ▼0.59 | 46.86 ▼2.66 |
Dashboard /wp-admin | 2,970 ▲36 | 5.90 ▼0.21 | 133.73 ▼20.67 | 115.35 ▼1.00 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 63.09 ▼2.88 | 86.95 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,500 ▼0 | 18.51 ▼0.14 | 363.31 ▼3.36 | 110.82 ▼1.28 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 4.99 ▼0.01 | 141.91 ▼5.00 | 117.95 ▲9.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/paytm-gravity-forms/lib/encdec_paytm.php+24
Array and string offset access syntax with curly braces is deprecated
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paytm-gravity-forms/paytm-form.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: paytm payment gateway, paytm gravity forms, paytm plugin, paywithpaytm, paytm payments...
paytm-gravity-forms/paytm-form.php 62% from 13 tests
The main file in "Paytm Gravity Forms" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- 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-gravity-forms.php" instead of "paytm-form.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 493 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "4.0.1")
- Requires PHP: Required version must match the one declared in readme.txt ("5.3" instead of "5.6")
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
No dangerous file extensions were detected2,661 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 609 | 141 | 2,572 |
JavaScript | 2 | 23 | 12 | 89 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 105.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 284.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 88 | 97.78% |
▷ Public methods | 58 | 64.44% |
▷ Protected methods | 1 | 1.11% |
▷ Private methods | 31 | 34.44% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tooltip_tip.png | 0.24KB | 0.28KB | 0.00% |
images/sagepay_form_wordpress_icon_32.png | 19.58KB | 1.53KB | ▼ 92.18% |
images/active1.png | 0.71KB | 0.63KB | ▼ 11.28% |
images/remove.png | 3.32KB | 0.62KB | ▼ 81.33% |
images/add.png | 3.37KB | 0.66KB | ▼ 80.54% |