84% woocommerce-paystand

Code Review | PayStand for WooCommerce

WordPress plugin PayStand for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-paystand
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0.1
  • WordPress version: 6.3.1
  • First release: Jul 31, 2014
  • Latest release: Dec 9, 2014
  • Number of updates: 21
  • Update frequency: every 6.3 days
  • Top authors: paystand (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,356 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼4.43ms] Passed 4 tests

An overview of server-side resources used by PayStand for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.80 ▼4.02
Dashboard /wp-admin3.31 ▼0.0352.11 ▼13.59
Posts /wp-admin/edit.php3.36 ▲0.0154.44 ▲4.79
Add New Post /wp-admin/post-new.php5.89 ▲0.01101.81 ▼4.35
Media Library /wp-admin/upload.php3.23 ▲0.0138.80 ▲4.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for PayStand for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.26 ▼0.072.00 ▲0.1142.28 ▲1.11
Dashboard /wp-admin2,192 ▲125.55 ▼0.1487.97 ▼4.0040.43 ▼3.20
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0039.51 ▲0.7535.98 ▲3.04
Add New Post /wp-admin/post-new.php1,554 ▲2318.22 ▼4.84612.06 ▼74.3750.40 ▼7.29
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.02102.30 ▼8.3746.45 ▲0.75

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woocommerce-paystand/woocommerce-paystand.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: echeck, ach, bitcoin, woocommerce, payment...

woocommerce-paystand/woocommerce-paystand.php Passed 13 tests

The entry point to "PayStand for WooCommerce" version 1.0.3 is a PHP file that has certain tags in its header comment area
45 characters long description:
Adds PayStand payment gateway to WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected593 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2103122593

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity6.50
▷ Minimum method complexity2.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/paystand_logo_small.png3.42KB1.91KB▼ 44.23%
images/paystand_logo_banner.png261.45KB70.04KB▼ 73.21%