10% fundiin

Code Review | Fundiin cho WooCommerce

WordPress plugin Fundiin cho WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: fundiin
  • Plugin version: 3.4.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Mar 17, 2021
  • Latest release: Oct 12, 2023
  • Number of updates: 70
  • Update frequency: every 13.5 days
  • Top authors: fundiin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,140 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.70 ▼2.17
Dashboard /wp-admin3.31 ▲0.0046.26 ▼1.23
Posts /wp-admin/edit.php3.36 ▲0.0050.43 ▼1.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.43 ▼21.25
Media Library /wp-admin/upload.php3.23 ▲0.0035.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.411.67 ▲0.1137.97 ▼0.72
Dashboard /wp-admin2,198 ▲245.60 ▼0.0982.02 ▼5.9338.32 ▼1.87
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0032.24 ▼12.1032.11 ▼3.63
Add New Post /wp-admin/post-new.php1,540 ▲523.44 ▲5.36635.09 ▲9.0166.32 ▼9.73
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0194.99 ▲0.0540.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP202651191,633
JavaScript118055
Markdown115055
CSS10025

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 code0.41
Average class complexity14.65
▷ Minimum class complexity1.00
▷ Maximum class complexity89.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces2
Interfaces0
Traits6
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods66
▷ Static methods34.55%
▷ Public methods6598.48%
▷ Protected methods00.00%
▷ Private methods11.52%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants22
▷ Global constants627.27%
▷ Class constants1672.73%
▷ Public constants16100.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