83% woocommerce-frontend-shop-manager-free-version

Code Review | WooCommerce Frontend Shop Manager - Free Version

WordPress plugin WooCommerce Frontend Shop Manager - Free Version scored83%from 54 tests.

About plugin

  • Plugin page: woocommerce-front...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2015
  • Latest release: Jun 29, 2015
  • Number of updates: 19
  • Update frequency: every 1.4 days
  • Top authors: dzeriho (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /16,491 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.06MB] [CPU: ▼4.09ms] Passed 4 tests

A check of server-side resources used by WooCommerce Frontend Shop Manager - Free Version
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.06 ▼9.70
Dashboard /wp-admin3.36 ▲0.0644.36 ▼7.56
Posts /wp-admin/edit.php3.41 ▲0.0645.50 ▼0.71
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.15 ▲3.31
Media Library /wp-admin/upload.php3.29 ▲0.0636.13 ▲1.60

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Frontend Shop Manager - Free Version
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.66 ▼0.621.82 ▼0.0541.40 ▼2.99
Dashboard /wp-admin2,206 ▲145.85 ▲0.94112.44 ▼6.9641.29 ▼2.53
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0140.04 ▲4.2934.06 ▼3.69
Add New Post /wp-admin/post-new.php1,514 ▼017.87 ▲0.24694.86 ▲48.0856.11 ▲2.52
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.00102.57 ▲6.2042.11 ▼1.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-frontend-shop-manager-free-version/woocommerce-frontend-shop-manager.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

woocommerce-frontend-shop-manager-free-version/woocommerce-frontend-shop-manager.php 85% from 13 tests

The entry point to "WooCommerce Frontend Shop Manager - Free Version" version 1.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 230 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-frontend-shop-manager-free-version.php" instead of "woocommerce-frontend-shop-manager.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
Good job! No executable or dangerous file extensions detected2,336 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS347681,214
JavaScript5166147613
PHP11008379
HTML140113
SVG11017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity6.80
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods330.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/about.png4.35KB0.87KB▼ 80.01%
assets/images/editing.png5.52KB1.69KB▼ 69.32%
assets/images/overlay.png3.69KB0.47KB▼ 87.28%