88% accounting-software-by-giddh

Code Review | Accounting Software Giddh

WordPress plugin Accounting Software Giddh scored 88% from 54 tests.

About plugin

  • Plugin page: accounting-softwa...
  • Plugin version: 1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.9.2
  • First release: Apr 5, 2021
  • Latest release: Aug 9, 2021
  • Number of updates: 7
  • Update frequency: every 18.6 days
  • Top authors: giddh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 291 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.18ms] Passed 4 tests

Server-side resources used by Accounting Software Giddh
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.06 ▲5.26
Dashboard /wp-admin3.41 ▲0.0031.79 ▼0.27
Posts /wp-admin/edit.php3.64 ▲0.0036.44 ▼1.10
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.73 ▼1,177.34
Media Library /wp-admin/upload.php3.29 ▼0.0124.82 ▼2.00

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 146 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Accounting Software Giddh: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.84 ▲0.096.36 ▲0.742.04 ▼0.17
Dashboard /wp-admin2,895 ▲346.12 ▼0.02113.65 ▼17.79158.60 ▲1.26
Posts /wp-admin/edit.php2,688 ▼63.24 ▼0.0061.17 ▼2.14137.07 ▼2.16
Add New Post /wp-admin/post-new.php1,760 ▲9922.68 ▲6.55416.93 ▼47.20159.81 ▲7.16
Media Library /wp-admin/upload.php1,701 ▲65.50 ▲0.06142.19 ▲9.26187.52 ▼3.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% 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 0% 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
The following issues need your attention
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/accounting-software-by-giddh/giddh.php
    • > /wp-content/plugins/accounting-software-by-giddh/includes/inventory/unmatched_woocommerce.php
    • > /wp-content/plugins/accounting-software-by-giddh/includes/inventory/sku_matched.php
    • > /wp-content/plugins/accounting-software-by-giddh/includes/footer.php
    • > /wp-content/plugins/accounting-software-by-giddh/includes/inventory/unmatched_giddh.php
    • > /wp-content/plugins/accounting-software-by-giddh/templates/faq.php
  • 49× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      include(GIDDH_PLUGIN_PATHincludes/header.php): failed to open stream: No such file or directory in wp-content/plugins/accounting-software-by-giddh/templates/onboarding.php on line 2
    • > PHP Warning
      include(): Failed opening 'GIDDH_PLUGIN_PATHincludes/footer.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/accounting-software-by-giddh/templates/faq.php on line 115
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/accounting-software-by-giddh/includes/welcome.php:2
    • > PHP Warning
      include(): Failed opening 'GIDDH_PLUGIN_PATHincludes/inventory/unmatched_woocommerce.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/accounting-software-by-giddh/includes/settings_inventory.php on line 15
    • > PHP Warning
      Use of undefined constant GIDDH_PLUGIN_PATH - assumed 'GIDDH_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/accounting-software-by-giddh/templates/settings.php on line 2
    • > PHP Warning
      Use of undefined constant GIDDH_PLUGIN_PATH - assumed 'GIDDH_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/accounting-software-by-giddh/includes/settings_inventory.php on line 21
    • > PHP Warning
      Use of undefined constant GIDDH_PLUGIN_PATH - assumed 'GIDDH_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/accounting-software-by-giddh/includes/settings_inventory.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/accounting-software-by-giddh/includes/settings_invoice.php:8
    • > PHP Warning
      include(GIDDH_PLUGIN_PATHincludes/header.php): failed to open stream: No such file or directory in wp-content/plugins/accounting-software-by-giddh/templates/setup.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/accounting-software-by-giddh/templates/onboarding.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: Please take inspiration from this readme.txt

accounting-software-by-giddh/giddh.php 92% from 13 tests

The principal PHP file in "Accounting Software Giddh" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("accounting-software-by-giddh.php" instead of "giddh.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9,406 lines of code in 78 files:
LanguageFilesBlank linesComment linesLines of code
PHP38542554,256
SVG22013,043
CSS62132940
JavaScript611024835
HTML6284332

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity16.50
▷ Minimum class complexity3.00
▷ Maximum class complexity55.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods88
▷ Static methods33.41%
▷ Public methods88100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions66
▷ Named functions6395.45%
▷ Anonymous functions34.55%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.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
25 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ui-icons_555555_256x240.png6.84KB4.18KB▼ 38.84%
assets/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%
assets/images/email/check.png3.23KB2.30KB▼ 28.64%
assets/images/welcombg.png11.50KB3.41KB▼ 70.32%
assets/images/email/windows.png0.68KB0.61KB▼ 10.07%