100% iswipe-payment-gateway

Code Review | iswipe payment gateway

WordPress plugin iswipe payment gateway scored 100% from 54 tests.

About plugin

  • Plugin page: iswipe-payment-ga...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 5.8.1
  • First release: Jun 11, 2018
  • Latest release: Jul 2, 2018
  • Number of updates: 11
  • Update frequency: every 2.1 days
  • Top authors: bestkid (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active / 505 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼171.42ms] Passed 4 tests

Analyzing server-side resources used by iswipe payment gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1632.64 ▲4.12
Dashboard /wp-admin3.10 ▲0.0451.51 ▲1.79
Posts /wp-admin/edit.php3.15 ▲0.0446.91 ▼1.19
Add New Post /wp-admin/post-new.php5.46 ▲0.0283.35 ▼690.41
Media Library /wp-admin/upload.php3.04 ▲0.0432.45 ▲4.85

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

iswipe payment gateway: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.94 ▲0.258.51 ▼2.2546.78 ▲0.30
Dashboard /wp-admin2,970 ▲395.86 ▼0.13135.77 ▼10.32118.40 ▲15.07
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.1363.11 ▼0.3684.48 ▼2.30
Add New Post /wp-admin/post-new.php1,672 ▼20018.89 ▼0.25366.72 ▼10.66105.69 ▲1.32
Media Library /wp-admin/upload.php1,748 ▼625.00 ▼0.04147.82 ▼0.16119.55 ▲0.63

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 shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: automatic cryptocurrency exchange, crypto payments, bitcoin cash, dash, bitcoin...

iswipe-payment-gateway/iswipe-payment.php 92% from 13 tests

Analyzing the main PHP file in "iswipe payment gateway" version 1.2.0
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("iswipe-payment-gateway.php" instead of "iswipe-payment.php")

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
Success! There were no dangerous files found in this plugin264 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP13834172
PO File1151549
CSS11339
JavaScript1003
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.46MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png89.75KB35.69KB▼ 60.23%
screenshot-2.png114.87KB46.28KB▼ 59.71%
screenshot-5.png91.43KB33.98KB▼ 62.83%
screenshot-1.png76.97KB29.98KB▼ 61.05%
screenshot-3.png98.50KB40.33KB▼ 59.06%