90% payment-gateway-through-unifiedpost

Code Review | Payment Gateway through Unifiedpost

WordPress plugin Payment Gateway through Unifiedpost scored90%from 54 tests.

About plugin

  • Plugin page: payment-gateway-t...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2023
  • Latest release: Feb 16, 2023
  • Number of updates: 16
  • Update frequency: every 1.4 days
  • Top authors: pceyssens (81.25%)antondrob2 (25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /158 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Payment Gateway through Unifiedpost
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.34 ▼12.95
Dashboard /wp-admin3.32 ▲0.0146.80 ▼1.25
Posts /wp-admin/edit.php3.37 ▲0.0149.06 ▲5.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.53 ▲10.54
Media Library /wp-admin/upload.php3.24 ▲0.0134.82 ▲2.91

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Payment Gateway through Unifiedpost
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.25 ▼1.501.55 ▼0.4237.70 ▼5.20
Dashboard /wp-admin2,214 ▲295.90 ▲1.02109.72 ▼4.8643.56 ▲0.42
Posts /wp-admin/edit.php2,096 ▲102.00 ▲0.0140.58 ▲4.2136.44 ▲2.56
Add New Post /wp-admin/post-new.php1,545 ▲1223.37 ▲0.47596.16 ▼15.9449.41 ▼3.24
Media Library /wp-admin/upload.php1,393 ▲54.21 ▼0.0499.65 ▲4.2943.15 ▲1.16

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce, payment, gateway, unifiedpost

payment-gateway-through-unifiedpost/payment-gateway-through-unifiedpost.php Passed 13 tests

Analyzing the main PHP file in "Payment Gateway through Unifiedpost" version 1.0.0
85 characters long description:
Smart business payment solutions that allow your business to pay and get paid on time

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
No dangerous file extensions were detected215 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24519215

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity8.00
▷ Minimum class complexity3.00
▷ Maximum class complexity13.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png5.46KB2.59KB▼ 52.44%