78% woo-floating-minicart

Code Review | Woo Floating Minicart

WordPress plugin Woo Floating Minicart scored78%from 54 tests.

About plugin

  • Plugin page: woo-floating-mini...
  • Plugin version: 3.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: May 23, 2019
  • Number of updates: 45
  • Update frequency: every 26.9 days
  • Top authors: shivashankerbhatta (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /47,766 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.02ms] Passed 4 tests

A check of server-side resources used by Woo Floating Minicart
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.12 ▼7.09
Dashboard /wp-admin3.31 ▲0.0049.83 ▼1.29
Posts /wp-admin/edit.php3.36 ▲0.0052.33 ▲1.43
Add New Post /wp-admin/post-new.php5.89 ▲0.00102.04 ▼5.14
Media Library /wp-admin/upload.php3.23 ▲0.0036.75 ▲1.72

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Floating Minicart
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.58 ▼0.141.64 ▼0.3842.27 ▼2.05
Dashboard /wp-admin2,189 ▲125.59 ▼0.0791.82 ▼9.1441.75 ▼1.52
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0139.49 ▲1.1337.86 ▲4.95
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▼0.21603.63 ▼20.0868.42 ▲12.42
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.02101.93 ▼3.6647.22 ▲2.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-floating-minicart/aankha-woo-floating-minicart.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-floating-minicart/css/awfm-style-from-option.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: woocommerce addons, woo floating minicart, minicart, products, woocommerce...

woo-floating-minicart/aankha-woo-floating-minicart.php 92% from 13 tests

The primary PHP file in "Woo Floating Minicart" version 3.1.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-floating-minicart.php" instead of "aankha-woo-floating-minicart.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,414 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG100655
PHP5240175516
CSS22223234
JavaScript210109

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity13.00
▷ Minimum class complexity2.00
▷ Maximum class complexity33.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods842.11%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/basketg.png2.30KB1.77KB▼ 23.06%