Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/cashfree/cashfree.php+75
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.17ms] Passed 4 tests
Server-side resources used by Cashfree for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.56 ▼34.75 |
Dashboard /wp-admin | 2.05 ▼1.26 | 8.00 ▼45.57 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.76 ▼43.17 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.41 ▼93.18 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.69 ▼29.98 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Cashfree for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.72 ▲0.25 | 1.64 ▼0.32 | 38.92 ▼7.40 |
Dashboard /wp-admin | 2,195 ▲21 | 5.56 ▼0.02 | 86.65 ▼6.44 | 37.75 ▼1.94 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.00 ▼0.01 | 35.15 ▼4.71 | 31.52 ▼4.79 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.25 ▲0.26 | 684.57 ▼17.44 | 57.86 ▲3.51 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.05 | 96.80 ▼8.31 | 45.88 ▼1.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/cashfree/cashfree.php+75
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6 in cashfree/assets to your readme.txt
cashfree/cashfree.php 85% from 13 tests
Analyzing the main PHP file in "Cashfree for WooCommerce" version 4.5.3
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,028 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 187 | 365 | 930 |
JavaScript | 1 | 5 | 1 | 72 |
Markdown | 1 | 14 | 0 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 1 | 12.50% |
Methods | 44 | |
▷ Static methods | 11 | 25.00% |
▷ Public methods | 37 | 84.09% |
▷ Protected methods | 2 | 4.55% |
▷ Private methods | 5 | 11.36% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.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
PNG images were not found in this plugin