84% pci-vault-forms

Code Review | PCI Vault Forms

WordPress plugin PCI Vault Forms scored84%from 54 tests.

About plugin

  • Plugin page: pci-vault-forms
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2022
  • Latest release: Mar 28, 2023
  • Number of updates: 20
  • Update frequency: every 11.1 days
  • Top authors: pcivault (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /773 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼12.34ms] Passed 4 tests

A check of server-side resources used by PCI Vault Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.84 ▼3.87
Dashboard /wp-admin3.34 ▼0.0140.03 ▼18.47
Posts /wp-admin/edit.php3.39 ▲0.0345.23 ▼2.32
Add New Post /wp-admin/post-new.php5.92 ▲0.0375.95 ▼24.68
Media Library /wp-admin/upload.php3.26 ▲0.0333.50 ▼2.01

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by PCI Vault Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.25 ▼0.101.55 ▼0.0836.54 ▼2.75
Dashboard /wp-admin2,211 ▲345.55 ▼0.1199.34 ▲11.7343.18 ▲1.09
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0235.08 ▼3.7531.90 ▼9.57
Add New Post /wp-admin/post-new.php1,539 ▲1323.13 ▼0.00663.60 ▲17.1349.90 ▼5.42
Media Library /wp-admin/upload.php1,410 ▲74.20 ▼0.0397.29 ▼18.8342.43 ▼5.73

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pci-vault-forms/pcivault-forms.php:157

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: forms, credit-card, payment, payment-gateway, pci

pci-vault-forms/pcivault-forms.php 92% from 13 tests

This is the main PHP file of "PCI Vault Forms" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pci-vault-forms.php" instead of "pcivault-forms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected157 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1209157

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected