84% front-editor-for-woocommerce

Code Review | Front Editor for Woocommerce

WordPress plugin Front Editor for Woocommerce scored 84% from 54 tests.

About plugin

  • Plugin page: front-editor-for-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3.14+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 1, 2018
  • Latest release: Oct 1, 2018
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: briarinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Front Editor for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.74 ▼0.13
Dashboard /wp-admin3.32 ▲0.0149.35 ▲3.23
Posts /wp-admin/edit.php3.37 ▲0.0149.44 ▲0.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.61 ▲9.11
Media Library /wp-admin/upload.php3.24 ▲0.0134.59 ▲0.23

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

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

Browser metrics Passed 4 tests

Front Editor for Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.28 ▼1.101.78 ▼0.4346.23 ▼7.77
Dashboard /wp-admin2,209 ▲185.86 ▲0.9997.50 ▼4.4639.11 ▲0.36
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0341.00 ▲0.1035.17 ▼0.10
Add New Post /wp-admin/post-new.php1,534 ▲1423.43 ▲0.47643.66 ▼65.9653.91 ▼17.91
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.08107.60 ▲5.2946.77 ▲2.66

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

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/front-editor-for-woocommerce/inc/class-front-editor-wc-ajax.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/front-editor-for-woocommerce/inc/class-front-editor-wc-template.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: admin, front editor, woocommerce, editor, edit

front-editor-for-woocommerce/front-editor-wc.php 92% from 13 tests

The main PHP file in "Front Editor for Woocommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("front-editor-for-woocommerce.php" instead of "front-editor-wc.php")

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
Everything looks great! No dangerous files found in this plugin4,972 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JSON2004,775
PHP47363123
JavaScript3252773
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.33
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods13
▷ Static methods17.69%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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