83% dolyame-payment

Code Review | Dolyame Payment gateway

WordPress plugin Dolyame Payment gateway scored83%from 54 tests.

About plugin

  • Plugin page: dolyame-payment
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Nov 23, 2021
  • Latest release: Jun 17, 2023
  • Number of updates: 21
  • Update frequency: every 27.2 days
  • Top authors: dolyame (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /2,738 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Dolyame Payment gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.41 ▼1.66
Dashboard /wp-admin3.32 ▼0.0347.27 ▼19.59
Posts /wp-admin/edit.php3.37 ▲0.0142.77 ▼4.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.00 ▼14.48
Media Library /wp-admin/upload.php3.24 ▲0.0132.39 ▼0.18

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Dolyame Payment gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.07 ▼0.581.73 ▼0.0344.82 ▼0.03
Dashboard /wp-admin2,198 ▲215.62 ▼0.0387.71 ▲3.9041.99 ▼2.54
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0136.39 ▲2.0434.26 ▲1.13
Add New Post /wp-admin/post-new.php1,526 ▼223.47 ▼0.02678.78 ▼8.4355.51 ▼13.15
Media Library /wp-admin/upload.php1,400 ▼04.23 ▼0.0293.63 ▼4.9844.30 ▼1.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
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 get_option() in wp-content/plugins/dolyame-payment/dolyme_payment.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in dolyame-payment/assets to your readme.txt
The official readme.txt might help

dolyame-payment/dolyme_payment.php 85% from 13 tests

The primary PHP file in "Dolyame Payment gateway" version 2.1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dolyame-payment.php" instead of "dolyme_payment.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Good job! No executable or dangerous file extensions detected870 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP311458754
PO File15256116

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity28.00
▷ Minimum class complexity10.00
▷ Maximum class complexity38.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods2261.11%
▷ Protected methods513.89%
▷ Private methods925.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.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
No PNG images were found in this plugin