93% woo-advanced-extra-fees-lite

Code Review | WooCommerce Advanced Extra Fees Lite

WordPress plugin WooCommerce Advanced Extra Fees Lite scored 93% from 54 tests.

About plugin

  • Plugin page: woo-advanced-extr...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 5.9.2
  • First release: Feb 5, 2018
  • Latest release: Feb 8, 2022
  • Number of updates: 86
  • Update frequency: every 17.0 days
  • Top authors: idomit (84.88%)multisquares (16.28%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active / 8,120 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼310.83ms] Passed 4 tests

Server-side resources used by WooCommerce Advanced Extra Fees Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0175.31 ▲16.03
Dashboard /wp-admin3.41 ▲0.0037.54 ▼1.91
Posts /wp-admin/edit.php3.64 ▲0.0041.33 ▼7.64
Add New Post /wp-admin/post-new.php6.88 ▼0.0999.36 ▼1,217.76
Media Library /wp-admin/upload.php3.29 ▲0.0025.90 ▼16.01

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Advanced Extra Fees Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲6116.01 ▲0.035.88 ▼0.202.38 ▼0.12
Dashboard /wp-admin2,895 ▲376.13 ▼0.14124.43 ▼7.69203.11 ▼38.60
Posts /wp-admin/edit.php2,694 ▲93.24 ▲0.0165.95 ▲0.88138.64 ▼40.48
Add New Post /wp-admin/post-new.php1,668 ▲717.96 ▲0.20399.14 ▲3.25183.97 ▲10.73
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.03138.85 ▲0.17180.54 ▼10.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-advanced-extra-fees-lite/admin/partials/woocommerce-advanced-extra-fees-lite-admin-display.php
    • > /wp-content/plugins/woo-advanced-extra-fees-lite/public/partials/woocommerce-advanced-extra-fees-lite-public-display.php

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

woo-advanced-extra-fees-lite/woocommerce-advanced-extra-fees.php 85% from 13 tests

"WooCommerce Advanced Extra Fees Lite" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • 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 ("woo-advanced-extra-fees-lite.php" instead of "woocommerce-advanced-extra-fees.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
Good job! No executable or dangerous file extensions detected1,624 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP236701,3201,346
CSS21426176
JavaScript22137102

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.73
▷ Minimum class complexity1.00
▷ Maximum class complexity128.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods80
▷ Static methods22.50%
▷ Public methods7593.75%
▷ Protected methods00.00%
▷ Private methods56.25%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/waeficon.png1.79KB1.21KB▼ 32.48%