83% addonify-floating-cart

Code Review | Addonify Floating Cart For WooCommerce

WordPress plugin Addonify Floating Cart For WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: addonify-floating...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.4.0
  • WordPress version: 6.3.1
  • First release: Sep 14, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 23
  • Update frequency: every 18.3 days
  • Top authors: addonify (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /7,098 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Addonify Floating Cart For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.26 ▼8.73
Dashboard /wp-admin3.42 ▲0.1185.30 ▲36.09
Posts /wp-admin/edit.php3.53 ▲0.1741.36 ▼4.83
Add New Post /wp-admin/post-new.php6.00 ▲0.1181.24 ▼7.81
Media Library /wp-admin/upload.php3.34 ▲0.1137.32 ▲5.34

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Addonify Floating Cart For WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲4214.68 ▲0.331.90 ▼0.0736.68 ▼7.57
Dashboard /wp-admin2,206 ▲265.67 ▲0.04151.28 ▲58.1973.02 ▲31.39
Posts /wp-admin/edit.php2,115 ▲151.98 ▲0.0336.63 ▼1.4331.39 ▼2.96
Add New Post /wp-admin/post-new.php1,538 ▲1123.37 ▲0.24648.67 ▲21.1152.94 ▼11.82
Media Library /wp-admin/upload.php1,414 ▲144.23 ▼0.08105.20 ▲6.5441.75 ▼3.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-floating-cart/includes/functions/fields/cart.php:93
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonify-floating-cart/includes/template-functions.php:102
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-floating-cart/includes/functions/fields/cart-display.php:150
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/addonify-floating-cart/includes/udp/init.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-floating-cart/includes/functions/fields/coupon.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/addonify-floating-cart/includes/functions/settings.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-floating-cart/includes/functions/fields/custom-css.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-floating-cart/includes/functions/fields/toggle-button.php:101
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-floating-cart/includes/functions/fields/toast-notification.php:91

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: Please describe screenshot #5 in addonify-floating-cart/assets to your readme.txt
The official readme.txt is a good inspiration

addonify-floating-cart/addonify-floating-cart.php 92% from 13 tests

The principal PHP file in "Addonify Floating Cart For WooCommerce" v. 1.2.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,744 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP347111,4443,715
JavaScript601018
JSON1006
CSS4025

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.33
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods66
▷ Static methods23.03%
▷ Public methods5583.33%
▷ Protected methods00.00%
▷ Private methods1116.67%
Functions69
▷ Named functions5985.51%
▷ Anonymous functions1014.49%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin