89% kingbot-payment-getway-for-woocommerce

Code Review | Kingbot Payment Getway For Woocommerce

WordPress plugin Kingbot Payment Getway For Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: kingbot-payment-g...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-3.4
  • WordPress version: 6.3.1
  • First release: Sep 24, 2018
  • Latest release: Sep 24, 2018
  • Number of updates: 2
  • Update frequency: every 5.0 days
  • Top authors: smm1378 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /522 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.01MB] [CPU: ▼8.09ms] Passed 4 tests

Server-side resources used by Kingbot Payment Getway For Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.81 ▼1.92
Dashboard /wp-admin3.31 ▼0.0443.33 ▼18.73
Posts /wp-admin/edit.php3.36 ▲0.0044.16 ▼2.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.22 ▼5.81
Media Library /wp-admin/upload.php3.23 ▲0.0034.17 ▼5.11

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Kingbot Payment Getway For Woocommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.341.61 ▼0.1538.76 ▼3.23
Dashboard /wp-admin2,198 ▲275.59 ▲0.0383.32 ▼2.7141.04 ▼2.20
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0535.58 ▼1.0233.61 ▼4.21
Add New Post /wp-admin/post-new.php1,526 ▼522.94 ▼0.05644.11 ▼45.7755.00 ▼9.36
Media Library /wp-admin/upload.php1,403 ▲64.18 ▲0.01106.08 ▲2.8847.35 ▲3.82

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

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

Smoke tests Passed 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)
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (This Pugin Have No Screen Shot .) image missing
The official readme.txt might help

kingbot-payment-getway-for-woocommerce/index.php 85% from 13 tests

The main PHP file in "Kingbot Payment Getway For Woocommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kingbot-payment-getway-for-woocommerce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,670 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35162,4215,670

PHP code Passed 2 tests

A short review 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.48
Average class complexity90.73
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity9.68
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods155
▷ Static methods00.00%
▷ Public methods155100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/mini_pay.png3.59KB1.63KB▼ 54.66%