90% woo-force-authentification-before-checkout

Code Review | Force Authentification Before Checkout for WooCommerce

WordPress plugin Force Authentification Before Checkout for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-force-authent...
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: Jul 18, 2018
  • Latest release: Nov 19, 2023
  • Number of updates: 18
  • Update frequency: every 108.3 days
  • Top authors: luizbills (100%)

Code review

54 tests

User reviews

41 reviews

Install metrics

8,000+ active /55,012 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.87ms] Passed 4 tests

This is a short check of server-side resources used by Force Authentification Before Checkout for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.08 ▼3.47
Dashboard /wp-admin3.33 ▼0.0147.69 ▼10.90
Posts /wp-admin/edit.php3.39 ▲0.0348.87 ▲0.75
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.78 ▼8.26
Media Library /wp-admin/upload.php3.26 ▲0.0334.00 ▼0.85

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Force Authentification Before Checkout for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.34 ▼0.371.74 ▼0.0544.11 ▼1.43
Dashboard /wp-admin2,204 ▲305.57 ▼0.0590.50 ▼10.4242.62 ▼3.26
Posts /wp-admin/edit.php2,107 ▲41.95 ▼0.0440.46 ▲0.6237.37 ▲1.29
Add New Post /wp-admin/post-new.php1,532 ▲423.21 ▲0.32654.13 ▼8.5454.45 ▲3.47
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.01100.35 ▲1.7941.87 ▼2.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: force, cart, woocommerce, register, before...

woo-force-authentification-before-checkout/woo-force-authentification-before-checkout.php 92% from 13 tests

The principal PHP file in "Force Authentification Before Checkout for WooCommerce" v. 1.4.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin185 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13012145
PO File19940

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods317.65%
▷ Public methods1270.59%
▷ Protected methods529.41%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin