99% friendly-functions-for-welcart

Code Review | Friendly Functions for Welcart

WordPress plugin Friendly Functions for Welcart scored 99% from 54 tests.

About plugin

  • Plugin page: friendly-function...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Apr 27, 2021
  • Latest release: Oct 8, 2021
  • Number of updates: 11
  • Update frequency: every 15.3 days
  • Top authors: mainichiweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 561 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Friendly Functions for Welcart
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0047.57 ▲7.77
Dashboard /wp-admin3.08 ▲0.0349.12 ▼1.18
Posts /wp-admin/edit.php3.20 ▲0.0952.41 ▲3.47
Add New Post /wp-admin/post-new.php5.42 ▼0.01109.16 ▼544.52
Media Library /wp-admin/upload.php3.01 ▲0.0135.65 ▲2.07

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Friendly Functions for Welcart: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,889 ▲29317.70 ▲1.9310.81 ▲0.3347.14 ▼3.54
Dashboard /wp-admin3,167 ▲2337.83 ▲1.93215.93 ▲61.38119.33 ▲9.82
Posts /wp-admin/edit.php2,978 ▲2394.17 ▲1.4585.46 ▲6.0693.51 ▲3.30
Add New Post /wp-admin/post-new.php3,589 ▲1,90614.96 ▼3.68470.92 ▲67.51115.91 ▲8.72
Media Library /wp-admin/upload.php1,750 ▼574.73 ▼0.30122.78 ▼46.42119.13 ▲7.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

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, but this is not an exhaustive test


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 to be fixed:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

friendly-functions-for-welcart/friendly-functions-for-welcart.php 92% from 13 tests

The primary PHP file in "Friendly Functions for Welcart" version 1.1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,124 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions60100.00%
▷ Anonymous functions00.00%
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
other_tab/img/logo-ffw_square_350.png8.80KB3.05KB▼ 65.30%
other_tab/img/logo-tfs_square_350.png5.34KB2.50KB▼ 53.16%
other_tab/img/logo-cps_square_350.png8.00KB2.89KB▼ 63.88%
other_tab/img/logo-tcw_square_350.png5.16KB2.67KB▼ 48.27%