78% seon-fraud

Code Review | SEON for WooCommerce

WordPress plugin SEON for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: seon-fraud
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: May 29, 2018
  • Latest release: Jun 4, 2018
  • Number of updates: 19
  • Update frequency: every 2.4 days
  • Top authors: seontechnologies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /862 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼0.38ms] Passed 4 tests

An overview of server-side resources used by SEON for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.42 ▼1.89
Dashboard /wp-admin3.40 ▲0.1046.77 ▲1.88
Posts /wp-admin/edit.php3.51 ▲0.1555.99 ▲8.55
Add New Post /wp-admin/post-new.php6.01 ▲0.1194.57 ▼2.43
Media Library /wp-admin/upload.php3.32 ▲0.0935.74 ▲0.91
SEON API /wp-admin/options-general.php?page=seon-site-settings3.2933.48

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for SEON for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.69 ▼0.871.81 ▲0.1138.92 ▼4.87
Dashboard /wp-admin2,220 ▲285.90 ▲0.97107.74 ▼2.3542.80 ▼0.16
Posts /wp-admin/edit.php2,103 ▲142.03 ▲0.0238.91 ▲1.7434.62 ▲0.42
Add New Post /wp-admin/post-new.php1,526 ▲523.12 ▼0.05587.85 ▼70.0955.71 ▼1.83
Media Library /wp-admin/upload.php1,399 ▲144.23 ▲0.0598.04 ▼4.1040.31 ▼3.56
SEON API /wp-admin/options-general.php?page=seon-site-settings8232.0725.0424.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seon-fraud/includes/class-data.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=seon-site-settings
    • > Network (severe)
    wp-content/plugins/seon-fraud/assets/css/font-awesome.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% 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
3 plugin tags: fraud prevention, fraud, security

seon-fraud/seon.php 77% from 13 tests

"SEON for WooCommerce" version 1.0.0'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:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("seon-fraud.php" instead of "seon.php")

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
Good job! No executable or dangerous file extensions detected463 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5105179358
CSS10094
JavaScript321211

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.20
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ 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