89% f4-woocommerce-simple-checkout-fields

Code Review | F4 Simple Checkout Fields for WooCommerce

WordPress plugin F4 Simple Checkout Fields for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: f4-woocommerce-si...
  • Plugin version: 1.0.14
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 2, 2019
  • Latest release: Oct 18, 2023
  • Number of updates: 21
  • Update frequency: every 80.5 days
  • Top authors: faktorvier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,095 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
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.57ms] Passed 4 tests

This is a short check of server-side resources used by F4 Simple Checkout Fields for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1338.03 ▲0.84
Dashboard /wp-admin3.43 ▲0.0852.76 ▼11.47
Posts /wp-admin/edit.php3.55 ▲0.1949.37 ▲1.75
Add New Post /wp-admin/post-new.php6.02 ▲0.1384.62 ▼6.65
Media Library /wp-admin/upload.php3.36 ▲0.1235.33 ▼1.00

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

F4 Simple Checkout Fields for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.071.63 ▼0.0541.37 ▼0.44
Dashboard /wp-admin2,192 ▲145.51 ▼0.1787.03 ▼25.1142.42 ▼5.82
Posts /wp-admin/edit.php2,097 ▼02.02 ▼0.0239.28 ▲3.9137.11 ▲3.31
Add New Post /wp-admin/post-new.php1,535 ▲917.91 ▼5.56625.46 ▼69.7678.58 ▲19.28
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0094.06 ▼17.6640.07 ▼10.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

f4-woocommerce-simple-checkout-fields/f4-woocommerce-simple-checkout-fields.php 92% from 13 tests

The entry point to "F4 Simple Checkout Fields for WooCommerce" version 1.0.14 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected781 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3178294781

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity65.50
▷ Minimum class complexity61.00
▷ Maximum class complexity70.00
Average method complexity5.16
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods31100.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants8
▷ Global constants8100.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