78% finest-mini-cart

Code Review | Finest Floating Cart for WooCommerce

WordPress plugin Finest Floating Cart for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: finest-mini-cart
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.3
  • WordPress version: 6.3.1
  • First release: Dec 2, 2021
  • Latest release: Aug 17, 2023
  • Number of updates: 15
  • Update frequency: every 41.6 days
  • Top authors: finestdevs (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /1,781 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲3.24MB] [CPU: ▲13.32ms] Passed 4 tests

A check of server-side resources used by Finest Floating Cart for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.94 ▲4.4858.24 ▲17.38
Dashboard /wp-admin6.53 ▲3.2371.40 ▲18.50
Posts /wp-admin/edit.php6.58 ▲3.2361.15 ▲11.71
Add New Post /wp-admin/post-new.php9.13 ▲3.24101.14 ▲6.10
Media Library /wp-admin/upload.php6.50 ▲3.2754.72 ▲18.08

Server storage [IO: ▲2.54MB] [DB: ▲0.18MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 291 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Finest Floating Cart for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲13013.78 ▼0.507.36 ▲4.8742.76 ▼8.63
Dashboard /wp-admin2,222 ▲545.63 ▲0.0593.32 ▲5.4442.75 ▼1.61
Posts /wp-admin/edit.php2,127 ▲272.03 ▲0.0134.85 ▼1.8337.72 ▲0.67
Add New Post /wp-admin/post-new.php1,553 ▲2723.01 ▼0.05652.01 ▼16.5672.03 ▲12.18
Media Library /wp-admin/upload.php1,424 ▲214.21 ▼0.01102.69 ▲4.9547.11 ▲1.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 7× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/finest-mini-cart/lib/controls/views/generic.php
    • > /wp-content/plugins/finest-mini-cart/lib/controls/views/select.php
    • > /wp-content/plugins/finest-mini-cart/lib/controls/views/color.php
    • > /wp-content/plugins/finest-mini-cart/lib/controls/views/textarea.php
    • > /wp-content/plugins/finest-mini-cart/lib/controls/views/number.php
    • > /wp-content/plugins/finest-mini-cart/lib/controls/views/code.php
    • > /wp-content/plugins/finest-mini-cart/lib/controls/views/radio.php
  • 85× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Output' not found in wp-content/plugins/finest-mini-cart/lib/modules/css/field/class-kirki-output-field-typography.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Output_Property' not found in wp-content/plugins/finest-mini-cart/lib/modules/css/property/class-kirki-output-property-background-image.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/finest-mini-cart/lib/field/class-kirki-field-radio.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki' not found in wp-content/plugins/finest-mini-cart/includes/customizer/cart-style.php:2
    • > PHP Warning
      Use of undefined constant FMC_INC - assumed 'FMC_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/finest-mini-cart/includes/base.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Output_Property' not found in wp-content/plugins/finest-mini-cart/lib/modules/css/property/class-kirki-output-property-font-family.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Cropped_Image_Control' not found in wp-content/plugins/finest-mini-cart/lib/controls/php/class-kirki-control-cropped-image.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field_Select' not found in wp-content/plugins/finest-mini-cart/lib/field/class-kirki-field-select2.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_normalize_path() in wp-content/plugins/finest-mini-cart/lib/deprecated/deprecated.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Control_Base' not found in wp-content/plugins/finest-mini-cart/lib/controls/php/class-kirki-control-background.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

finest-mini-cart/finest-mini-cart.php 92% from 13 tests

Analyzing the main PHP file in "Finest Floating Cart for WooCommerce" version 1.0.4
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected35,143 lines of code in 271 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript923,6512,51014,154
PHP1601,8596,88110,177
JSON4008,318
CSS11225522,307
SVG300160
YAML17027

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity9.55
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes131
▷ Abstract classes00.00%
▷ Concrete classes131100.00%
▷ Final classes86.11%
Methods442
▷ Static methods10022.62%
▷ Public methods24154.52%
▷ Protected methods18241.18%
▷ Private methods194.30%
Functions45
▷ Named functions2248.89%
▷ Anonymous functions2351.11%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/assets/images/jquery.fs.stepper-arrows.png0.30KB0.18KB▼ 40.52%
lib/assets/images/kirki-bottom.png1.51KB1.09KB▼ 27.89%
lib/assets/images/2cl.png0.85KB0.27KB▼ 68.48%
assets/img/sunset-icon.png1.62KB0.89KB▼ 45.02%
lib/assets/images/3cm.png0.91KB0.25KB▼ 72.00%