74% wp-accounts

Code Review | WP Accounts

WordPress plugin WP Accounts scored74%from 54 tests.

About plugin

  • Plugin page: wp-accounts
  • Plugin version: 1.7.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 13, 2017
  • Latest release: Aug 29, 2023
  • Number of updates: 80
  • Update frequency: every 26.5 days
  • Top authors: domainsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,229 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.80MB] [CPU: ▲3.18ms] Passed 4 tests

This is a short check of server-side resources used by WP Accounts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.22 ▲0.7549.15 ▲11.00
Dashboard /wp-admin4.17 ▲0.8652.44 ▲0.16
Posts /wp-admin/edit.php4.22 ▲0.8655.83 ▲1.73
Add New Post /wp-admin/post-new.php6.69 ▲0.8087.47 ▲0.15
Media Library /wp-admin/upload.php4.03 ▲0.8045.02 ▲10.69
Settings /wp-admin/admin.php?page=manage-settings4.0646.97
Manage Invoices /wp-admin/admin.php?page=manage-invoices4.0045.72
Manage Clients /wp-admin/admin.php?page=manage-clients3.9937.33
Client Statement /wp-admin/admin.php?page=client-statement3.9936.26
Manage Payments /wp-admin/admin.php?page=manage-payments4.0039.69
Export CSV /wp-admin/admin.php?page=export-csv3.9939.21

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: 7 new tables, 7 new options
New tables
wp_accounts_countries
wp_accounts_invoice_status
wp_accounts_payment_methods
wp_accounts_expense_types
wp_accounts_clients
wp_accounts_payments
wp_accounts_invoices
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
wp_accounts_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Accounts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲12314.73 ▲0.321.75 ▲0.0243.82 ▼2.53
Dashboard /wp-admin2,269 ▲955.59 ▼0.1091.43 ▼2.7472.08 ▲30.02
Posts /wp-admin/edit.php2,153 ▲502.00 ▲0.0339.89 ▼4.4735.83 ▼0.72
Add New Post /wp-admin/post-new.php1,581 ▲5322.85 ▼0.20771.50 ▲83.1566.72 ▲12.33
Media Library /wp-admin/upload.php1,441 ▲444.13 ▲0.02100.66 ▼12.9478.86 ▲31.77
Settings /wp-admin/admin.php?page=manage-settings2,1097.81173.05191.01
Manage Invoices /wp-admin/admin.php?page=manage-invoices1,0812.2625.8929.89
Manage Clients /wp-admin/admin.php?page=manage-clients9402.0027.0524.27
Client Statement /wp-admin/admin.php?page=client-statement9352.0126.3626.76
Manage Payments /wp-admin/admin.php?page=manage-payments1,0232.1528.9927.40
Export CSV /wp-admin/admin.php?page=export-csv8631.9923.6826.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 7 tables
    • wp_accounts_invoice_status
    • wp_accounts_clients
    • wp_accounts_invoices
    • wp_accounts_countries
    • wp_accounts_payment_methods
    • wp_accounts_expense_types
    • wp_accounts_payments
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • wp_accounts_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-accounts/wp-accounts.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: receipts, accounting, invoices, payments, bookkeeping

wp-accounts/wp-accounts.php Passed 13 tests

The main file in "WP Accounts" v. 1.7.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
Manage your Clients, Invoices, Receipts and Payments. Send Invoices and Receipts to clients via email.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,742 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP71,321163,627
JavaScript3283115

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity249.67
▷ Minimum class complexity6.00
▷ Maximum class complexity658.00
Average method complexity8.69
▷ Minimum method complexity1.00
▷ Maximum method complexity92.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods97
▷ Static methods2424.74%
▷ Public methods97100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/wp-accounts.png0.83KB0.63KB▼ 23.73%