84% chip-for-fluent-forms

Code Review | CHIP for Fluent Forms

WordPress plugin CHIP for Fluent Forms scored84%from 54 tests.

About plugin

  • Plugin page: chip-for-fluent-f...
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Dec 13, 2022
  • Latest release: Jul 5, 2023
  • Number of updates: 18
  • Update frequency: every 11.3 days
  • Top authors: wanzulnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /853 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.12ms] Passed 4 tests

This is a short check of server-side resources used by CHIP for Fluent Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.61 ▼4.60
Dashboard /wp-admin3.32 ▲0.0147.87 ▼2.36
Posts /wp-admin/edit.php3.37 ▲0.0150.63 ▲6.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.50 ▼14.75
Media Library /wp-admin/upload.php3.24 ▲0.0137.41 ▲1.22

Server storage [IO: ▲1.64MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 159 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for CHIP for Fluent Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.071.87 ▼0.1842.70 ▼4.90
Dashboard /wp-admin2,198 ▲185.61 ▼0.0693.66 ▼3.1843.88 ▲0.41
Posts /wp-admin/edit.php2,103 ▲32.02 ▼0.0139.71 ▲0.2038.73 ▲0.81
Add New Post /wp-admin/post-new.php1,537 ▲918.49 ▼4.45638.17 ▲17.6079.10 ▲22.66
Media Library /wp-admin/upload.php1,403 ▲34.10 ▼0.1297.15 ▼11.2843.78 ▼0.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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
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
Please fix the following items
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant FF_CHIP_FSLUG - assumed 'FF_CHIP_FSLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chip-for-fluent-forms/includes/admin/global-settings.php on line 3
    • > PHP Warning
      Use of undefined constant FF_CHIP_FSLUG - assumed 'FF_CHIP_FSLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chip-for-fluent-forms/includes/admin/backup-settings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/chip-for-fluent-forms/includes/class-register.php:17
    • > PHP Warning
      Use of undefined constant FF_CHIP_FSLUG - assumed 'FF_CHIP_FSLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chip-for-fluent-forms/includes/admin/form-settings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chip-for-fluent-forms/includes/admin/global-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FluentFormPro\\Payments\\PaymentMethods\\BaseProcessor' not found in wp-content/plugins/chip-for-fluent-forms/includes/class-purchase.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CSF_Setup' not found in wp-content/plugins/chip-for-fluent-forms/includes/admin/form-settings.php:125
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chip-for-fluent-forms/includes/admin/class-webhook-setup.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CSF_Setup' not found in wp-content/plugins/chip-for-fluent-forms/includes/admin/backup-settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

chip-for-fluent-forms/chip-for-fluent-forms.php Passed 13 tests

The principal PHP file in "CHIP for Fluent Forms" v. 1.0.8 is loaded by WordPress automatically on each request
42 characters long description:
CHIP - Better Payment & Business Solutions

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected32,453 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PHP852,7459698,817
JavaScript51,3004976,564
PO File203,1983,5916,500
Sass1697035,674
CSS43765094,872
Markdown18014
SVG30012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity24.60
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity6.47
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes67
▷ Abstract classes22.99%
▷ Concrete classes6597.01%
▷ Final classes00.00%
Methods289
▷ Static methods4716.26%
▷ Public methods27795.85%
▷ Protected methods00.00%
▷ Private methods124.15%
Functions24
▷ Named functions2395.83%
▷ Anonymous functions14.17%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%