90% fellow-lasku-for-woocommerce

Code Review | Fellow Lasku for WooCommerce

WordPress plugin Fellow Lasku for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: fellow-lasku-for-...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.7.2
  • WordPress version: 6.3.1
  • First release: May 24, 2021
  • Latest release: Jun 1, 2021
  • Number of updates: 12
  • Update frequency: every 0.8 days
  • Top authors: fellowfinance (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.13ms] Passed 4 tests

Server-side resources used by Fellow Lasku for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.25 ▲0.04
Dashboard /wp-admin3.39 ▲0.0944.86 ▼5.79
Posts /wp-admin/edit.php3.50 ▲0.1547.01 ▼2.09
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.97 ▼4.69
Media Library /wp-admin/upload.php3.31 ▲0.0941.57 ▲7.28

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

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

Browser metrics Passed 4 tests

Fellow Lasku for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.26 ▼1.111.67 ▼0.1343.13 ▼1.35
Dashboard /wp-admin2,206 ▲185.91 ▲1.05116.04 ▲3.2841.04 ▼10.19
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0841.06 ▲0.9835.84 ▲1.45
Add New Post /wp-admin/post-new.php1,514 ▼2017.71 ▼5.75673.39 ▲1.8765.10 ▲8.67
Media Library /wp-admin/upload.php1,382 ▼94.22 ▲0.0095.89 ▼8.0244.18 ▼1.19

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: fellow finance, fellow lasku, payment gateway, woocommerce payment gateway

fellow-lasku-for-woocommerce/fellow-lasku-for-woocommerce.php 92% from 13 tests

The main PHP file in "Fellow Lasku for WooCommerce" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.2" instead of "5.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,050 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP421390907
PO File1556122
JavaScript17021

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.11
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods3384.62%
▷ Protected methods00.00%
▷ Private methods615.38%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
19 PNG files occupy 0.33MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo/box-1-w100.png13.22KB2.59KB▼ 80.38%
logo/box-1-w200.png20.25KB5.10KB▼ 74.82%
logo/wide-1-h100.png22.44KB7.41KB▼ 66.99%
logo/fellow-1-h100.png16.45KB5.75KB▼ 65.04%
logo/fellow-1-h50.png10.42KB3.24KB▼ 68.88%