89% wooctopus-flying-cart

Code Review | Flying Product to Mini Cart for WooCommerce

WordPress plugin Flying Product to Mini Cart for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wooctopus-flying-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2021
  • Latest release: Feb 20, 2021
  • Number of updates: 22
  • Update frequency: every 1.9 days
  • Top authors: navarroido (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /511 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.01MB] [CPU: ▼6.52ms] Passed 4 tests

This is a short check of server-side resources used by Flying Product to Mini Cart for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.73 ▼1.23
Dashboard /wp-admin3.31 ▲0.0143.96 ▼5.80
Posts /wp-admin/edit.php3.36 ▲0.0148.49 ▲0.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.08 ▼17.11
Media Library /wp-admin/upload.php3.23 ▲0.0134.52 ▼1.93

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Flying Product to Mini Cart for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15514.08 ▼0.297.92 ▲5.9239.97 ▼4.08
Dashboard /wp-admin2,227 ▲365.88 ▼0.02105.64 ▲0.3938.78 ▼3.40
Posts /wp-admin/edit.php2,107 ▲212.05 ▲0.0438.29 ▲0.5436.62 ▲4.79
Add New Post /wp-admin/post-new.php1,527 ▼617.60 ▼5.42697.05 ▼8.7554.38 ▼4.75
Media Library /wp-admin/upload.php1,409 ▲184.21 ▲0.0496.29 ▼4.6841.60 ▼0.27

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: cart, ajax cart, mini cart, add to cart

wooctopus-flying-cart/flying-product-to-mini-cart.php 85% from 13 tests

"Flying Product to Mini Cart for WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wooctopus-flying-cart.php" instead of "flying-product-to-mini-cart.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin59 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19131
PHP2153728

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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