99% oganro-dialog-ezcash

Code Review | Dialog Ez Cash Payment Gateway

WordPress plugin Dialog Ez Cash Payment Gateway scored 99% from 54 tests.

About plugin

  • Plugin page: oganro-dialog-ezcash
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8
  • WordPress version: 5.8.1
  • First release: Aug 24, 2015
  • Latest release: Jan 19, 2017
  • Number of updates: 34
  • Update frequency: every 22.7 days
  • Top authors: Oganro (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,468 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Dialog Ez Cash Payment Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1235.02 ▲5.12
Dashboard /wp-admin3.06 ▲0.0043.86 ▲14.13
Posts /wp-admin/edit.php3.11 ▲0.0046.88 ▲0.34
Add New Post /wp-admin/post-new.php5.42 ▼0.0194.51 ▼557.98
Media Library /wp-admin/upload.php3.00 ▼0.0131.87 ▼6.84

Server storage [IO: ▲0.24MB] [DB: ▲0.62MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Dialog Ez Cash Payment Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲5616.17 ▲0.636.83 ▼2.8546.12 ▼9.11
Dashboard /wp-admin2,973 ▲395.93 ▲0.02136.88 ▼8.66118.09 ▼4.31
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0163.48 ▼2.9985.40 ▼11.64
Add New Post /wp-admin/post-new.php1,672 ▼018.95 ▲0.29369.94 ▼12.09113.81 ▲3.90
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.04142.66 ▼7.09127.23 ▲0.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.62MB] 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 shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

oganro-dialog-ezcash/oganro-ezcash-wordpress.php 92% from 13 tests

This is the main PHP file of "Dialog Ez Cash Payment Gateway" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("oganro-dialog-ezcash.php" instead of "oganro-ezcash-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected336 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1858336

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
Functions4
▷ Named functions4100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ezcash.png1.87KB1.61KB▼ 14.05%