Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼7.36ms] Passed 4 tests
An overview of server-side resources used by PhonePe Payment Solutions
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 39.54 ▲3.94 |
Dashboard /wp-admin | 3.42 ▲0.07 | 46.54 ▼12.58 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 44.01 ▼0.29 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 78.39 ▼16.45 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.28 ▼0.11 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for PhonePe Payment Solutions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.09 ▼0.27 | 1.75 ▼0.01 | 43.44 ▲3.76 |
Dashboard /wp-admin | 2,198 ▲21 | 5.53 ▼0.04 | 92.46 ▲3.91 | 40.66 ▲2.42 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.00 | 34.33 ▼2.65 | 32.72 ▼11.18 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 22.84 ▼0.28 | 656.00 ▲56.16 | 57.56 ▲5.10 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.06 | 94.89 ▼3.66 | 40.63 ▼6.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PPEC_ValidationException' not found in wp-content/plugins/phonepe-payment-solutions/root-common/Exceptions/CouponValidationException.php:3
- > PHP Fatal error
Uncaught Error: Class 'PPEC_ValidationException' not found in wp-content/plugins/phonepe-payment-solutions/root-common/Exceptions/RedundantCallbackException.php:3
- > PHP Fatal error
Uncaught Error: Interface 'PPEX_PG_Interface' not found in wp-content/plugins/phonepe-payment-solutions/PPEX_WC_PG_Client.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/phonepe-payment-solutions/index.php:23
- > PHP Fatal error
Uncaught Error: Class 'PPEC_PhonepeException' not found in wp-content/plugins/phonepe-payment-solutions/root-common/Exceptions/ValidationException.php:3
- > PHP Fatal error
Uncaught Error: Interface 'PPEX_Base_Http_Client' not found in wp-content/plugins/phonepe-payment-solutions/root-common/PPEX_WC_Http_Client.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
phonepe-payment-solutions/index.php 85% from 13 tests
The main PHP script in "PhonePe Payment Solutions" version 2.0.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("phonepe-payment-solutions.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 279 characters long)
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
Success! There were no dangerous files found in this plugin2,290 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 608 | 524 | 2,207 |
CSS | 1 | 1 | 0 | 46 |
JavaScript | 3 | 2 | 0 | 36 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 259 | |
▷ Static methods | 23 | 8.88% |
▷ Public methods | 255 | 98.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 1.54% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 67 | |
▷ Global constants | 6 | 8.96% |
▷ Class constants | 61 | 91.04% |
▷ Public constants | 61 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin