78% walup

Code Review | Wallet Up Checkout for WPForms

WordPress plugin Wallet Up Checkout for WPForms scored78%from 54 tests.

About plugin

  • Plugin page: walup
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2022
  • Latest release: May 8, 2023
  • Number of updates: 17
  • Update frequency: every 10.5 days
  • Top authors: walletup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /348 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.27MB] [CPU: ▼2.82ms] Passed 4 tests

An overview of server-side resources used by Wallet Up Checkout for WPForms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2641.58 ▲1.62
Dashboard /wp-admin3.56 ▲0.2549.09 ▼0.54
Posts /wp-admin/edit.php3.67 ▲0.3153.09 ▲1.88
Add New Post /wp-admin/post-new.php6.28 ▲0.4087.70 ▼14.24
Media Library /wp-admin/upload.php3.48 ▲0.2538.66 ▲3.34
Walup Tags /wp-admin/edit-tags.php?taxonomy=walup_tag&post_type=walup3.4736.87
All Walups /wp-admin/edit.php?post_type=walup3.5236.02
Add Walup Page /wp-admin/post-new.php?post_type=walup6.2883.82

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Wallet Up Checkout for WPForms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15213.67 ▼0.687.90 ▲5.1643.30 ▼0.96
Dashboard /wp-admin2,230 ▲505.53 ▼0.0785.79 ▼3.7438.15 ▼6.90
Posts /wp-admin/edit.php2,138 ▲382.03 ▲0.0637.32 ▲2.3632.03 ▼8.31
Add New Post /wp-admin/post-new.php1,556 ▲3023.09 ▼0.18660.40 ▲25.0053.42 ▼2.24
Media Library /wp-admin/upload.php1,438 ▲384.21 ▼0.06105.99 ▲7.3247.69 ▲4.13
Walup Tags /wp-admin/edit-tags.php?taxonomy=walup_tag&post_type=walup1,2812.1226.7531.01
All Walups /wp-admin/edit.php?post_type=walup1,1041.9730.3731.09
Add Walup Page /wp-admin/post-new.php?post_type=walup6,30923.40868.1930.33

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • walup_installed
    • widget_recent-comments

Smoke tests 50% 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 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/walup/public/partials/walup-public-display.php
    • > /wp-content/plugins/walup/admin/partials/walup-admin-display.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/walup/templates/pages/walup_wpf_insert.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/walup/templates/wpforms/walup-checkout-template.php:1379
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/walup/walup-code-snippets-json/walup-submit-condition.code-snippets.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
You can look at the official readme.txt

walup/walup.php 92% from 13 tests

"Wallet Up Checkout for WPForms" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 216 characters long)

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 detected1,706 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP171795151,700
JavaScript2466
CSS2080

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.38
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
templates/steps/steps_walup.png173.13KB55.38KB▼ 68.01%