89% woo-fly-cart

Code Review | WPC Fly Cart for WooCommerce

WordPress plugin WPC Fly Cart for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woo-fly-cart
  • Plugin version: 5.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: May 25, 2017
  • Latest release: Nov 16, 2023
  • Number of updates: 196
  • Update frequency: every 12.1 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

55 reviews

Install metrics

10,000+ active /569,216 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.43MB] [CPU: ▼0.92ms] Passed 4 tests

Server-side resources used by WPC Fly Cart for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4334.63 ▼6.53
Dashboard /wp-admin3.73 ▲0.4246.04 ▲1.13
Posts /wp-admin/edit.php3.85 ▲0.4949.37 ▲1.69
Add New Post /wp-admin/post-new.php6.33 ▲0.44102.60 ▲0.03
Media Library /wp-admin/upload.php3.66 ▲0.4236.30 ▲7.08
About /wp-admin/admin.php?page=wpclever3.6231.18
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.6230.80

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WPC Fly Cart for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲8014.67 ▲0.311.54 ▼0.4338.12 ▼4.11
Dashboard /wp-admin2,272 ▲955.55 ▼0.0692.35 ▼4.0985.83 ▲45.14
Posts /wp-admin/edit.php2,178 ▲752.00 ▼0.1337.17 ▼0.5333.86 ▼4.02
Add New Post /wp-admin/post-new.php1,753 ▲22421.10 ▼2.05693.96 ▲22.8066.68 ▲12.58
Media Library /wp-admin/upload.php1,468 ▲684.19 ▼0.0298.63 ▲0.4269.89 ▲28.91
About /wp-admin/admin.php?page=wpclever1,4062.2330.5034.17
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7322.1336.0162.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • 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
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in woo-fly-cart/assets to your readme.txt
You can look at the official readme.txt

woo-fly-cart/wpc-fly-cart.php 92% from 13 tests

"WPC Fly Cart for WooCommerce" version 5.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-fly-cart.php" instead of "wpc-fly-cart.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin14,632 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
CSS139082284,892
JavaScript117493294,025
PO File161,4621,7583,638
PHP5251481,914
SVG300163

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity46.20
▷ Minimum class complexity1.00
▷ Maximum class complexity180.00
Average method complexity6.14
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods613.64%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin