Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.73ms] Passed 4 tests
A check of server-side resources used by Razorpay Quick Payments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.74 ▲4.14 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.64 ▼16.55 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.58 ▲1.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.17 ▼18.13 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.86 ▲2.48 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 278 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Razorpay Quick Payments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲123 | 13.39 ▼0.97 | 8.56 ▲6.93 | 43.31 ▲2.40 |
Dashboard /wp-admin | 2,211 ▲30 | 5.50 ▼0.21 | 80.77 ▼19.58 | 37.83 ▼11.19 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.98 ▼0.00 | 38.13 ▲3.02 | 37.28 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 23.27 ▲0.16 | 682.85 ▼15.24 | 46.75 ▼11.60 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.20 ▲0.01 | 97.12 ▼11.38 | 45.71 ▼1.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.6.1/examples/basic-auth.php
- > /wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.6.1/examples/get.php
- > /wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.6.1/examples/post.php
- > /wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.6.1/examples/session.php
- > /wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.6.1/examples/multiple.php
- > /wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.6.1/bin/create_pear_package.php
- 163× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.6.1/library/Requests/Exception/HTTP/414.php:13
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-2.0.4/src/Exception/Http/Status502.php:17
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.6.1/library/Requests/Exception/HTTP/404.php:13
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-quick-payments/razorpay-php/src/Collection.php:7
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Errors\\Error' not found in wp-content/plugins/razorpay-quick-payments/razorpay-php/src/Errors/GatewayError.php:5
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.7.0/library/Requests/Exception/HTTP/504.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Utility_CaseInsensitiveDictionary' not found in wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.6.1/library/Requests/Response/Headers.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-1.6.1/tests/Requests.php:3
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception' not found in wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-2.0.4/src/Exception/ArgumentCount.php:20
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-quick-payments/razorpay-php/libs/Requests-2.0.4/src/Exception/Http/Status504.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: razorpay, india, quick, simple, payments
razorpay-quick-payments/razorpay-quick-payments.php Passed 13 tests
The primary PHP file in "Razorpay Quick Payments" version 1.2.9 is used by WordPress to initiate all plugin functionality
42 characters long description:
Quick Payments for Wordpress, by Razorpay.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected14,663 lines of code in 232 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 206 | 2,982 | 9,403 | 12,490 |
Markdown | 18 | 760 | 0 | 1,898 |
JSON | 4 | 0 | 0 | 175 |
YAML | 3 | 9 | 5 | 67 |
XML | 1 | 2 | 0 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 9.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 14 | |
Traits | 0 | |
Classes | 212 | |
▷ Abstract classes | 1 | 0.47% |
▷ Concrete classes | 211 | 99.53% |
▷ Final classes | 45 | 21.33% |
Methods | 874 | |
▷ Static methods | 191 | 21.85% |
▷ Public methods | 733 | 83.87% |
▷ Protected methods | 130 | 14.87% |
▷ Private methods | 11 | 1.26% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 84 | |
▷ Global constants | 7 | 8.33% |
▷ Class constants | 77 | 91.67% |
▷ Public constants | 77 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 3.85KB | 2.76KB | ▼ 28.31% |
images/payment.png | 5.47KB | 2.74KB | ▼ 49.83% |