89% dbs-parspal-justpay

Code Review | DBS-Parspal-JustPay

WordPress plugin DBS-Parspal-JustPay scored 89% from 54 tests.

About plugin

  • Plugin page: dbs-parspal-justpay
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2015
  • Latest release: Mar 15, 2015
  • Number of updates: 6
  • Update frequency: every 10.5 days
  • Top authors: DBStheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.92ms] Passed 4 tests

Server-side resources used by DBS-Parspal-JustPay
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0740.07 ▼4.00
Dashboard /wp-admin3.37 ▲0.0746.18 ▼1.57
Posts /wp-admin/edit.php3.48 ▲0.1345.26 ▼6.38
Add New Post /wp-admin/post-new.php5.95 ▲0.0796.12 ▼11.72
Media Library /wp-admin/upload.php3.29 ▲0.0637.80 ▲0.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for DBS-Parspal-JustPay
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.25 ▼1.141.56 ▼0.4139.13 ▼2.42
Dashboard /wp-admin2,225 ▲375.89 ▲0.0894.33 ▼7.6843.17 ▲1.80
Posts /wp-admin/edit.php2,105 ▲132.01 ▼0.0037.47 ▼1.8340.59 ▲4.93
Add New Post /wp-admin/post-new.php1,565 ▲3219.22 ▼3.96595.20 ▼39.8370.46 ▲17.73
Media Library /wp-admin/upload.php1,401 ▲134.20 ▲0.0193.79 ▼13.5746.82 ▼1.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === dbs-parspal-justpay === )
  • Screenshots: Screenshot #1 (ایمیل حاوی اطلاعات پرداخت ارسال شده به صاحب حساب و فریدار.) image not found
The official readme.txt is a good inspiration

dbs-parspal-justpay/DBS-Parspal-JustPay.php 92% from 13 tests

The principal PHP file in "DBS-Parspal-JustPay" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dbs-parspal-justpay.php" instead of "DBS-Parspal-JustPay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin364 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39027364

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity24.50
▷ Minimum class complexity2.00
▷ Maximum class complexity47.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin