WordPress plugin Fraud Prevention For Woocommerce scored88%from 54 tests.

About plugin

  • Plugin page: woo-blocker-lite-...
  • Plugin version: 2.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 23, 2016
  • Latest release: Aug 21, 2023
  • Number of updates: 190
  • Update frequency: every 13.3 days
  • Top authors: dots (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

4,000+ active /78,921 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by Fraud Prevention For Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.78 ▼3.90
Dashboard /wp-admin3.31 ▲0.0147.29 ▼1.64
Posts /wp-admin/edit.php3.36 ▲0.0050.76 ▼0.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.77 ▼14.29
Media Library /wp-admin/upload.php3.24 ▲0.0039.58 ▲5.34

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 288 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
can_compress_scripts
fs_accounts
widget_theysaidso_widget
fs_active_plugins
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
fs_debug_mode

Browser metrics Passed 4 tests

An overview of browser requirements for Fraud Prevention For Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5313.53 ▼1.134.47 ▲2.8341.65 ▼3.92
Dashboard /wp-admin2,198 ▲185.57 ▼0.0295.63 ▼1.1246.99 ▲7.02
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0238.46 ▼0.7534.71 ▼0.57
Add New Post /wp-admin/post-new.php1,536 ▲422.93 ▼0.16663.72 ▲28.0351.38 ▼11.77
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.10117.08 ▲10.1648.66 ▲2.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • fs_accounts
    • widget_recent-comments
    • can_compress_scripts
    • fs_debug_mode
    • fs_active_plugins
    • 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
Even though no errors were found, 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 errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Add an image for screenshot #6 (Block user by firstname)
Please take inspiration from this readme.txt

woo-blocker-lite-prevent-fake-orders-and-blacklist-fraud-customers/woocommerce-blocker.php 77% from 13 tests

This is the main PHP file of "Fraud Prevention For Woocommerce" version 2.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-blocker-lite-prevent-fake-orders-and-blacklist-fraud-customers.php" instead of "woocommerce-blocker.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.1" instead of "3.0")
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin44,254 lines of code in 179 files:
LanguageFilesBlank linesComment linesLines of code
PHP1418,45218,11338,727
CSS23280642,404
PO File14115811,373
JavaScript10106105911
SVG300692
XML11219147

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity89.75
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.79
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes56
▷ Abstract classes23.57%
▷ Concrete classes5496.43%
▷ Final classes00.00%
Methods1,343
▷ Static methods20114.97%
▷ Public methods94170.07%
▷ Protected methods171.27%
▷ Private methods38528.67%
Functions114
▷ Named functions11399.12%
▷ Anonymous functions10.88%
Constants151
▷ Global constants10468.87%
▷ Class constants4731.13%
▷ Public constants47100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
50 PNG files occupy 3.51MB with 1.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/thedotstore-images/screenshots/Custom-style.png270.00KB63.43KB▼ 76.51%
admin/images/thedotstore-images/popular-plugins/Enhanced-Ecommerce-Google-Analytics-For-WooCommerce.png5.10KB5.15KB0.00%
admin/images/thedotstore-images/check-mark.png0.68KB0.48KB▼ 28.57%
images/Getting_Started_03.png38.73KB14.49KB▼ 62.58%
admin/images/thedotstore-images/popular-plugins/wcbm-logo.png3.00KB3.00KB0.10%