Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.18MB] [CPU: ▼4.17ms] Passed 4 tests
A check of server-side resources used by Sale with Razorpay
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.28 ▼1.28 |
Dashboard /wp-admin | 3.52 ▲0.22 | 45.85 ▼3.61 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 46.05 ▼2.48 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 86.22 ▼9.30 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 33.83 ▲0.34 |
SWR Setting /wp-admin/options-general.php?page=swr-setting-page | 3.39 | 39.12 |
SWR Razorpay Order List /wp-admin/admin.php?page=download_swr_order_list | 3.30 | 32.87 |
SWR Product /wp-admin/edit.php?post_type=swr_product | 3.47 | 32.47 |
Add New /wp-admin/post-new.php?post_type=swr_product | 3.55 | 48.29 |
Product Categories /wp-admin/edit-tags.php?taxonomy=swr_productcat&post_type=swr_product | 3.42 | 36.22 |
Server storage [IO: ▲2.06MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 270 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_swr_shipping_address |
wp_swr_transaction |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
recovery_mode_email_last_sent |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Sale with Razorpay
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,016 ▲281 | 14.95 ▲0.64 | 4.10 ▲2.36 | 52.04 ▲2.65 |
Dashboard /wp-admin | 2,412 ▲224 | 6.53 ▲0.63 | 134.27 ▲22.71 | 39.51 ▼3.65 |
Posts /wp-admin/edit.php | 2,327 ▲235 | 3.43 ▲1.39 | 56.22 ▲15.26 | 36.08 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,570 ▲42 | 23.24 ▲4.86 | 631.60 ▲25.43 | 35.94 ▼15.01 |
Media Library /wp-admin/upload.php | 1,464 ▲73 | 4.22 ▲0.02 | 86.64 ▼14.61 | 45.22 ▼1.44 |
SWR Setting /wp-admin/options-general.php?page=swr-setting-page | 1,130 | 3.35 | 40.10 | 27.27 |
SWR Razorpay Order List /wp-admin/admin.php?page=download_swr_order_list | 28 | 0.44 | 0.06 | 9.37 |
SWR Product /wp-admin/edit.php?post_type=swr_product | 1,302 | 3.47 | 44.15 | 25.37 |
Add New /wp-admin/post-new.php?post_type=swr_product | 2,349 | 7.72 | 169.81 | 64.88 |
Product Categories /wp-admin/edit-tags.php?taxonomy=swr_productcat&post_type=swr_product | 1,518 | 3.43 | 44.00 | 27.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_swr_shipping_address
- wp_swr_transaction
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=download_swr_order_list
- > Error in wp-content/plugins/sell-with-razorpay/admin/swr-order-detail-download.php+13
Uncaught Error: Call to undefined function mysql_error() in wp-content/plugins/sell-with-razorpay/admin/swr-order-detail-download.php:13
Stack trace:
#0 wp-includes/class-wp-hook.php(310): download_swr_order_list()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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 fix the following
- 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/rmccue/requests/examples/session.php
- > /wp-content/plugins/sell-with-razorpay/lib/razorpay-php/libs/Requests-1.6.1/examples/session.php
- > /wp-content/plugins/sell-with-razorpay/lib/razorpay-php/libs/Requests-1.6.1/examples/basic-auth.php
- > /wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/rmccue/requests/examples/get.php
- > /wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/rmccue/requests/examples/post.php
- > /wp-content/plugins/sell-with-razorpay/lib/razorpay-php/libs/Requests-1.6.1/bin/create_pear_package.php
- > /wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/rmccue/requests/examples/basic-auth.php
- > /wp-content/plugins/sell-with-razorpay/lib/razorpay-php/libs/Requests-1.6.1/examples/get.php
- > /wp-content/plugins/sell-with-razorpay/lib/razorpay-php/libs/Requests-1.6.1/examples/multiple.php
- > /wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/rmccue/requests/bin/create_pear_package.php
- 135× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/sell-with-razorpay/lib/razorpay-php/libs/Requests-1.6.1/tests/Cookies.php:3
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/rmccue/requests/library/Requests/Exception/HTTP/409.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Auth' not found in wp-content/plugins/sell-with-razorpay/lib/razorpay-php/libs/Requests-1.6.1/library/Requests/Auth/Basic.php:18
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/sell-with-razorpay/lib/razorpay-php/src/Collection.php:7
- > PHP Fatal error
Uncaught Error: Class 'Requests_Utility_CaseInsensitiveDictionary' not found in wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/rmccue/requests/library/Requests/Response/Headers.php:13
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Resource' not found in wp-content/plugins/sell-with-razorpay/lib/razorpay-php/src/Entity.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Transport' not found in wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/rmccue/requests/library/Requests/Transport/cURL.php:15
- > PHP Fatal error
Uncaught Error: Class 'kintParser' not found in wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/raveren/kint/parsers/custom/json.php:3
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/rmccue/requests/library/Requests/Exception/HTTP/Unknown.php:13
- > PHP Fatal error
Uncaught Error: Class 'RequestsTest_Transport_Base' not found in wp-content/plugins/sell-with-razorpay/lib/razorpay-php/vendor/rmccue/requests/tests/Transport/fsockopen.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=swr_product
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=swr_product 427:41 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration Passed 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
10 plugin tags: sale product, shipping address, razorpay api, sale, product...
sell-with-razorpay/sell-with-razorpay.php Passed 13 tests
This is the main PHP file of "Sale with Razorpay" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Product manage & razorpay gateway use for payment process
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
There were no executable files found in this plugin18,049 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 2,144 | 3,962 | 9,860 |
CSS | 7 | 61 | 63 | 3,632 |
JavaScript | 5 | 268 | 162 | 1,797 |
Markdown | 25 | 568 | 0 | 1,421 |
SVG | 1 | 0 | 0 | 520 |
LESS | 5 | 134 | 39 | 505 |
JSON | 5 | 0 | 0 | 225 |
XML | 2 | 4 | 0 | 66 |
YAML | 2 | 0 | 0 | 23 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 165 | |
▷ Abstract classes | 4 | 2.42% |
▷ Concrete classes | 161 | 97.58% |
▷ Final classes | 0 | 0.00% |
Methods | 774 | |
▷ Static methods | 194 | 25.06% |
▷ Public methods | 630 | 81.40% |
▷ Protected methods | 108 | 13.95% |
▷ Private methods | 36 | 4.65% |
Functions | 68 | |
▷ Named functions | 67 | 98.53% |
▷ Anonymous functions | 1 | 1.47% |
Constants | 50 | |
▷ Global constants | 8 | 16.00% |
▷ Class constants | 42 | 84.00% |
▷ Public constants | 42 | 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
2 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/noimage.png | 99.01KB | 13.95KB | ▼ 85.91% |
assets/images/logo-pmc.png | 4.11KB | 2.07KB | ▼ 49.61% |