90% chip-for-gravity-forms

Code Review | CHIP for Gravity Forms

WordPress plugin CHIP for Gravity Forms scored90%from 54 tests.

About plugin

  • Plugin page: chip-for-gravity-...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Nov 9, 2022
  • Latest release: Jun 22, 2023
  • Number of updates: 14
  • Update frequency: every 16.1 days
  • Top authors: chipasia (64.29%)wanzulnet (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /665 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
This plugin's installer ran successfully

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

An overview of server-side resources used by CHIP for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.17 ▼5.40
Dashboard /wp-admin3.31 ▲0.0051.42 ▲4.41
Posts /wp-admin/edit.php3.36 ▲0.0048.47 ▼1.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.53 ▼17.57
Media Library /wp-admin/upload.php3.23 ▲0.0031.59 ▼2.98

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by CHIP for Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.24 ▼1.441.74 ▼0.3641.72 ▼7.00
Dashboard /wp-admin2,206 ▲154.85 ▼1.04110.14 ▲0.1337.45 ▼3.53
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0339.21 ▼4.3934.80 ▼4.59
Add New Post /wp-admin/post-new.php1,533 ▼023.17 ▲0.13671.99 ▲81.4357.82 ▼9.95
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0694.54 ▼2.8244.69 ▲0.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: The official readme.txt is a good inspiration

chip-for-gravity-forms/chip-for-gravity-forms.php Passed 13 tests

The entry point to "CHIP for Gravity Forms" version 1.0.4 is a PHP file that has certain tags in its header comment area
42 characters long description:
CHIP - Better Payment & Business Solutions

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
Everything looks great! No dangerous files found in this plugin869 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP322887840
Markdown113019
SVG10010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity25.33
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods47
▷ Static methods48.51%
▷ Public methods4595.74%
▷ Protected methods00.00%
▷ Private methods24.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected