Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/fundiin/fundiin.php+94
Undefined variable: response
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.61ms] Passed 4 tests
This is a short check of server-side resources used by Fundiin cho WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.70 ▼2.17 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.26 ▼1.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.43 ▼1.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.43 ▼21.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.86 ▲2.24 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fundiin cho WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.10 ▼0.41 | 1.67 ▲0.11 | 37.97 ▼0.72 |
Dashboard /wp-admin | 2,198 ▲24 | 5.60 ▼0.09 | 82.02 ▼5.93 | 38.32 ▼1.87 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.00 | 32.24 ▼12.10 | 32.11 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,540 ▲5 | 23.44 ▲5.36 | 635.09 ▲9.01 | 66.32 ▼9.73 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.01 | 94.99 ▲0.05 | 40.30 ▼1.23 |
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
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fundiin/shortcode/single-price.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/fundiin/payment/gateway.php:6
- > PHP Fatal error
Uncaught Error: Class 'Fundiin_Slack_Logger' not found in wp-content/plugins/fundiin/public/checkout/view.php:8
- > PHP Fatal error
Uncaught Error: Class 'Fundiin_Slack_Logger' not found in wp-content/plugins/fundiin/rest/api.php:9
- > PHP Fatal error
Uncaught Error: Class 'Fundiin_Helper' not found in wp-content/plugins/fundiin/public/single-product/price.php:11
- > PHP Fatal error
Uncaught Error: Class 'Fundiin_Helper' not found in wp-content/plugins/fundiin/admin/ui/order_detail.php:9
- > PHP Fatal error
Uncaught Error: Class 'Fundiin_Helper' not found in wp-content/plugins/fundiin/admin/ui/orders.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: gateway, buy_now_pay_later, payment, fundiin
fundiin/fundiin.php Passed 13 tests
"Fundiin cho WooCommerce" version 3.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
97 characters long description:
Mua trả sau 3 kỳ thanh toán miễn lãi ngay lập tức mà không cần thẻ tín dụng.
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
Everything looks great! No dangerous files found in this plugin1,768 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 265 | 119 | 1,633 |
JavaScript | 1 | 18 | 0 | 55 |
Markdown | 1 | 15 | 0 | 55 |
CSS | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 6 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 3 | 4.55% |
▷ Public methods | 65 | 98.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.52% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 22 | |
▷ Global constants | 6 | 27.27% |
▷ Class constants | 16 | 72.73% |
▷ Public constants | 16 | 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 files were detected