WordPress plugin M1Pay Gateway scored 100% from 54 tests.

About plugin

  • Plugin page: m-one-pay-payment...
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.3
  • WordPress version: 5.9.2
  • First release: Jan 29, 2020
  • Latest release: Jan 12, 2022
  • Number of updates: 19
  • Update frequency: every 37.6 days
  • Top authors: mobilityone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 379 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼311.81ms] Passed 4 tests

An overview of server-side resources used by M1Pay Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0683.51 ▲32.94
Dashboard /wp-admin3.46 ▲0.0535.03 ▼0.11
Posts /wp-admin/edit.php3.69 ▲0.0539.36 ▲2.59
Add New Post /wp-admin/post-new.php6.93 ▼0.0495.81 ▼1,249.50
Media Library /wp-admin/upload.php3.34 ▲0.0524.73 ▼0.22

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for M1Pay Gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5315.90 ▲0.366.34 ▲0.713.90 ▲1.98
Dashboard /wp-admin2,885 ▲276.12 ▼0.10121.20 ▼13.51162.03 ▼2.07
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0063.36 ▼1.62145.01 ▲3.54
Add New Post /wp-admin/post-new.php1,711 ▼020.82 ▼0.72422.93 ▼2.23164.12 ▲10.19
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.02134.17 ▼6.57183.90 ▼6.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: gateway, m1pay

m-one-pay-payment-gateway-for-woo-commerce/m1pay-gateway.php 92% from 13 tests

Analyzing the main PHP file in "M1Pay Gateway" version 1.5
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("m-one-pay-payment-gateway-for-woo-commerce.php" instead of "m1pay-gateway.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
Success! There were no dangerous files found in this plugin310 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32316310

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/m1pay.png2.50KB2.03KB▼ 18.95%