89% oganro-ipg-for-enets

Code Review | eNets Bank Payment Gateway by Oganro

WordPress plugin eNets Bank Payment Gateway by Oganro scored89%from 54 tests.

About plugin

  • Plugin page: oganro-ipg-for-enets
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8
  • WordPress version: 6.3.1
  • First release: Feb 7, 2017
  • Latest release: Feb 8, 2017
  • Number of updates: 4
  • Update frequency: every 58.2 days
  • Top authors: Oganro (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,200 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by eNets Bank Payment Gateway by Oganro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.19 ▼8.53
Dashboard /wp-admin3.31 ▼0.0448.58 ▼17.88
Posts /wp-admin/edit.php3.36 ▲0.0050.11 ▲3.06
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.72 ▲0.88
Media Library /wp-admin/upload.php3.23 ▲0.0036.03 ▲5.43

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for eNets Bank Payment Gateway by Oganro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.41 ▼0.241.63 ▼0.1740.30 ▼5.64
Dashboard /wp-admin2,192 ▲215.55 ▼0.0289.84 ▼5.2241.88 ▲1.38
Posts /wp-admin/edit.php2,100 ▼01.96 ▲0.0040.61 ▲1.1335.76 ▼3.09
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▼0.45610.36 ▼44.8961.21 ▲18.04
Media Library /wp-admin/upload.php1,403 ▼04.11 ▼0.07101.45 ▼0.2743.37 ▲1.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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:
  • Donate link: Invalid URI found ("")
  • Screenshots: Screenshot #4 (Displayed above are the "Checkout Page" payment options, inclusive of eNets IPG, offered to users for selection.) image missing
The official readme.txt is a good inspiration

oganro-ipg-for-enets/enets-payment-gateway.php 92% from 13 tests

"eNets Bank Payment Gateway by Oganro" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("oganro-ipg-for-enets.php" instead of "enets-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
There were no executable files found in this plugin311 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17423311

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
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
enets.png5.67KB2.29KB▼ 59.67%