68% contabilium-oficial-para-woo

Code Review | Contabilium Oficial para WooCommerce

WordPress plugin Contabilium Oficial para WooCommerce scored68%from 54 tests.

About plugin

  • Plugin page: contabilium-ofici...
  • Plugin version: 2.8.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2020
  • Latest release: Jun 21, 2023
  • Number of updates: 54
  • Update frequency: every 17.9 days
  • Top authors: contabilium (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,844 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Contabilium Oficial para WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.70 ▼1.73
Dashboard /wp-admin3.31 ▼0.0347.07 ▼19.62
Posts /wp-admin/edit.php3.37 ▲0.0147.29 ▼1.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.80 ▼18.14
Media Library /wp-admin/upload.php3.24 ▲0.0133.94 ▼0.40

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_contabilium_log
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Contabilium Oficial para WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.23 ▼0.191.74 ▼0.3041.65 ▲2.00
Dashboard /wp-admin2,197 ▲205.55 ▼0.0387.86 ▼5.2638.28 ▼3.13
Posts /wp-admin/edit.php2,102 ▲22.01 ▲0.0534.01 ▼1.9736.23 ▼2.82
Add New Post /wp-admin/post-new.php1,536 ▼118.24 ▲0.12617.29 ▼36.1993.18 ▲32.29
Media Library /wp-admin/upload.php1,405 ▲54.15 ▼0.03101.93 ▲7.1844.45 ▼1.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_contabilium_log
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/contabilium-oficial-para-woo/contabilium-oficial-woo.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contabilium-oficial-para-woo/api.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contabilium-oficial-para-woo/includes/manage-orders.php:197

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

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: erp, woocommerce, facturacion electronica, sync stock, contabilium

contabilium-oficial-para-woo/contabilium-oficial-woo.php 77% from 13 tests

"Contabilium Oficial para WooCommerce" version 2.8.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("contabilium-oficial-para-woo.php" instead of "contabilium-oficial-woo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,421 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6236881,345
SVG11176

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity24.00
▷ Minimum class complexity12.00
▷ Maximum class complexity43.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods2080.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions28
▷ Named functions2692.86%
▷ Anonymous functions27.14%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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