73% skipcash-payment-gateway

Code Review | SkipCash Payment Gateway

WordPress plugin SkipCash Payment Gateway scored 73% from 54 tests.

About plugin

  • Plugin page: skipcash-payment-...
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2021
  • Latest release: Sep 15, 2023
  • Number of updates: 7
  • Update frequency: every 104.9 days
  • Top authors: skipcash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 705 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.12ms] Passed 4 tests

Server-side resources used by SkipCash Payment Gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.70 ▼2.13
Dashboard /wp-admin3.43 ▲0.1244.46 ▼2.49
Posts /wp-admin/edit.php3.54 ▲0.1848.58 ▲5.39
Add New Post /wp-admin/post-new.php6.01 ▲0.1293.68 ▼4.16
Media Library /wp-admin/upload.php3.35 ▲0.1235.61 ▲0.30

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables
wp_skipcash_logs
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for SkipCash Payment Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.012.01 ▲0.2343.36 ▼3.49
Dashboard /wp-admin2,209 ▲314.86 ▼0.25112.12 ▲5.4744.52 ▲4.63
Posts /wp-admin/edit.php2,092 ▲142.05 ▲0.0040.25 ▼1.4633.77 ▲1.79
Add New Post /wp-admin/post-new.php1,524 ▼923.39 ▲0.10673.71 ▲63.8560.52 ▲10.46
Media Library /wp-admin/upload.php1,388 ▲64.18 ▼0.0195.08 ▼8.0442.03 ▼1.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_skipcash_logs
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skipcash-payment-gateway/skipcash.php:777
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/skipcash-payment-gateway/tmpls/pay.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
5 plugin tags: wc, gateway, woocommerce, skipcash, payment

skipcash-payment-gateway/skipcash.php 77% from 13 tests

"SkipCash Payment Gateway" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "5.6")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("skipcash-payment-gateway.php" instead of "skipcash.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected992 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP211356702
JavaScript21715261
CSS10817
SVG10112

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity65.00
▷ Minimum class complexity65.00
▷ Maximum class complexity65.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.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
6 PNG files occupy 0.36MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png43.65KB17.54KB▼ 59.81%
assets/icon-256x256.png13.96KB5.65KB▼ 59.52%
assets/screenshot-2.png143.03KB48.07KB▼ 66.40%
assets/screenshot-1.png142.36KB47.78KB▼ 66.44%
assets/icon-128x128.png6.70KB3.06KB▼ 54.36%