83% ingenico-server-for-woocommerce

Code Review | Ingenico Server Integration Plugin

WordPress plugin Ingenico Server Integration Plugin scored83%from 54 tests.

About plugin

  • Plugin page: ingenico-server-f...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.8
  • WordPress version: 6.3.1
  • First release: Nov 16, 2021
  • Latest release: Nov 16, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: bigdotsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /287 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.01MB] [CPU: ▼4.31ms] Passed 4 tests

A check of server-side resources used by Ingenico Server Integration Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.85 ▲1.69
Dashboard /wp-admin3.32 ▲0.0146.03 ▼3.42
Posts /wp-admin/edit.php3.37 ▲0.0144.83 ▲0.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.16 ▼11.06
Media Library /wp-admin/upload.php3.24 ▲0.0132.66 ▼3.21
Ingenico Server /wp-admin/admin.php?page=ingenico-server-for-woocommerce3.1829.13

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
woocommerce_ingenico_server_config
can_compress_scripts
widget_recent-posts
recovery_mode_email_last_sent
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ingenico Server Integration Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.68 ▼0.0443.91 ▲4.14
Dashboard /wp-admin2,192 ▲155.50 ▼0.1082.00 ▼10.3038.47 ▼1.50
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0333.88 ▼4.6637.42 ▲2.71
Add New Post /wp-admin/post-new.php1,526 ▼023.23 ▼0.16654.12 ▲5.8756.84 ▲0.45
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.0694.54 ▼15.0443.00 ▼3.70
Ingenico Server /wp-admin/admin.php?page=ingenico-server-for-woocommerce7241.126.6723.91

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
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • woocommerce_ingenico_server_config
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=ingenico-server-for-woocommerce
    • > Error in wp-content/plugins/ingenico-server-for-woocommerce/ingenico-server-for-woocommerce.php+133
    Uncaught Error: Call to undefined function wc_get_orders() in wp-content/plugins/ingenico-server-for-woocommerce/ingenico-server-for-woocommerce.php:133
    Stack trace:
    #0 wp-content/plugins/ingenico-server-for-woocommerce/ingenico-server-for-woocommerce.php(499): Ingenico_Server_For_Woocommerce_Orders_Table->prepare_items()
    #1 wp-includes/class-wp-hook.php(310): ingenico_server_for_woocommerce_page()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

ingenico-server-for-woocommerce/ingenico-server-for-woocommerce.php 85% from 13 tests

The entry point to "Ingenico Server Integration Plugin" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/lang")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "4.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected443 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16074443

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin