Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.53ms] Passed 4 tests
An overview of server-side resources used by Camptix Indian Payments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.30 ▲1.39 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.03 ▲0.06 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.21 ▼6.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.65 ▼1.84 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.16 ▼1.80 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 133 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Camptix Indian Payments: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.22 ▼0.03 | 1.92 ▲0.22 | 42.99 ▼0.50 |
Dashboard /wp-admin | 2,206 ▼0 | 4.87 ▼0.91 | 114.17 ▲17.73 | 43.05 ▲3.40 |
Posts /wp-admin/edit.php | 2,086 ▲18 | 1.97 ▼0.01 | 34.94 ▼2.28 | 33.55 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.50 ▲0.05 | 624.73 ▼50.44 | 57.83 ▲2.81 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.01 | 102.50 ▼3.27 | 45.01 ▼2.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/examples/basic-auth.php
- > /wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/examples/post.php
- > /wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/examples/session.php
- > /wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/examples/get.php
- > /wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/examples/multiple.php
- > /wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/bin/create_pear_package.php
- 65× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Transport' not found in wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/library/Requests/Transport/fsockopen.php:15
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/src/Order.php:5
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/src/Refund.php:5
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/library/Requests/Exception/HTTP/403.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/library/Requests/Exception/HTTP/412.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/tests/IRI.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Hooker' not found in wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/library/Requests/Hooks.php:15
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/library/Requests/Exception/HTTP/404.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/library/Requests/Exception/HTTP/411.php:13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/campt-indian-payment-gateway/inc/razorpay/lib/razorpay-php/libs/Requests-1.6.1/bin/create_pear_package.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Instamojo Enable), #2 (Razorpay Enable)
campt-indian-payment-gateway/campt-indian-payment-gateway.php Passed 13 tests
Analyzing the main PHP file in "Camptix Indian Payments" version 1.8
80 characters long description:
Simple and Flexible payment ticketing for Camptix using Indian Payment Platforms
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
Success! There were no dangerous files found in this plugin6,978 lines of code in 123 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 99 | 1,251 | 3,517 | 5,815 |
Markdown | 15 | 322 | 0 | 809 |
JavaScript | 3 | 59 | 121 | 216 |
JSON | 3 | 0 | 0 | 82 |
XML | 1 | 2 | 0 | 33 |
YAML | 2 | 0 | 0 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 87 | |
▷ Abstract classes | 1 | 1.15% |
▷ Concrete classes | 86 | 98.85% |
▷ Final classes | 0 | 0.00% |
Methods | 432 | |
▷ Static methods | 79 | 18.29% |
▷ Public methods | 363 | 84.03% |
▷ Protected methods | 57 | 13.19% |
▷ Private methods | 12 | 2.78% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 23 | |
▷ Global constants | 3 | 13.04% |
▷ Class constants | 20 | 86.96% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.05MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 32.76KB | 36.66KB | 0.00% |
screenshot-1.png | 23.42KB | 27.32KB | 0.00% |