79% woo-paydesign

Code Review | metaps PAYMENT for WooCommerce

WordPress plugin metaps PAYMENT for WooCommerce scored79%from 54 tests.

About plugin

  • Plugin page: woo-paydesign
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2.0
  • WordPress version: 6.3.1
  • First release: May 20, 2016
  • Latest release: May 15, 2023
  • Number of updates: 103
  • Update frequency: every 24.9 days
  • Top authors: shohei.tanaka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /5,908 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by metaps PAYMENT for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.86 ▼4.54
Dashboard /wp-admin3.31 ▲0.0151.14 ▲2.38
Posts /wp-admin/edit.php3.36 ▲0.0052.69 ▲0.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.05 ▲0.22
Media Library /wp-admin/upload.php3.23 ▲0.0036.93 ▼0.05

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

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

Browser metrics Passed 4 tests

A check of browser resources used by metaps PAYMENT for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.34 ▼0.011.72 ▲0.0944.51 ▲3.02
Dashboard /wp-admin2,209 ▲325.59 ▼0.0889.76 ▼3.4044.51 ▼3.85
Posts /wp-admin/edit.php2,112 ▲121.95 ▼0.0740.21 ▼0.7539.21 ▲3.69
Add New Post /wp-admin/post-new.php1,537 ▲223.34 ▲5.16653.89 ▲31.2849.85 ▼13.26
Media Library /wp-admin/upload.php1,414 ▲204.19 ▲0.03101.79 ▼11.6645.77 ▼3.41

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woo-paydesign/notice-url.php
    • > /wp-content/plugins/woo-paydesign/includes/gateways/paydesign/empty.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-paydesign/includes/admin/views/html-admin-info-screen.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-paydesign/includes/admin/views/html-admin-setting-screen.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/woo-paydesign/includes/admin/views/html-admin-screen.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: japanese, e-commerce, ecommerce, woocommerce

woo-paydesign/woo-paydesign.php Passed 13 tests

The principal PHP file in "metaps PAYMENT for WooCommerce" v. 1.3.0 is loaded by WordPress automatically on each request
66 characters long description:
metaps PAYMENT (before PAYDESIGN) gateway payment for WooCommerce.

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
There were no executable files found in this plugin3,110 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP183461,0852,793
Sass140160
CSS1124155
JavaScript1112

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity32.18
▷ Minimum class complexity12.00
▷ Maximum class complexity70.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods123
▷ Static methods21.63%
▷ Public methods10786.99%
▷ Protected methods97.32%
▷ Private methods75.69%
Functions25
▷ Named functions2392.00%
▷ Anonymous functions28.00%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.38MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/gateways/paydesign/asset/images/gmopg-cards-a-j.png48.71KB1.46KB▼ 97.00%
assets/images/woo-logo.png19.97KB7.37KB▼ 63.08%
includes/gateways/paydesign/asset/images/gmopg-cards-v-m-d.png53.98KB2.24KB▼ 95.86%
includes/gateways/paydesign/asset/images/gmopg-cards-d-a-j.png51.08KB1.81KB▼ 96.46%
includes/gateways/paydesign/asset/images/gmopg-cards-d.png48.97KB1.24KB▼ 97.46%