84% acumulus

Code Review | Acumulus

WordPress plugin Acumulus scored84%from 54 tests.

About plugin

  • Plugin page: acumulus
  • Plugin version: 8.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2016
  • Latest release: Sep 21, 2023
  • Number of updates: 108
  • Update frequency: every 26.2 days
  • Top authors: SIEL Acumulus (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

300+ active /25,247 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.83ms] Passed 4 tests

A check of server-side resources used by Acumulus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.63 ▼2.33
Dashboard /wp-admin3.31 ▲0.0047.76 ▼3.00
Posts /wp-admin/edit.php3.36 ▲0.0049.47 ▼4.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.37 ▼9.76
Media Library /wp-admin/upload.php3.23 ▲0.0037.97 ▲0.28

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 312 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Acumulus: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.66 ▼0.622.15 ▲0.1842.49 ▼5.26
Dashboard /wp-admin2,203 ▲125.82 ▲0.89108.74 ▼4.5538.53 ▼6.43
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0339.99 ▲2.5036.79 ▲4.34
Add New Post /wp-admin/post-new.php1,513 ▼2017.60 ▼5.49690.54 ▲38.2553.35 ▼6.59
Media Library /wp-admin/upload.php1,391 ▼04.18 ▲0.02100.69 ▲1.0845.97 ▲3.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 190× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Invoice\\CompletorStrategyBase' not found in wp-content/plugins/acumulus/vendor/siel/acumulus/src/Invoice/CompletorStrategy/TryAllVatRatePermutations.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Invoice\\Source' not found in wp-content/plugins/acumulus/vendor/siel/acumulus/src/Joomla/HikaShop/Invoice/Source.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Shop\\InvoiceManager' not found in wp-content/plugins/acumulus/vendor/siel/acumulus/src/Joomla/Shop/InvoiceManager.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Joomla\\Helpers\\ModuleSpecificTranslations' not found in wp-content/plugins/acumulus/vendor/siel/acumulus/src/Joomla/HikaShop/Helpers/ModuleSpecificTranslations.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Helpers\\Mailer' not found in wp-content/plugins/acumulus/vendor/siel/acumulus/src/Magento/Helpers/Mailer.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Helpers\\MessageCollection' not found in wp-content/plugins/acumulus/vendor/siel/acumulus/src/ApiClient/AcumulusResult.php:125
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Collectors\\Collector' not found in wp-content/plugins/acumulus/vendor/siel/acumulus/src/Collectors/EmailAsPdfCollector.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Invoice\\Creator' not found in wp-content/plugins/acumulus/vendor/siel/acumulus/src/OpenCart/Invoice/Creator.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Joomla\\Config\\ShopCapabilities' not found in wp-content/plugins/acumulus/vendor/siel/acumulus/src/Joomla/HikaShop/Config/ShopCapabilities.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Siel\\Acumulus\\Helpers\\ModuleSpecificTranslations' not found in wp-content/plugins/acumulus/vendor/siel/acumulus/src/OpenCart/Helpers/ModuleSpecificTranslations.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: acumulus, boekhoudpakket, administratie, boekhoudsoftware, boekhouding

acumulus/acumulus.php Passed 13 tests

The main PHP script in "Acumulus" version 8.0.2 is automatically included on every request by WordPress
31 characters long description:
Acumulus plugin for WooCommerce

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
Success! There were no dangerous files found in this plugin34,187 lines of code in 301 files:
LanguageFilesBlank linesComment linesLines of code
PHP2924,51922,52833,510
CSS16820286
Markdown3330174
JSON20091
JavaScript1113771
SVG20255

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.40
Average class complexity14.44
▷ Minimum class complexity1.00
▷ Maximum class complexity266.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces59
Interfaces24
Traits5
Classes257
▷ Abstract classes2810.89%
▷ Concrete classes22989.11%
▷ Final classes00.00%
Methods1,999
▷ Static methods462.30%
▷ Public methods90645.32%
▷ Protected methods1,06853.43%
▷ Private methods251.25%
Functions25
▷ Named functions00.00%
▷ Anonymous functions25100.00%
Constants544
▷ Global constants20.37%
▷ Class constants54299.63%
▷ Public constants52296.31%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
acumulus-packing-slip.png0.37KB0.32KB▼ 12.40%
acumulus-invoice.png0.61KB0.52KB▼ 14.47%
pro-support-woocommerce.png7.19KB4.43KB▼ 38.44%