84% woo-satispay

Code Review | WooCommerce Satispay

WordPress plugin WooCommerce Satispay scored84%from 54 tests.

About plugin

  • Plugin page: woo-satispay
  • Plugin version: 2.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 22, 2017
  • Latest release: Nov 20, 2023
  • Number of updates: 133
  • Update frequency: every 18.0 days
  • Top authors: satispay (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

7,000+ active /51,093 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.05ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Satispay
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.36 ▼5.04
Dashboard /wp-admin3.31 ▲0.0145.25 ▼8.17
Posts /wp-admin/edit.php3.36 ▲0.0147.77 ▼1.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.43 ▼5.06
Media Library /wp-admin/upload.php3.23 ▲0.0035.96 ▲3.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Satispay
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲3914.34 ▼0.371.85 ▲0.2238.55 ▼8.31
Dashboard /wp-admin2,195 ▲185.52 ▼0.0798.52 ▲5.2241.62 ▼10.50
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0840.75 ▼3.9838.39 ▲0.17
Add New Post /wp-admin/post-new.php1,526 ▼223.51 ▲0.27593.88 ▼40.9747.50 ▼6.35
Media Library /wp-admin/upload.php1,397 ▼04.13 ▼0.0597.25 ▼0.4542.41 ▲0.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-satispay/woo-satispay.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: woocommerce, payment method, satispay

woo-satispay/woo-satispay.php 92% from 13 tests

The primary PHP file in "WooCommerce Satispay" version 2.1.9 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "3.4.0")

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 detected635 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7116225614
SVG10021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.33
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods39
▷ Static methods2871.79%
▷ Public methods3487.18%
▷ Protected methods00.00%
▷ Private methods512.82%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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