83% gestpay-for-woocommerce

Code Review | Gestpay for WooCommerce

WordPress plugin Gestpay for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: gestpay-for-wooco...
  • Plugin version: 20221130...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 22, 2017
  • Latest release: May 25, 2023
  • Number of updates: 57
  • Update frequency: every 40.0 days
  • Top authors: easynolo (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /24,667 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.28MB] [CPU: ▼0.02ms] Passed 4 tests

Server-side resources used by Gestpay for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2838.71 ▲1.49
Dashboard /wp-admin3.58 ▲0.2747.74 ▼1.31
Posts /wp-admin/edit.php3.69 ▲0.3450.82 ▲4.40
Add New Post /wp-admin/post-new.php6.16 ▲0.2785.24 ▼4.66
Media Library /wp-admin/upload.php3.50 ▲0.2739.19 ▲7.01

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gestpay for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.21 ▼0.061.73 ▼0.0635.98 ▼4.08
Dashboard /wp-admin2,203 ▲265.52 ▼0.1384.70 ▼5.1838.86 ▲0.94
Posts /wp-admin/edit.php2,114 ▲111.94 ▼0.0935.35 ▼1.9537.91 ▲1.28
Add New Post /wp-admin/post-new.php1,378 ▼15817.29 ▼1.16531.15 ▼102.3483.68 ▲21.29
Media Library /wp-admin/upload.php1,411 ▲114.14 ▼0.04102.39 ▼2.0142.73 ▼2.27

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gestpay-for-woocommerce/inc/gestpay-pro-payment-types.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt might help

gestpay-for-woocommerce/gestpay-for-woocommerce.php 85% from 13 tests

"Gestpay for WooCommerce" version 20221130...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0.1" instead of "3.0")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "20221130...")

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
No dangerous file extensions were detected4,525 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP251,2341,2984,103
CSS23010207
PO File1670148
JavaScript2122837
SVG15030

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity29.78
▷ Minimum class complexity1.00
▷ Maximum class complexity130.00
Average method complexity4.34
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods155
▷ Static methods2918.71%
▷ Public methods13587.10%
▷ Protected methods00.00%
▷ Private methods2012.90%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/delete.png0.20KB0.22KB0.00%
images/unchecked.png3.13KB0.83KB▼ 73.67%
images/MyBank_logo_positive.png6.46KB3.91KB▼ 39.46%
images/gestpay-logo.png2.02KB1.34KB▼ 33.72%
images/checked.png3.51KB1.07KB▼ 69.62%