Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.25ms] Passed 4 tests
Analyzing server-side resources used by CHIP for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.49 ▼0.62 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.25 ▼1.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.69 ▲0.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.93 ▲3.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.40 ▲0.62 |
Server storage [IO: ▲0.36MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for CHIP for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.67 ▲0.44 | 1.72 ▼0.00 | 43.50 ▲0.70 |
Dashboard /wp-admin | 2,198 ▲20 | 5.59 ▼0.13 | 94.57 ▼14.16 | 41.89 ▼2.62 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.03 | 36.15 ▲0.61 | 36.22 ▲3.75 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 25.26 ▲2.29 | 653.22 ▼6.52 | 49.70 ▼1.99 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.00 | 95.31 ▼0.28 | 43.04 ▲4.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/chip-for-woocommerce/includes/class-wc-gateway-chip.php:3
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/chip-for-woocommerce/includes/blocks/class-wc-gateway-chip-blocks.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Chip_Blocks_Support' not found in wp-content/plugins/chip-for-woocommerce/includes/blocks/clone-wc-gateway-chip-blocks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chip-for-woocommerce/includes/class-wc-queue.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chip-for-woocommerce/includes/class-wc-migration.php:19
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Chip' not found in wp-content/plugins/chip-for-woocommerce/includes/clone-wc-gateway-chip.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/chip-for-woocommerce/includes/class-wc-bulk-action.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chip-for-woocommerce/includes/class-wc-receipt-link.php:19
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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 your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in chip-for-woocommerce/assets to your readme.txt
chip-for-woocommerce/chip-for-woocommerce.php Passed 13 tests
The entry point to "CHIP for WooCommerce" version 1.4.5 is a PHP file that has certain tags in its header comment area
31 characters long description:
CHIP - Digital Finance Platform
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
No dangerous file extensions were detected2,344 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 588 | 85 | 2,274 |
JavaScript | 2 | 17 | 5 | 60 |
SVG | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 21.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 270.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 7 | 5.11% |
▷ Public methods | 116 | 84.67% |
▷ Protected methods | 12 | 8.76% |
▷ Private methods | 9 | 6.57% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 13 | |
▷ Global constants | 8 | 61.54% |
▷ Class constants | 5 | 38.46% |
▷ Public constants | 5 | 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
12 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/fpx_b2b1.png | 16.68KB | 6.20KB | ▼ 62.84% |
assets/card.png | 12.22KB | 5.43KB | ▼ 55.57% |
assets/card_international.png | 13.51KB | 5.53KB | ▼ 59.10% |
assets/logo.png | 8.88KB | 4.52KB | ▼ 49.04% |
assets/paywithchip_all.png | 68.19KB | 24.35KB | ▼ 64.29% |