90% woo-payping-gateway

Code Review | Gateway for PayPing on WooCommerce

WordPress plugin Gateway for PayPing on WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-payping-gateway
  • Plugin version: 4.3.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2019
  • Latest release: Aug 5, 2023
  • Number of updates: 34
  • Update frequency: every 47.6 days
  • Top authors: mashhadcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /13,811 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.09MB] [CPU: ▼5.52ms] Passed 4 tests

An overview of server-side resources used by Gateway for PayPing on WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.40 ▼8.43
Dashboard /wp-admin3.39 ▲0.0952.88 ▲4.89
Posts /wp-admin/edit.php3.44 ▲0.0949.47 ▼1.77
Add New Post /wp-admin/post-new.php5.97 ▲0.0989.73 ▼8.78
Media Library /wp-admin/upload.php3.32 ▲0.0934.61 ▼3.11

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Gateway for PayPing on WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.78 ▲0.581.75 ▼0.3143.67 ▼0.29
Dashboard /wp-admin2,206 ▲185.85 ▲0.97103.78 ▼5.6239.09 ▼2.04
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0136.39 ▼3.5434.10 ▼2.12
Add New Post /wp-admin/post-new.php1,533 ▼123.18 ▼0.01666.16 ▲56.6752.04 ▼4.13
Media Library /wp-admin/upload.php1,391 ▲64.18 ▲0.02103.98 ▼0.0544.66 ▲0.34

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: iran, persian, woocommerce, pay ping, payment...

woo-payping-gateway/index.php 92% from 13 tests

The main PHP script in "Gateway for PayPing on WooCommerce" version 4.3.0 is automatically included on every request by 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 ("woo-payping-gateway.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin530 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25524440
JavaScript14246
CSS15044

PHP code Passed 2 tests

Analyzing 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.27
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity6.89
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png0.51KB0.35KB▼ 31.54%
screenshot-1.png34.01KB19.62KB▼ 42.30%
screenshot-2.png18.06KB11.44KB▼ 36.67%