Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.45MB] [CPU: ▲1.83ms] Passed 4 tests
An overview of server-side resources used by PhonePe Express Checkout
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.48 | 48.25 ▲12.14 |
Dashboard /wp-admin | 3.79 ▲0.48 | 47.49 ▲2.74 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 47.86 ▲1.23 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 101.01 ▲1.60 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 36.52 ▲1.73 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PhonePe Express Checkout
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.17 ▼1.20 | 1.96 ▲0.42 | 41.06 ▲1.16 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼1.03 | 101.87 ▲2.54 | 39.44 ▼5.71 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.06 | 36.72 ▲1.46 | 36.73 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.13 ▲5.63 | 660.62 ▼9.83 | 57.93 ▲2.58 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.03 | 94.85 ▲0.34 | 41.91 ▲1.97 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PPEC_PhonepePluginEvent' not found in wp-content/plugins/phonepe-checkout-solutions/includes/api/PPEC_WC_Event.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/phonepe-checkout-solutions/includes/api/api.php:6
- > PHP Fatal error
Uncaught Error: Class 'PPEC_PhonepeException' not found in wp-content/plugins/phonepe-checkout-solutions/includes/common/Exceptions/ValidationException.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/phonepe-checkout-solutions/templates/processing.php:85
- > PHP Fatal error
Uncaught Error: Class 'PPEC_ValidationException' not found in wp-content/plugins/phonepe-checkout-solutions/includes/common/Exceptions/CouponValidationException.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/phonepe-checkout-solutions/includes/api/api.php:6
- > PHP Fatal error
Uncaught Error: Class 'PPEC_ValidationException' not found in wp-content/plugins/phonepe-checkout-solutions/includes/common/Exceptions/RedundantCallbackException.php:3
- > 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 96% from 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
7 plugin tags: woocommerce, phonepe, e-commerce, express, ecommerce...
phonepe-checkout-solutions/woo-phonepeExpressbuy.php 92% from 13 tests
"PhonePe Express Checkout" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("phonepe-checkout-solutions.php" instead of "woo-phonepeExpressbuy.php")
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
There were no executable files found in this plugin11,841 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 36 | 73 | 9,531 |
PHP | 20 | 455 | 303 | 2,250 |
JSON | 3 | 0 | 0 | 42 |
Markdown | 1 | 4 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 17 | 25.00% |
▷ Public methods | 64 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.88% |
Functions | 60 | |
▷ Named functions | 58 | 96.67% |
▷ Anonymous functions | 2 | 3.33% |
Constants | 12 | |
▷ Global constants | 4 | 33.33% |
▷ Class constants | 8 | 66.67% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin