89% floating-cart-woocommerce

Code Review | Floating Cart Woocommerce

WordPress plugin Floating Cart Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: floating-cart-woo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7
  • WordPress version: 6.3.1
  • First release: Dec 26, 2016
  • Latest release: Dec 26, 2016
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: naieemsupto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,120 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.63ms] Passed 4 tests

Server-side resources used by Floating Cart Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.48 ▼6.67
Dashboard /wp-admin3.34 ▲0.0445.69 ▼0.88
Posts /wp-admin/edit.php3.39 ▲0.0343.31 ▼6.83
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.95 ▼24.15
Media Library /wp-admin/upload.php3.26 ▲0.0334.82 ▼0.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Floating Cart Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,009 ▲26313.81 ▼0.878.20 ▲6.4541.05 ▼4.34
Dashboard /wp-admin2,209 ▲244.86 ▲0.01102.49 ▼5.8439.12 ▲0.38
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0134.87 ▼4.8933.60 ▼0.03
Add New Post /wp-admin/post-new.php1,533 ▲1923.42 ▲5.87622.48 ▼67.1255.02 ▼3.05
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.02103.04 ▼12.3145.46 ▼0.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: ecommerce, custom, drag and drop, floating, e-commerce...

floating-cart-woocommerce/woocommerce-floating-cart.php 85% from 13 tests

"Floating Cart Woocommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("floating-cart-woocommerce.php" instead of "woocommerce-floating-cart.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected5,409 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS325192,510
PHP34072127
JavaScript12018101

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.50
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png46.81KB17.41KB▼ 62.80%
assets/screenshot-2.png55.13KB20.17KB▼ 63.43%
assets/screenshot-3.png47.50KB17.39KB▼ 63.39%