Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.98ms] Passed 4 tests
Analyzing server-side resources used by Integrate PhonePe with WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.92 ▲3.64 |
Dashboard /wp-admin | 3.38 ▲0.04 | 52.67 ▼7.88 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.60 ▲0.67 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 83.52 ▼3.57 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.56 ▼5.14 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Integrate PhonePe with WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 14.35 ▲0.00 | 1.84 ▲0.16 | 43.80 ▲3.35 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▲0.02 | 94.44 ▲3.73 | 42.95 ▲0.22 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.03 | 33.58 ▼2.06 | 34.30 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.13 ▼0.06 | 659.36 ▼20.99 | 55.35 ▲0.99 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▼0.00 | 93.38 ▼11.31 | 42.64 ▼5.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wc-phonepe/includes/class-phonepe-gateway.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function phonepe\\is_admin() in wp-content/plugins/wc-phonepe/plugin-deactivation-survey/deactivate-feedback-form.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
5 plugin tags: phonepe woocommerce, phonepe, upi payment, upi, phonepe plugin
wc-phonepe/wc-phonepe.php 92% from 13 tests
Analyzing the main PHP file in "Integrate PhonePe with WooCommerce" version 1.1.5
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("3.0" instead of "3.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected983 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 209 | 691 | 590 |
CSS | 3 | 99 | 43 | 302 |
JavaScript | 2 | 25 | 12 | 90 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 1 | 2.56% |
▷ Public methods | 23 | 58.97% |
▷ Protected methods | 8 | 20.51% |
▷ Private methods | 8 | 20.51% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin