83% wompi-el-salvador

Code Review | Payment Integration Wompi - El Salvador

WordPress plugin Payment Integration Wompi - El Salvador scored83%from 54 tests.

About plugin

  • Plugin page: wompi-el-salvador
  • Plugin version: 1.2.7
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3+
  • WordPress version: 6.3.1
  • First release: Jul 31, 2020
  • Latest release: Oct 11, 2022
  • Number of updates: 22
  • Update frequency: every 36.5 days
  • Top authors: wompisv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /9,297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Payment Integration Wompi - El Salvador
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.68 ▲0.63
Dashboard /wp-admin3.31 ▲0.0150.46 ▼3.86
Posts /wp-admin/edit.php3.36 ▲0.0145.16 ▼3.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.06 ▼19.50
Media Library /wp-admin/upload.php3.23 ▲0.0138.24 ▲1.04

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Payment Integration Wompi - El Salvador
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.124.20 ▲2.2444.55 ▼2.35
Dashboard /wp-admin2,206 ▲185.85 ▲0.99100.88 ▼19.2341.21 ▼4.17
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0837.76 ▼0.0134.17 ▼1.49
Add New Post /wp-admin/post-new.php1,533 ▲1923.51 ▲5.90662.74 ▼5.5855.63 ▼5.01
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.01100.47 ▼1.5346.80 ▲1.22

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
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wompi-el-salvador/wc-WOMPI-payment-gateway.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/wompi-el-salvador/wc-WOMPI-payment.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
  • Tested up to: Invalid plugin version format
The official readme.txt might help

wompi-el-salvador/wc-WOMPI-payment-gateway.php 92% from 13 tests

The primary PHP file in "Payment Integration Wompi - El Salvador" version 1.2.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wompi-el-salvador.php" instead of "wc-WOMPI-payment-gateway.php")

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
Success! There were no dangerous files found in this plugin18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24155218

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity6.60
▷ Minimum method complexity3.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.79MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png643.63KB121.35KB▼ 81.15%
assets/banner-772x250.png47.70KB23.85KB▼ 50.01%
assets/images/wompi.png10.79KB4.13KB▼ 61.72%
assets/icon-256x256.png79.75KB14.47KB▼ 81.85%
assets/images/wompi2.png22.40KB22.45KB0.00%