10% acumulus

Code Review | Acumulus

WordPress plugin Acumulus scored 10% from 54 tests.

About plugin

  • Plugin page: acumulus
  • Plugin version: 6.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Jan 5, 2016
  • Latest release: Feb 21, 2022
  • Number of updates: 78
  • Update frequency: every 28.8 days
  • Top authors: SIEL Acumulus (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

400+ active / 18,755 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/acumulus/acumulus.php+131
    Trying to get property 'version' of non-object

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

A check of server-side resources used by Acumulus
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0156.82 ▲8.62
Dashboard /wp-admin3.41 ▲0.0032.54 ▼0.45
Posts /wp-admin/edit.php3.65 ▲0.0037.00 ▼0.27
Add New Post /wp-admin/post-new.php6.88 ▼0.0994.12 ▼1,149.05
Media Library /wp-admin/upload.php3.30 ▲0.0025.69 ▲1.11

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 211 new files
Database: no new tables, 1 new option
New WordPress options
acumulus_version

Browser metrics Passed 4 tests

A check of browser resources used by Acumulus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.86 ▼0.226.17 ▼0.122.37 ▼0.18
Dashboard /wp-admin2,895 ▲416.14 ▼0.03125.77 ▼14.89165.40 ▼0.32
Posts /wp-admin/edit.php2,694 ▲93.24 ▲0.0164.39 ▲3.62140.02 ▲7.57
Add New Post /wp-admin/post-new.php1,711 ▼4120.64 ▼0.67443.04 ▼8.24151.74 ▼8.20
Media Library /wp-admin/upload.php1,695 ▼35.45 ▼0.03144.87 ▲0.23186.93 ▼0.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/acumulus/acumulus.php+131
    Trying to get property 'version' of non-object
  • This plugin does not fully uninstall, leaving 1 option in the database
    • acumulus_version

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 148× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Shop\\AcumulusEntryManager' not found in wp-content/plugins/acumulus/lib/siel/acumulus/src/MyWebShop/Shop/AcumulusEntryManager.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Helpers\\Form' not found in wp-content/plugins/acumulus/lib/siel/acumulus/src/Shop/BatchForm.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Shop\\AcumulusEntryManager' not found in wp-content/plugins/acumulus/lib/siel/acumulus/src/OpenCart/Shop/AcumulusEntryManager.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Helpers\\FormHelper' not found in wp-content/plugins/acumulus/lib/siel/acumulus/src/WooCommerce/Helpers/FormHelper.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Magento\\Helpers\\ModuleSpecificTranslations' not found in wp-content/plugins/acumulus/lib/siel/acumulus/src/Magento/Magento1/Helpers/ModuleSpecificTranslations.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Helpers\\Form' not found in wp-content/plugins/acumulus/lib/siel/acumulus/src/Shop/InvoiceStatusForm.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\OpenCart\\Helpers\\FormRenderer' not found in wp-content/plugins/acumulus/lib/siel/acumulus/src/OpenCart/OpenCart1/Helpers/FormRenderer.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Config\\ConfigStore' not found in wp-content/plugins/acumulus/lib/siel/acumulus/src/Magento/Magento1/Config/ConfigStore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Helpers\\TranslationCollection' not found in wp-content/plugins/acumulus/lib/siel/acumulus/src/OpenCart/Helpers/ModuleSpecificTranslations.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Helpers\\FormRenderer' not found in wp-content/plugins/acumulus/lib/siel/acumulus/src/Joomla/Helpers/FormRenderer.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: boekhoudsoftware, boekhoudpakket, acumulus, boekhouding, administratie

acumulus/acumulus.php Passed 13 tests

This is the main PHP file of "Acumulus" version 6.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
31 characters long description:
Acumulus plugin for WooCommerce

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
Good job! No executable or dangerous file extensions detected23,077 lines of code in 203 files:
LanguageFilesBlank linesComment linesLines of code
PHP1973,02216,37422,658
CSS15513229
Markdown220099
SVG20255
JavaScript142336

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity13.84
▷ Minimum class complexity1.00
▷ Maximum class complexity253.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces56
Interfaces4
Traits0
Classes185
▷ Abstract classes179.19%
▷ Concrete classes16890.81%
▷ Final classes00.00%
Methods1,395
▷ Static methods141.00%
▷ Public methods61644.16%
▷ Protected methods75954.41%
▷ Private methods201.43%
Functions15
▷ Named functions00.00%
▷ Anonymous functions15100.00%
Constants325
▷ Global constants10.31%
▷ Class constants32499.69%
▷ Public constants324100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin