Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/paytm-donation/paytm-donation.php+113
Undefined variable: paytm_pages
Server metrics [RAM: ▲0.33MB] [CPU: ▼5.85ms] 75% from 4 tests
An overview of server-side resources used by Paytm - Donation Plugin
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 5,041.08ms on /wp-admin/admin.php?page=paytm_options_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 45.72 ▲3.80 |
Dashboard /wp-admin | 3.67 ▲0.32 | 49.47 ▼15.99 |
Posts /wp-admin/edit.php | 3.77 ▲0.40 | 54.36 ▲6.25 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 87.22 ▼17.46 |
Media Library /wp-admin/upload.php | 3.61 ▲0.37 | 44.51 ▲10.96 |
Payment History /wp-admin/admin.php?page=wp_paytm_donation | 3.53 | 39.64 |
Edit Fields /wp-admin/admin.php?page=wp_paytm_donation_user_field_page | 3.51 | 39.11 |
Settings /wp-admin/admin.php?page=paytm_options_page | 3.50 | 5,041.08 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_paytm_donation_user_data |
wp_paytm_donation_order_data |
New WordPress options |
---|
db_upgraded |
isWebsiteAddedDonation |
websiteOptionDonation |
paytm_content |
paytm_user_field |
paytm_merchant_id |
widget_recent-posts |
widget_recent-comments |
paytm_merchant_key |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paytm - Donation Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲73 | 14.23 ▼0.48 | 1.73 ▼0.26 | 44.68 ▼0.07 |
Dashboard /wp-admin | 2,213 ▲39 | 5.56 ▲0.02 | 93.98 ▼10.40 | 77.30 ▲34.76 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 1.96 ▲0.02 | 37.77 ▼1.40 | 36.66 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,704 ▲168 | 22.48 ▼0.69 | 650.92 ▲20.52 | 59.15 ▲7.43 |
Media Library /wp-admin/upload.php | 1,427 ▲33 | 4.19 ▼0.01 | 95.11 ▼0.62 | 81.13 ▲40.59 |
Payment History /wp-admin/admin.php?page=wp_paytm_donation | 955 | 1.71 | 30.50 | 30.37 |
Edit Fields /wp-admin/admin.php?page=wp_paytm_donation_user_field_page | 1,156 | 1.71 | 26.65 | 31.35 |
Settings /wp-admin/admin.php?page=paytm_options_page | 1,020 | 1.72 | 27.67 | 32.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/paytm-donation/paytm-donation.php+159
Undefined variable: wpdb
- Zombie tables were found after uninstall: 2 tables
- wp_paytm_donation_user_data
- wp_paytm_donation_order_data
- This plugin does not fully uninstall, leaving 10 options in the database
- db_upgraded
- websiteOptionDonation
- isWebsiteAddedDonation
- theysaidso_admin_options
- widget_theysaidso_widget
- paytm_donation_details_url
- widget_recent-posts
- widget_recent-comments
- paytm_user_field
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=paytm_options_page
- > Notice in wp-content/plugins/paytm-donation/paytm-donation.php+402
Undefined variable: tableEnd
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/paytm-donation/paytm-donation-listings.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/paytm-donation/paytm-donation.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: paytm, paytm payment, payment, wordpress donation, paytm donation...
paytm-donation/paytm-donation.php 85% from 13 tests
The main PHP file in "Paytm - Donation Plugin" ver. 2.2.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 546 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,362 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 283 | 102 | 1,752 |
CSS | 2 | 39 | 10 | 314 |
JavaScript | 2 | 37 | 16 | 296 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 29 | |
▷ Static methods | 26 | 89.66% |
▷ Public methods | 21 | 72.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 27.59% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 0.40KB | 0.39KB | ▼ 1.46% |