84% money-manager

Code Review | Money Manager

WordPress plugin Money Manager scored84%from 54 tests.

About plugin

  • Plugin page: money-manager
  • Plugin version: 1.27.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: May 22, 2021
  • Latest release: Oct 25, 2023
  • Number of updates: 46
  • Update frequency: every 19.3 days
  • Top authors: avsoft (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

300+ active /6,062 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.26ms] Passed 4 tests

This is a short check of server-side resources used by Money Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.20 ▲1.46
Dashboard /wp-admin3.33 ▼0.0145.09 ▼14.88
Posts /wp-admin/edit.php3.45 ▲0.0943.83 ▼4.73
Add New Post /wp-admin/post-new.php6.02 ▲0.1386.08 ▼6.89
Media Library /wp-admin/upload.php3.26 ▲0.0337.90 ▲5.60
Home /wp-admin/admin.php?page=money-manager-home3.4841.94
Add-ons /wp-admin/admin.php?page=money-manager-addons3.2530.96

Server storage [IO: ▲2.76MB] [DB: ▲0.02MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 53 new files
Database: 11 new tables, 8 new options
New tables
wp_money_manager_files
wp_money_manager_recurring_transactions
wp_money_manager_notifications
wp_money_manager_currencies
wp_money_manager_categories
wp_money_manager_split_transactions
wp_money_manager_transactions
wp_money_manager_parties
wp_money_manager_accounts
wp_money_manager_quotes
...
New WordPress options
widget_recent-posts
widget_theysaidso_widget
money_manager_woocommerce
widget_recent-comments
db_upgraded
money_manager_version
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Money Manager: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7614.27 ▼0.081.79 ▲0.2037.96 ▼3.18
Dashboard /wp-admin2,215 ▲375.51 ▼0.1182.96 ▼19.9539.50 ▼4.55
Posts /wp-admin/edit.php2,123 ▲201.98 ▲0.0134.32 ▼6.0633.69 ▼2.92
Add New Post /wp-admin/post-new.php1,545 ▲1723.16 ▲0.19677.28 ▲36.5265.35 ▲11.71
Media Library /wp-admin/upload.php1,426 ▲234.18 ▼0.01105.41 ▲8.1049.15 ▲7.06
Home /wp-admin/admin.php?page=money-manager-home2,9145.03108.1243.53
Add-ons /wp-admin/admin.php?page=money-manager-addons1,0131.9737.2545.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 37× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/money-manager/controllers/class-transactions-controller.php
    • > /wp-content/plugins/money-manager/managers/class-quote-manager.php
    • > /wp-content/plugins/money-manager/managers/class-file-manager.php
    • > /wp-content/plugins/money-manager/models/class-notification.php
    • > /wp-content/plugins/money-manager/controllers/class-addons-controller.php
    • > /wp-content/plugins/money-manager/models/class-file.php
    • > /wp-content/plugins/money-manager/class-multisite.php
    • > /wp-content/plugins/money-manager/controllers/class-base-controller.php
    • > /wp-content/plugins/money-manager/controllers/class-reports-controller.php
    • > /wp-content/plugins/money-manager/class-update.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
6 plugin tags: accounting, crypto, banking, money, finance...

money-manager/money-manager.php Passed 13 tests

The principal PHP file in "Money Manager" v. 1.27.0 is loaded by WordPress automatically on each request
72 characters long description:
Finance software that keeps track of where, when and how the money goes.

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
No dangerous file extensions were detected9,087 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
SVG2005,835
PHP374708153,236
CSS31414
JavaScript2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.20
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes35
▷ Abstract classes12.86%
▷ Concrete classes3497.14%
▷ Final classes00.00%
Methods140
▷ Static methods3323.57%
▷ Public methods11682.86%
▷ Protected methods2417.14%
▷ Private methods00.00%
Functions17
▷ Named functions15.88%
▷ Anonymous functions1694.12%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin