Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.25ms] Passed 4 tests
Analyzing server-side resources used by BharatX Pay In 3
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.05 ▼1.65 |
Dashboard /wp-admin | 3.36 ▲0.01 | 45.11 ▼15.38 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.02 ▲0.52 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.20 ▼10.31 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.20 ▼1.66 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_bharatx_pay_in_3_transactions |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
BharatX Pay In 3: 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,795 ▲49 | 14.23 ▼0.32 | 1.61 ▼0.19 | 43.29 ▲0.42 |
Dashboard /wp-admin | 2,198 ▲18 | 5.56 ▼0.09 | 80.72 ▼3.51 | 40.54 ▲0.46 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.05 | 40.72 ▲3.40 | 39.45 ▲4.14 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.26 ▼0.22 | 659.22 ▼25.88 | 57.53 ▼4.87 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▼0.04 | 95.61 ▼19.07 | 42.97 ▼6.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_bharatx_pay_in_3_transactions
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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 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
Please fix the following items
- 1× 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/bharatx-pay-in-3/admin/class-bharatx-pay-in-3-feature-plugin-gateway.php:21
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== bharatx-pay-in-3 ===
)
bharatx-pay-in-3/bharatx-pay-in-3-feature-plugin.php 85% from 13 tests
The main PHP file in "BharatX Pay In 3" ver. 1.6.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("bharatx-pay-in-3.php" instead of "bharatx-pay-in-3-feature-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,839 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 293 | 727 | 1,042 |
JavaScript | 2 | 66 | 113 | 518 |
CSS | 1 | 44 | 36 | 236 |
SVG | 2 | 1 | 0 | 43 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 7 | 10.14% |
▷ Public methods | 60 | 86.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 13.04% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/popup.png | 81.60KB | 24.40KB | ▼ 70.09% |
public/images/logo.png | 1.87KB | 1.39KB | ▼ 25.65% |