83% woo-accounting-report

Code Review | WooCommerce Accounting Report

WordPress plugin WooCommerce Accounting Report scored83%from 54 tests.

About plugin

  • Plugin page: woo-accounting-re...
  • Plugin version: 3.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 24, 2019
  • Latest release: Nov 14, 2023
  • Number of updates: 18
  • Update frequency: every 98.2 days
  • Top authors: bjorntech (88.89%)carlericsson (16.67%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /8,975 total downloads

Benchmarks

Plugin footprint 83% 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.31MB] [CPU: ▲2.88ms] Passed 4 tests

A check of server-side resources used by WooCommerce Accounting Report
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3541.92 ▲1.85
Dashboard /wp-admin3.64 ▲0.3349.09 ▲0.39
Posts /wp-admin/edit.php3.69 ▲0.3349.87 ▲1.28
Add New Post /wp-admin/post-new.php6.19 ▲0.3098.20 ▲13.80
Media Library /wp-admin/upload.php3.50 ▲0.2738.98 ▲7.99

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 117 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Accounting Report
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3014.68 ▲0.361.59 ▼0.3240.14 ▼1.27
Dashboard /wp-admin2,200 ▲205.59 ▼0.0491.96 ▲0.5141.76 ▼5.91
Posts /wp-admin/edit.php2,105 ▲51.96 ▼0.0439.95 ▲2.3735.02 ▲2.16
Add New Post /wp-admin/post-new.php1,528 ▲223.42 ▼0.28645.74 ▲9.4963.32 ▲9.82
Media Library /wp-admin/upload.php1,405 ▲54.15 ▲0.0197.25 ▼5.9839.89 ▼1.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/woo-accounting-report/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php:22
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/woo-accounting-report/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-accounting-report/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
    • > PHP Warning
      require_once(wp-content/plugins/woo-accounting-report/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php): failed to open stream: No such file or directory in wp-content/plugins/woo-accounting-report/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jp9eaa728d9d21d44c05f959d589f4c454\\al2_12_0\\wp_normalize_path() in wp-content/plugins/woo-accounting-report/vendor/jetpack-autoloader/class-path-processor.php:73
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/woo-accounting-report/src/plugin/Rest/RestLogController.php:11

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 90% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • License uri: Please fix this invalid url: "bjorntech.com/accountingreport"
You can look at the official readme.txt

woo-accounting-report/woo-accounting-report.php 85% from 13 tests

The main PHP file in "WooCommerce Accounting Report" ver. 3.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "4.0")

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
Success! There were no dangerous files found in this plugin9,628 lines of code in 111 files:
LanguageFilesBlank linesComment linesLines of code
PHP741,4332,6617,348
JavaScript24327291,632
Markdown41680386
JSON400210
CSS210044
XML2008
Sass1010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.48
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces7
Interfaces0
Traits8
Classes56
▷ Abstract classes11.79%
▷ Concrete classes5598.21%
▷ Final classes00.00%
Methods290
▷ Static methods6321.72%
▷ Public methods20068.97%
▷ Protected methods4716.21%
▷ Private methods4314.83%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin