72% get-cash

Code Review | Get Cash

WordPress plugin Get Cash scored72%from 54 tests.

About plugin

  • Plugin page: get-cash
  • Plugin version: 3.2
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 27, 2021
  • Latest release: Sep 18, 2023
  • Number of updates: 14
  • Update frequency: every 64.6 days
  • Top authors: theafricanboss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /5,958 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲5.36MB] [CPU: ▲29.11ms] 75% from 4 tests

A check of server-side resources used by Get Cash
Please have a look at the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.36MB on /wp-admin/post-new.php?post_type=gc-transactions)
PageMemory (MB)CPU Time (ms)
Home /9.16 ▲5.6964.01 ▲20.32
Dashboard /wp-admin9.18 ▲5.8777.34 ▲25.93
Posts /wp-admin/edit.php9.18 ▲5.8285.95 ▲39.42
Add New Post /wp-admin/post-new.php9.95 ▲4.06124.39 ▲30.78
Media Library /wp-admin/upload.php9.18 ▲5.9573.34 ▲41.86
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.1859.99
GC transactions /wp-admin/edit.php?post_type=gc-transactions9.1868.89
Add New /wp-admin/post-new.php?post_type=gc-transactions9.1880.91

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 214 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
fs_debug_mode
theysaidso_admin_options
fs_accounts
widget_recent-comments
fs_active_plugins

Browser metrics Passed 4 tests

An overview of browser requirements for Get Cash
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,998 ▲25213.68 ▼0.709.80 ▲7.5228.61 ▼17.96
Dashboard /wp-admin2,266 ▲785.89 ▲0.99108.96 ▼1.0943.59 ▼0.95
Posts /wp-admin/edit.php2,149 ▲632.00 ▲0.0141.37 ▲3.1945.88 ▲11.03
Add New Post /wp-admin/post-new.php1,552 ▲3822.83 ▲5.25639.64 ▲21.3653.13 ▼1.59
Media Library /wp-admin/upload.php1,445 ▲574.21 ▼0.0299.62 ▼3.9345.65 ▲0.44
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1201.7223.9732.68
GC transactions /wp-admin/edit.php?post_type=gc-transactions1,1101.9335.9433.54
Add New /wp-admin/post-new.php?post_type=gc-transactions2,1817.63164.6762.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/get-cash/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • fs_debug_mode
    • widget_recent-comments
    • fs_accounts
    • fs_active_plugins
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/get-cash/languages/index.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
The official readme.txt might help

get-cash/get-cash.php 77% from 13 tests

"Get Cash" version 3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected34,638 lines of code in 149 files:
LanguageFilesBlank linesComment linesLines of code
PHP1268,08417,32533,901
JavaScript753109525
CSS15436211
SVG1001

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity91.55
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.56
▷ 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 methods19715.45%
▷ Public methods88669.49%
▷ Protected methods171.33%
▷ Private methods37229.18%
Functions121
▷ Named functions121100.00%
▷ Anonymous functions00.00%
Constants154
▷ Global constants10769.48%
▷ Class constants4730.52%
▷ Public constants47100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.39MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/zelle.png10.02KB4.18KB▼ 58.23%
images/venmo.png14.51KB6.87KB▼ 52.63%
images/paypal.png15.47KB7.64KB▼ 50.59%
(invalid) images/get-cash-256x256.png26.94KB0.00KB▼ 100.00%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%