84% quipu-accounting-for-woocommerce

Code Review | Quipu for WooCommerce

WordPress plugin Quipu for WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: quipu-accounting-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.6
  • WordPress version: 6.3.1
  • First release: Jun 9, 2016
  • Latest release: May 16, 2017
  • Number of updates: 16
  • Update frequency: every 21.3 days
  • Top authors: shadim (81.25%)quipu (25%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active / 1,652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.20ms] Passed 4 tests

A check of server-side resources used by Quipu for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.45 ▼1.84
Dashboard /wp-admin3.32 ▲0.0144.25 ▼6.19
Posts /wp-admin/edit.php3.37 ▲0.0145.23 ▲1.94
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.12 ▲9.54
Media Library /wp-admin/upload.php3.24 ▲0.0135.28 ▲1.30

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Quipu for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.40 ▲0.031.81 ▼0.5843.83 ▼6.38
Dashboard /wp-admin2,212 ▲274.85 ▼1.05111.64 ▲5.9540.51 ▼4.52
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0341.03 ▲2.4336.10 ▼0.90
Add New Post /wp-admin/post-new.php1,548 ▲618.68 ▲0.50594.92 ▼2.2355.37 ▲2.60
Media Library /wp-admin/upload.php1,397 ▲124.22 ▼0.0196.48 ▼6.7642.32 ▼2.12

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/quipu-accounting-for-woocommerce/includes/class-wc-quipu-integration.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quipu-accounting-for-woocommerce/woocommerce-quipu.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === quipu-accounting-for-woocommerce === )
Please take inspiration from this readme.txt

quipu-accounting-for-woocommerce/woocommerce-quipu.php 92% from 13 tests

The entry point to "Quipu for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("quipu-accounting-for-woocommerce.php" instead of "woocommerce-quipu.php")

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
No dangerous file extensions were detected1,202 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8269362947
PO File13869178
Markdown121053
JavaScript16421
CSS1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.12
▷ Minimum class complexity2.00
▷ Maximum class complexity47.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods62
▷ Static methods11.61%
▷ Public methods4267.74%
▷ Protected methods711.29%
▷ Private methods1320.97%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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