69% integration-sirfiliate-woocommerce

Code Review | Integration for SirFiliate with WooCommerce

WordPress plugin Integration for SirFiliate with WooCommerce scored 69% from 54 tests.

About plugin

  • Plugin page: integration-sirfi...
  • Plugin version: 1.3.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2022
  • Latest release: Dec 14, 2022
  • Number of updates: 4
  • Update frequency: every 9.0 days
  • Top authors: teamwsa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 800 total downloads

Benchmarks

Plugin footprint 48% 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: ▼6.48ms] Passed 4 tests

A check of server-side resources used by Integration for SirFiliate with WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.69 ▼2.47
Dashboard /wp-admin3.31 ▲0.0044.08 ▼4.69
Posts /wp-admin/edit.php3.36 ▲0.0047.19 ▲0.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.11 ▼16.42
Media Library /wp-admin/upload.php3.23 ▲0.0034.89 ▼2.34

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 133 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Integration for SirFiliate with WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.62 ▼0.731.57 ▼0.3139.31 ▼10.22
Dashboard /wp-admin2,206 ▲185.91 ▲0.91103.83 ▼0.6537.59 ▼3.44
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0539.66 ▼0.0133.42 ▼1.17
Add New Post /wp-admin/post-new.php1,514 ▼3017.65 ▼0.69631.89 ▼11.7658.43 ▼9.55
Media Library /wp-admin/upload.php1,385 ▼04.38 ▲0.1995.74 ▼2.5243.27 ▼2.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/integration-sirfiliate-woocommerce/vendor/woosa/settings/class-module-settings.php+16
    include_once(wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php): failed to open stream: No such file or directory
  • The plugin did not uninstall successfully, leaving 133 files (0.33MB) in the plugin directory
    • (new file) includes/order/index.php
    • (new file) includes/action-bulker/index.php
    • (new file) includes/order/class-order-hook-ajax.php
    • (new file) includes/order/assets/js/order.js
    • (new file) includes/order/class-order-hook.php
    • (new file) includes/authorization/index.php
    • (new file) includes/order/class-order-hook-assets.php
    • (new file) includes/action-bulker/class-action-bulker-hook.php
    • (new file) includes/authorization/class-authorization-hook-settings.php
    • (new file) includes/product/class-product.php
    • ...
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
  • Screenshots: Please add an image for screenshot #1 (General settings)
Please take inspiration from this readme.txt

integration-sirfiliate-woocommerce/integration-sirfiliate-woocommerce.php Passed 13 tests

Analyzing the main PHP file in "Integration for SirFiliate with WooCommerce" version 1.3.2
44 characters long description:
Connect your shop with Sir Filiate platform.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,029 lines of code in 130 files:
LanguageFilesBlank linesComment linesLines of code
PHP883,1503,1995,276
CSS310681509
JavaScript519830459
Markdown211570418
JSON1300367

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.20
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces3
Interfaces3
Traits0
Classes58
▷ Abstract classes23.45%
▷ Concrete classes5696.55%
▷ Final classes00.00%
Methods401
▷ Static methods24160.10%
▷ Public methods36390.52%
▷ Protected methods368.98%
▷ Private methods20.50%
Functions13
▷ Named functions17.69%
▷ Anonymous functions1292.31%
Constants13
▷ Global constants1292.31%
▷ Class constants17.69%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin