79% sme-accounting

Code Review | SME Accounting - One Stop Business & Accounting Solution For SMEs From Anywhere Around The World

WordPress plugin SME Accounting - One Stop Business & Accounting Solution For SMEs From Anywhere Around The World scored79%from 54 tests.

About plugin

  • Plugin page: sme-accounting
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 7, 2022
  • Latest release: Sep 10, 2023
  • Number of updates: 4
  • Update frequency: every 107.5 days
  • Top authors: priyomukul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /845 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
Install script ran successfully

Server metrics [RAM: ▼0.49MB] [CPU: ▼15.67ms] Passed 4 tests

An overview of server-side resources used by SME Accounting - One Stop Business & Accounting Solution For SMEs From Anywhere Around The World
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.08 ▼3.57
Dashboard /wp-admin3.56 ▲0.2548.94 ▼4.07
Posts /wp-admin/edit.php3.61 ▲0.2554.41 ▲2.92
Add New Post /wp-admin/post-new.php3.34 ▼2.5438.98 ▼55.53
Media Library /wp-admin/upload.php3.42 ▲0.1938.68 ▲0.50

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

SME Accounting - One Stop Business & Accounting Solution For SMEs From Anywhere Around The World: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.22 ▼1.171.65 ▼0.4441.08 ▼2.99
Dashboard /wp-admin2,209 ▲214.88 ▼1.0599.92 ▼14.9944.97 ▼2.00
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0338.06 ▼0.4638.43 ▲6.23
Add New Post /wp-admin/post-new.php1,536 ▲1723.20 ▲0.04660.18 ▼26.8152.01 ▼1.16
Media Library /wp-admin/upload.php1,391 ▲64.24 ▲0.03109.78 ▲6.0849.02 ▼1.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sme-accounting/vendor/deliciousbrains/wp-background-processing/tests/bootstrap.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/sme-accounting/vendor/deliciousbrains/wp-background-processing/tests/Test_WP_Background_Process.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/sme-accounting/views/footer.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/sme-accounting/vendor/deliciousbrains/wp-background-processing/tests/Test_Setup.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sme-accounting/views/woocommerce.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sme-accounting/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sme-accounting/views/admin.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SMEVai\\Core\\Base' not found in wp-content/plugins/sme-accounting/includes/Core/Admin.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'SMEVai\\Core\\Base' not found in wp-content/plugins/sme-accounting/includes/Core/Module.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/sme-accounting/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: bookkeeping, business, f-commerce, accounting, sales...

sme-accounting/sme-accounting.php Passed 13 tests

The main file in "SME Accounting - One Stop Business & Accounting Solution For SMEs From Anywhere Around The World" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
One Stop Business & Accounting Solution For SMEs From Anywhere Around The World

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,831 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP264661,2542,042
Markdown11240252
Bourne Shell12311147
CSS1170147
YAML113080
JSON10059
XML271657
SVG40033
make14014

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.25
Average class complexity14.86
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes14
▷ Abstract classes428.57%
▷ Concrete classes1071.43%
▷ Final classes110.00%
Methods157
▷ Static methods2113.38%
▷ Public methods12579.62%
▷ Protected methods2515.92%
▷ Private methods74.46%
Functions22
▷ Named functions29.09%
▷ Anonymous functions2090.91%
Constants11
▷ Global constants981.82%
▷ Class constants218.18%
▷ Public constants2100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/menu-icon.png3.80KB0.57KB▼ 85.12%
assets/images/logo.png1.68KB1.15KB▼ 31.55%