99% woo-paypax

Code Review | Paypax Woocommerce Gateway

WordPress plugin Paypax Woocommerce Gateway scored 99% from 54 tests.

About plugin

  • Plugin page: woo-paypax
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0+
  • WordPress version: 5.8.1
  • First release: Nov 11, 2018
  • Latest release: Nov 11, 2018
  • Number of updates: 4
  • Update frequency: every 7.5 days
  • Top authors: ttrasn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,725 total downloads

Benchmarks

Plugin footprint Passed 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: ▼144.74ms] Passed 4 tests

An overview of server-side resources used by Paypax Woocommerce Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0034.26 ▲7.36
Dashboard /wp-admin3.06 ▼0.0038.13 ▼3.66
Posts /wp-admin/edit.php3.11 ▲0.0030.29 ▼4.60
Add New Post /wp-admin/post-new.php5.42 ▼0.0272.88 ▼572.67
Media Library /wp-admin/upload.php3.00 ▲0.0025.01 ▲1.96

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Paypax Woocommerce Gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6516.00 ▼0.024.80 ▼3.7975.44 ▼6.37
Dashboard /wp-admin2,930 ▲346.10 ▼0.08113.79 ▼29.20164.55 ▼39.18
Posts /wp-admin/edit.php2,740 ▼33.11 ▼0.1262.64 ▼4.39132.11 ▼9.03
Add New Post /wp-admin/post-new.php3,699 ▼3618.15 ▲0.24409.90 ▼23.69158.05 ▼3.33
Media Library /wp-admin/upload.php1,749 ▼35.49 ▲0.01140.89 ▼15.10177.68 ▼6.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

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

Analyzing the main PHP file in "Paypax Woocommerce Gateway" version 1.0.0
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin321 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13177226
PO File1333395

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png11.58KB5.80KB▼ 49.89%