90% zarinpal-payment-gateway-for-camptix

Code Review | CampTix ZarinPal Payment Gateway

WordPress plugin CampTix ZarinPal Payment Gateway scored90%from 54 tests.

About plugin

  • Plugin page: zarinpal-payment-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 6.3.1
  • First release: May 31, 2016
  • Latest release: May 31, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Amini7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,829 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by CampTix ZarinPal Payment Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.29 ▲3.07
Dashboard /wp-admin3.31 ▼0.0345.96 ▼14.21
Posts /wp-admin/edit.php3.36 ▲0.0146.83 ▲3.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.15 ▼7.60
Media Library /wp-admin/upload.php3.23 ▲0.0132.21 ▼1.76

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CampTix ZarinPal Payment Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.14 ▼1.132.01 ▲0.1642.84 ▲4.47
Dashboard /wp-admin2,206 ▲275.79 ▼0.1097.98 ▼9.5240.03 ▼2.03
Posts /wp-admin/edit.php2,089 ▲31.99 ▼0.0242.13 ▲6.6434.79 ▲1.10
Add New Post /wp-admin/post-new.php1,536 ▲323.43 ▲0.15618.41 ▼44.4364.72 ▲5.22
Media Library /wp-admin/upload.php1,382 ▲34.27 ▲0.0698.39 ▼6.2041.13 ▼4.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: camptix, zarinpal

zarinpal-payment-gateway-for-camptix/camptix-ZarinPal.php 92% from 13 tests

Analyzing the main PHP file in "CampTix ZarinPal Payment Gateway" version 1.0.0
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("zarinpal-payment-gateway-for-camptix.php" instead of "camptix-ZarinPal.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 plugin194 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26845194

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin