10% woo-manage-fraud-orders

Code Review | Woo Manage Fraud Orders

WordPress plugin Woo Manage Fraud Orders scored10%from 54 tests.

About plugin

  • Plugin page: woo-manage-fraud-...
  • Plugin version: 2.6.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2018
  • Latest release: Nov 30, 2022
  • Number of updates: 69
  • Update frequency: every 25.4 days
  • Top authors: prasidhda (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

4,000+ active /50,778 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > User error in wp-content/plugins/woo-manage-fraud-orders/includes/class-woo-manage-fraud-orders.php+125

Server metrics [RAM: ▲0.31MB] [CPU: ▼0.22ms] Passed 4 tests

Server-side resources used by Woo Manage Fraud Orders
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4044.90 ▲2.53
Dashboard /wp-admin3.63 ▲0.3255.28 ▲1.11
Posts /wp-admin/edit.php3.70 ▲0.3457.59 ▲5.54
Add New Post /wp-admin/post-new.php6.17 ▲0.2894.29 ▼8.29
Media Library /wp-admin/upload.php3.51 ▲0.2840.51 ▲3.76
Fraud Attempt Logs /wp-admin/admin.php?page=wmfo-fraud-attempts-logs3.5042.22
Blocked Logs /wp-admin/admin.php?page=wmfo3.5040.64

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Manage Fraud Orders
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.76 ▲0.161.79 ▲0.1142.39 ▼1.32
Dashboard /wp-admin2,218 ▲385.52 ▼0.1086.34 ▼14.5039.09 ▼7.36
Posts /wp-admin/edit.php2,123 ▲201.99 ▲0.0341.33 ▲5.5037.02 ▲2.90
Add New Post /wp-admin/post-new.php1,545 ▲1923.52 ▲0.05707.62 ▲70.9555.37 ▼6.73
Media Library /wp-admin/upload.php1,423 ▲264.21 ▲0.03105.96 ▲4.7546.55 ▲0.31
Fraud Attempt Logs /wp-admin/admin.php?page=wmfo-fraud-attempts-logs9242.0027.9929.78
Blocked Logs /wp-admin/admin.php?page=wmfo9242.0023.9427.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_wmfo_fraud_attempts
    • wp_wmfo_logs
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-manage-fraud-orders/includes/admin/class-wmfo-settings-tab.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-manage-fraud-orders/includes/admin/class-wmfo-order-actions.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-manage-fraud-orders/includes/admin/class-wmfo-bulk-blacklist.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: blacklist customers, anti fraud orders, blacklist fraud customers, tracking fraud attempts, prevent fake orders

woo-manage-fraud-orders/woo-manage-fraud-orders.php 92% from 13 tests

The main PHP file in "Woo Manage Fraud Orders" ver. 2.6.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "2.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,641 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP163908141,641

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.29
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods86
▷ Static methods3439.53%
▷ Public methods7789.53%
▷ Protected methods66.98%
▷ Private methods33.49%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants7
▷ Global constants7100.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
There were not PNG files found in your plugin