93% advance-frontend-customizer

Code Review | Frontend Customizer for WooCommerce

WordPress plugin Frontend Customizer for WooCommerce scored 93% from 54 tests.

About plugin

  • Plugin page: advance-frontend-...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-5.4
  • WordPress version: 5.8.1
  • First release: Sep 21, 2018
  • Latest release: Apr 2, 2020
  • Number of updates: 9
  • Update frequency: every 63.1 days
  • Top authors: biztechc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 499 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Frontend Customizer for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.81 ▲15.85
Dashboard /wp-admin3.06 ▲0.0047.16 ▲6.87
Posts /wp-admin/edit.php3.11 ▼0.0141.50 ▼13.51
Add New Post /wp-admin/post-new.php5.42 ▼0.0289.18 ▼571.95
Media Library /wp-admin/upload.php3.01 ▲0.0035.35 ▲0.84

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Frontend Customizer for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲6615.76 ▲0.209.59 ▼0.8148.93 ▼3.25
Dashboard /wp-admin2,963 ▲325.91 ▼0.03144.61 ▼21.98123.51 ▼0.43
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0165.30 ▼3.9991.55 ▲3.03
Add New Post /wp-admin/post-new.php1,500 ▼18318.87 ▲0.04394.15 ▲6.03112.50 ▲3.03
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.01174.46 ▲11.99133.81 ▲11.46

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
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
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
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/advance-frontend-customizer/woo-frontend-customizer.php
    • > /wp-content/plugins/advance-frontend-customizer/include/admin/settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
You can look at the official readme.txt

advance-frontend-customizer/woo-frontend-customizer.php 85% from 13 tests

"Frontend Customizer for WooCommerce" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("advance-frontend-customizer.php" instead of "woo-frontend-customizer.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin575 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3141222448
JavaScript114879
CSS11348

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png85.13KB32.21KB▼ 62.17%