73% wallet-up

Code Review | Wallet Up

WordPress plugin Wallet Up scored73%from 54 tests.

About plugin

  • Plugin page: wallet-up
  • Plugin version: 3.3.0
  • PHP compatiblity: 5.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2022
  • Latest release: Sep 16, 2023
  • Number of updates: 31
  • Update frequency: every 17.5 days
  • Top authors: walletup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,284 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.55MB] [CPU: ▼3.46ms] Passed 4 tests

This is a short check of server-side resources used by Wallet Up
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.6044.84 ▲1.31
Dashboard /wp-admin3.91 ▲0.6151.25 ▼1.26
Posts /wp-admin/edit.php3.96 ▲0.6159.81 ▲8.14
Add New Post /wp-admin/post-new.php6.43 ▲0.5490.50 ▼21.30
Media Library /wp-admin/upload.php3.67 ▲0.4443.03 ▲7.42
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius4.0143.12

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 220 new files
Database: no new tables, 9 new options
New WordPress options
fs_active_plugins
widget_recent-comments
db_upgraded
theysaidso_admin_options
fs_debug_mode
fs_accounts
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Wallet Up
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5713.90 ▼0.451.70 ▲0.1434.28 ▼3.35
Dashboard /wp-admin2,227 ▲535.64 ▲0.0790.73 ▲5.2242.61 ▼1.52
Posts /wp-admin/edit.php2,130 ▲302.00 ▲0.0039.34 ▼2.2838.18 ▲4.30
Add New Post /wp-admin/post-new.php1,541 ▲12723.00 ▲1.67682.49 ▲80.3557.96 ▼13.81
Media Library /wp-admin/upload.php1,429 ▲324.22 ▲0.01106.28 ▼0.8251.32 ▲3.76
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,0841.6628.4330.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wallet-up/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • fs_debug_mode
    • widget_recent-posts
    • fs_accounts
    • fs_active_plugins
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wallet-up/languages/index.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
You can look at the official readme.txt

wallet-up/wallet-up.php 85% from 13 tests

The primary PHP file in "Wallet Up" version 3.3.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 180 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin48,610 lines of code in 155 files:
LanguageFilesBlank linesComment linesLines of code
PHP1298,08217,28033,699
SVG3009,552
CSS171,516374,934
Markdown1680214
JavaScript43465195
XML13016

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
These items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity91.98
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes49
▷ Abstract classes24.08%
▷ Concrete classes4795.92%
▷ Final classes00.00%
Methods1,275
▷ Static methods19815.53%
▷ Public methods88569.41%
▷ Protected methods171.33%
▷ Private methods37329.25%
Functions106
▷ Named functions10599.06%
▷ Anonymous functions10.94%
Constants155
▷ Global constants10869.68%
▷ Class constants4730.32%
▷ Public constants47100.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
9 PNG files occupy 0.34MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/lib/cashapp-walup.png44.98KB15.56KB▼ 65.42%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/lib/paypal-walup.png53.29KB13.77KB▼ 74.17%
assets/lib/walup-logo.png6.79KB3.75KB▼ 44.77%