84% chip-for-givewp

Code Review | CHIP for GiveWP

WordPress plugin CHIP for GiveWP scored84%from 54 tests.

About plugin

  • Plugin page: chip-for-givewp
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 29, 2022
  • Latest release: Oct 31, 2023
  • Number of updates: 10
  • Update frequency: every 33.6 days
  • Top authors: wanzulnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /638 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.37ms] Passed 4 tests

A check of server-side resources used by CHIP for GiveWP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1244.02 ▲3.06
Dashboard /wp-admin3.48 ▲0.1851.48 ▲2.99
Posts /wp-admin/edit.php3.60 ▲0.2348.02 ▼2.43
Add New Post /wp-admin/post-new.php6.08 ▲0.1982.59 ▼17.45
Media Library /wp-admin/upload.php3.41 ▲0.1735.74 ▼0.60

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CHIP for GiveWP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▲0.001.70 ▼0.0742.39 ▼4.00
Dashboard /wp-admin2,198 ▲215.59 ▼0.0587.15 ▼7.8141.81 ▲3.27
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0934.53 ▼2.6736.58 ▲2.68
Add New Post /wp-admin/post-new.php1,531 ▲323.63 ▲2.54643.53 ▼77.3854.27 ▼3.50
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.1199.48 ▲1.2741.85 ▼3.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chip-for-givewp/includes/class-listener.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/chip-for-givewp/chip-for-givewp.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chip-for-givewp/includes/class-purchase.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chip-for-givewp/includes/admin/class-refund-button.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Chip_Givewp_Admin_Settings' not found in wp-content/plugins/chip-for-givewp/includes/admin/class-metabox-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Chip_Givewp_Admin_Settings' not found in wp-content/plugins/chip-for-givewp/includes/admin/class-global-settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in chip-for-givewp/assets to your readme.txt
The official readme.txt might help

chip-for-givewp/chip-for-givewp.php Passed 13 tests

The main PHP script in "CHIP for GiveWP" version 1.1.0 is automatically included on every request by WordPress
31 characters long description:
CHIP - Digital Finance Platform

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected862 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.22
▷ Minimum class complexity3.00
▷ Maximum class complexity25.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
▷ Static methods1018.87%
▷ Public methods4788.68%
▷ Protected methods00.00%
▷ Private methods611.32%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants660.00%
▷ Class constants440.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin