84% oceanpayment-oxxo-gateway

Code Review | Oceanpayment OXXO Gateway

WordPress plugin Oceanpayment OXXO Gateway scored84%from 54 tests.

About plugin

  • Plugin page: oceanpayment-oxxo...
  • Plugin version: 6.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2022
  • Latest release: Apr 28, 2023
  • Number of updates: 8
  • Update frequency: every 15.0 days
  • Top authors: oceanpayment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /214 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Oceanpayment OXXO Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.69 ▼2.06
Dashboard /wp-admin3.31 ▲0.0150.69 ▼4.54
Posts /wp-admin/edit.php3.36 ▲0.0051.36 ▲0.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.07 ▼2.07
Media Library /wp-admin/upload.php3.23 ▲0.0039.79 ▲4.41

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 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 Oceanpayment OXXO Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.461.54 ▼0.1940.49 ▼1.82
Dashboard /wp-admin2,206 ▲185.89 ▲1.07107.61 ▼5.5242.88 ▼0.69
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0441.26 ▲0.8335.45 ▼10.04
Add New Post /wp-admin/post-new.php1,543 ▲2418.34 ▼4.85625.61 ▲22.0349.90 ▼16.36
Media Library /wp-admin/upload.php1,391 ▲64.25 ▲0.12103.86 ▲1.6244.11 ▼4.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/oceanpayment-oxxo-gateway/oceanoxxo.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: payment

oceanpayment-oxxo-gateway/oceanoxxo.php 92% from 13 tests

The main file in "Oceanpayment OXXO Gateway" v. 6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("oceanpayment-oxxo-gateway.php" instead of "oceanoxxo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected548 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2137187548

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity66.00
▷ Minimum class complexity66.00
▷ Maximum class complexity66.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There were not PNG files found in your plugin