84% integration-allegro-woocommerce

Code Review | Integration of Allegro and WooCommerce

WordPress plugin Integration of Allegro and WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: integration-alleg...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.5
  • WordPress version: 6.3.1
  • First release: Jul 10, 2020
  • Latest release: Aug 17, 2020
  • Number of updates: 4
  • Update frequency: every 9.5 days
  • Top authors: dotandl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Integration of Allegro and WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.01 ▼14.03
Dashboard /wp-admin3.31 ▲0.0145.83 ▼6.48
Posts /wp-admin/edit.php3.42 ▲0.0751.27 ▲6.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.95 ▼10.32
Media Library /wp-admin/upload.php3.23 ▲0.0036.15 ▲3.15

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Integration of Allegro and WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.192.14 ▲0.0544.33 ▲1.39
Dashboard /wp-admin2,209 ▲214.85 ▼1.00103.24 ▼14.9338.78 ▼4.87
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0737.08 ▼0.6337.11 ▲3.46
Add New Post /wp-admin/post-new.php1,536 ▼123.65 ▲0.38631.49 ▼43.8859.70 ▲11.19
Media Library /wp-admin/upload.php1,382 ▼04.15 ▼0.11100.03 ▼1.7544.74 ▲0.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/integration-allegro-woocommerce/sync.php
    • > /wp-content/plugins/integration-allegro-woocommerce/integration-allegro-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: quantity, allegro, synchronize, availability, products...

integration-allegro-woocommerce/integration-allegro-woocommerce.php 85% from 13 tests

The main file in "Integration of Allegro and WooCommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.0.0")

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,241 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22252231,046
PO File13340108
JavaScript1162370
CSS13017

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity52.00
▷ Minimum class complexity51.00
▷ Maximum class complexity53.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods1648.48%
▷ Protected methods00.00%
▷ Private methods1751.52%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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