83% bykea-cash-online-payments

Code Review | Bykea.Cash - Online Payments

WordPress plugin Bykea.Cash - Online Payments scored83%from 54 tests.

About plugin

  • Plugin page: bykea-cash-online...
  • Plugin version: 3.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Oct 27, 2021
  • Latest release: Aug 4, 2022
  • Number of updates: 42
  • Update frequency: every 6.7 days
  • Top authors: dizyn (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

900+ active /11,699 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.98ms] Passed 4 tests

An overview of server-side resources used by Bykea.Cash - Online Payments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.21 ▼1.58
Dashboard /wp-admin3.40 ▲0.0951.65 ▼6.77
Posts /wp-admin/edit.php3.51 ▲0.1551.90 ▼6.51
Add New Post /wp-admin/post-new.php6.01 ▲0.1295.10 ▼1.07
Media Library /wp-admin/upload.php3.32 ▲0.0941.44 ▲2.98

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Bykea.Cash - Online Payments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.74 ▲0.331.75 ▲0.1541.21 ▼9.06
Dashboard /wp-admin2,228 ▲515.64 ▲0.0792.86 ▲8.4941.65 ▲1.64
Posts /wp-admin/edit.php2,130 ▲302.05 ▲0.0442.36 ▲5.8138.10 ▲3.44
Add New Post /wp-admin/post-new.php1,535 ▲723.34 ▲0.29676.18 ▼27.5253.45 ▼3.93
Media Library /wp-admin/upload.php1,427 ▲274.30 ▲0.07111.13 ▼7.7951.45 ▲1.58

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bykea-cash-online-payments/online-payments-bykeacash.php:19

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

bykea-cash-online-payments/online-payments-bykeacash.php 85% from 13 tests

Analyzing the main PHP file in "Bykea.Cash - Online Payments" version 3.2
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("bykea-cash-online-payments.php" instead of "online-payments-bykeacash.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 plugin1,096 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23698723
JavaScript176194
Markdown128095
CSS10084

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods120.00%
▷ Private methods00.00%
Functions23
▷ Named functions1669.57%
▷ Anonymous functions730.43%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bykea-full-payment-option.png9.83KB3.07KB▼ 68.74%
app-store-icon.png7.72KB7.70KB0.25%
google-play-icon.png12.36KB12.32KB0.33%
bykea-cash-logo.png3.44KB1.94KB▼ 43.52%