83% frontend-product-editor

Code Review | Frontend Product Editor for WooCommerce

WordPress plugin Frontend Product Editor for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: frontend-product-...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 19, 2022
  • Latest release: Oct 13, 2023
  • Number of updates: 35
  • Update frequency: every 18.3 days
  • Top authors: anand.au14 (71.43%)wpvibes (31.43%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /2,177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.99ms] Passed 4 tests

Server-side resources used by Frontend Product Editor for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1844.56 ▲0.14
Dashboard /wp-admin3.47 ▲0.1354.05 ▼16.71
Posts /wp-admin/edit.php3.59 ▲0.2353.87 ▲4.78
Add New Post /wp-admin/post-new.php6.06 ▲0.1791.47 ▼8.15
Media Library /wp-admin/upload.php3.40 ▲0.1743.80 ▲6.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Frontend Product Editor for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.211.66 ▼0.2645.02 ▲2.71
Dashboard /wp-admin2,195 ▲245.62 ▼0.0488.52 ▼5.7538.15 ▼6.50
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0440.09 ▲3.3137.24 ▼3.55
Add New Post /wp-admin/post-new.php1,536 ▲1023.18 ▲0.17626.70 ▼35.7251.15 ▼9.96
Media Library /wp-admin/upload.php1,397 ▼04.21 ▲0.03101.86 ▲2.0645.93 ▲0.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant WPVFPE_PATH - assumed 'WPVFPE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/frontend-product-editor/includes/init.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPV_FPE\\add_action() in wp-content/plugins/frontend-product-editor/includes/init.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'WPV_FPE\\Editor\\BaseEditor' not found in wp-content/plugins/frontend-product-editor/includes/editor/single.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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
These attributes need your attention: The official readme.txt might help

frontend-product-editor/frontend-product-editor.php 77% from 13 tests

"Frontend Product Editor for WooCommerce" 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:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
  • Domain Path: Prefix the domain path with a forward slash character ("//")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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,247 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP153094691,162
JavaScript441776
JSON1005
CSS3003
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity18.44
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods64
▷ Static methods2437.50%
▷ Public methods5992.19%
▷ Protected methods34.69%
▷ Private methods23.12%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin