70% zero-bs-accounting

Code Review | Zero BS Accounting

WordPress plugin Zero BS Accounting scored70%from 54 tests.

About plugin

  • Plugin page: zero-bs-accounting
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 7, 2021
  • Latest release: Sep 27, 2023
  • Number of updates: 18
  • Update frequency: every 48.6 days
  • Top authors: azizultex (50%)foysalremon (44.44%)wppool (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,653 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.56MB] [CPU: ▼5.13ms] Passed 4 tests

A check of server-side resources used by Zero BS Accounting
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5851.87 ▲7.93
Dashboard /wp-admin3.87 ▲0.5262.73 ▼9.36
Posts /wp-admin/edit.php3.92 ▲0.5764.07 ▲6.28
Add New Post /wp-admin/post-new.php6.56 ▲0.67105.23 ▼25.36
Media Library /wp-admin/upload.php3.80 ▲0.5755.96 ▲15.94

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 54 new files
Database: 1 new table, 9 new options
New tables
wp_zbs_profiles
New WordPress options
zbs-accountpage
transaction_category_children
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
zbs_accounting_migration
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Zero BS Accounting
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8914.25 ▼0.031.93 ▲0.2740.28 ▼0.60
Dashboard /wp-admin2,219 ▲395.56 ▼0.1090.20 ▲1.2941.22 ▼5.54
Posts /wp-admin/edit.php2,124 ▲242.03 ▲0.0134.58 ▼7.2334.54 ▲0.09
Add New Post /wp-admin/post-new.php1,542 ▲1623.79 ▲0.66696.36 ▼0.9285.34 ▲31.51
Media Library /wp-admin/upload.php1,427 ▲274.15 ▼0.0496.97 ▼13.6546.27 ▼0.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/zero-bs-accounting/appsero/src/Client.php+178
    require_once(wp-content/plugins/zero-bs-accounting/appsero/src/License.php): failed to open stream: No such file or directory
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_zbs_profiles
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • transaction_category_children
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_recent-posts
    • zbs_accounting_migration

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: expense, invoice, bookkeeping, income tracking, income...

zero-bs-accounting/zero-bs-accounting.php 92% from 13 tests

"Zero BS Accounting" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin6,357 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS131892,703
PHP95899832,666
JavaScript149915551
Markdown2910270
XML1385373
JSON40057
HTML20232
SVG2005

PHP code Passed 2 tests

Analyzing 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.37
Average class complexity41.00
▷ Minimum class complexity2.00
▷ Maximum class complexity90.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods126
▷ Static methods32.38%
▷ Public methods9172.22%
▷ Protected methods64.76%
▷ Private methods2923.02%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.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
6 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/images/edd.png30.75KB12.89KB▼ 58.07%
public/images/edd.png30.75KB12.89KB▼ 58.07%
dist/images/9c96e0ed7093c095fd33870329282962.png64.47KB21.79KB▼ 66.20%
public/images/woocommerce.png14.72KB8.70KB▼ 40.92%
public/images/9c96e0ed7093c095fd33870329282962.png64.47KB21.79KB▼ 66.20%