83% kineticpay-for-givewp

Code Review | Kineticpay for GiveWP

WordPress plugin Kineticpay for GiveWP scored 83% from 54 tests.

About plugin

  • Plugin page: kineticpay-for-gi...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2022
  • Latest release: Jun 22, 2023
  • Number of updates: 6
  • Update frequency: every 72.3 days
  • Top authors: faizalbahasan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.23ms] Passed 4 tests

A check of server-side resources used by Kineticpay for GiveWP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.04 ▼9.62
Dashboard /wp-admin3.31 ▲0.0043.87 ▼2.59
Posts /wp-admin/edit.php3.36 ▲0.0045.74 ▼2.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.09 ▼10.00
Media Library /wp-admin/upload.php3.23 ▲0.0032.03 ▲1.78

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Kineticpay for GiveWP: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6814.46 ▲0.151.71 ▼0.2537.65 ▼4.27
Dashboard /wp-admin2,206 ▲214.85 ▼0.0598.35 ▼31.1138.64 ▼8.55
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0739.70 ▼0.8635.33 ▼0.64
Add New Post /wp-admin/post-new.php1,514 ▼1917.39 ▼5.73645.90 ▲1.1454.64 ▲0.40
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0496.96 ▼3.9341.98 ▼2.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/kineticpay-for-givewp/includes/admin/give-kineticpay-settings.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/kineticpay-for-givewp/includes/admin/give-kineticpay-settings-metabox.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

kineticpay-for-givewp/give-kineticpay.php 77% from 13 tests

The principal PHP file in "Kineticpay for GiveWP" v. 1.0.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("kineticpay-for-givewp.php" instead of "give-kineticpay.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
Good job! No executable or dangerous file extensions detected666 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6135178645
JavaScript11017
Markdown1004

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.60
▷ Minimum class complexity4.00
▷ Maximum class complexity29.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods38
▷ Static methods821.05%
▷ Public methods2976.32%
▷ Protected methods12.63%
▷ Private methods821.05%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/kineticpay.png17.80KB11.45KB▼ 35.67%