89% floating-cart-for-woo

Code Review | Floating cart for WooCommerce

WordPress plugin Floating cart for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: floating-cart-for...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Jan 9, 2022
  • Latest release: Mar 3, 2022
  • Number of updates: 13
  • Update frequency: every 4.3 days
  • Top authors: burhandodhy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 924 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.04ms] Passed 4 tests

A check of server-side resources used by Floating cart for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1146.07 ▼3.46
Dashboard /wp-admin3.42 ▲0.1152.51 ▼1.01
Posts /wp-admin/edit.php3.53 ▲0.1758.80 ▲4.71
Add New Post /wp-admin/post-new.php6.00 ▲0.11102.63 ▲5.46
Media Library /wp-admin/upload.php3.34 ▲0.1037.18 ▼0.07

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
fcfw_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Floating cart for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2513.31 ▼0.264.65 ▲2.7745.55 ▼4.70
Dashboard /wp-admin2,223 ▲174.88 ▼1.01114.91 ▲8.7243.42 ▲1.93
Posts /wp-admin/edit.php2,103 ▲142.07 ▲0.0641.46 ▲1.7840.78 ▲4.95
Add New Post /wp-admin/post-new.php1,542 ▼023.42 ▲5.22795.56 ▲172.7051.98 ▲0.74
Media Library /wp-admin/upload.php1,402 ▲114.25 ▲0.0499.66 ▼7.1646.20 ▲1.25

Uninstaller [IO: ✅] [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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • fcfw_options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

floating-cart-for-woo/floating-cart-for-woo.php 92% from 13 tests

The principal PHP file in "Floating cart for WooCommerce" v. 1.1.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin907 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP13115158904
JavaScript2002
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.20
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods2187.50%
▷ Protected methods28.33%
▷ Private methods14.17%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected