89% skash-payment

Code Review | sKash Smart Cash

WordPress plugin sKash Smart Cash scored89%from 54 tests.

About plugin

  • Plugin page: skash-payment
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 3, 2020
  • Latest release: Dec 22, 2022
  • Number of updates: 36
  • Update frequency: every 25.1 days
  • Top authors: skashadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,139 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.59ms] Passed 4 tests

This is a short check of server-side resources used by sKash Smart Cash
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.58 ▼5.34
Dashboard /wp-admin3.38 ▲0.0345.60 ▼15.11
Posts /wp-admin/edit.php3.43 ▲0.0746.95 ▲1.32
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.63 ▲0.76
Media Library /wp-admin/upload.php3.30 ▲0.0736.19 ▲4.66

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for sKash Smart Cash
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.131.78 ▼0.0647.10 ▲4.67
Dashboard /wp-admin2,209 ▲214.86 ▼1.15107.29 ▼2.1242.12 ▼1.65
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0340.12 ▼0.9534.45 ▼3.90
Add New Post /wp-admin/post-new.php1,533 ▼923.37 ▲5.24648.85 ▲60.9051.26 ▼5.24
Media Library /wp-admin/upload.php1,382 ▼04.24 ▲0.0995.80 ▼3.2642.51 ▲0.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

skash-payment/skash.php 92% from 13 tests

The primary PHP file in "sKash Smart Cash" version 1.2.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("skash-payment.php" instead of "skash.php")

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
Success! There were no dangerous files found in this plugin328 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13934328

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
skash-logo.png2.69KB2.40KB▼ 10.72%