83% gest-online-wc

Code Review | Gest.online for WooCommerce

WordPress plugin Gest.online for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: gest-online-wc
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-5.8
  • WordPress version: 6.3.1
  • First release: Feb 9, 2021
  • Latest release: Apr 12, 2022
  • Number of updates: 17
  • Update frequency: every 28.0 days
  • Top authors: optanex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /589 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼5.60ms] Passed 4 tests

A check of server-side resources used by Gest.online for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2839.67 ▲2.38
Dashboard /wp-admin3.56 ▲0.2147.86 ▼7.93
Posts /wp-admin/edit.php3.67 ▲0.3146.02 ▲2.14
Add New Post /wp-admin/post-new.php6.14 ▲0.2586.75 ▼18.98
Media Library /wp-admin/upload.php3.48 ▲0.2537.08 ▲5.76

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Gest.online for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼0.941.69 ▲0.1142.66 ▲0.47
Dashboard /wp-admin2,203 ▲154.87 ▼1.04107.71 ▲6.9642.16 ▲2.11
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0133.56 ▼4.2536.08 ▲2.03
Add New Post /wp-admin/post-new.php1,536 ▲223.22 ▲0.03633.31 ▲3.4048.09 ▼0.34
Media Library /wp-admin/upload.php1,385 ▼04.19 ▼0.01100.34 ▼1.8041.82 ▼1.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gest-online-wc/inc/ajax.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gest-online-wc/woo-gestonline.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gest-online-wc/inc/woocommerce.php:7

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

gest-online-wc/woo-gestonline.php 77% from 13 tests

"Gest.online for WooCommerce" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gest-online-wc.php" instead of "woo-gestonline.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.8.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 detected1,899 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP74152181,795
PO File1333589
SVG10115

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity44.25
▷ Minimum class complexity16.00
▷ Maximum class complexity58.00
Average method complexity9.65
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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