78% woo-shop-front-customizer

Code Review | Woo Shop Front Customizer

WordPress plugin Woo Shop Front Customizer scored78%from 54 tests.

About plugin

  • Plugin page: woo-shop-front-cu...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Jul 19, 2017
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: ukwpexperts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /947 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.03ms] Passed 4 tests

Server-side resources used by Woo Shop Front Customizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0645.51 ▲2.31
Dashboard /wp-admin3.37 ▲0.0648.18 ▼4.18
Posts /wp-admin/edit.php3.42 ▲0.0649.79 ▼4.83
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.42 ▼21.43
Media Library /wp-admin/upload.php3.29 ▲0.0638.38 ▲3.41
Front Customizer /wp-admin/admin.php?page=woo-shop-front-customizer3.3635.79

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Woo Shop Front Customizer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.34 ▼0.021.62 ▼0.3237.93 ▼8.92
Dashboard /wp-admin2,202 ▲255.65 ▲0.1290.96 ▼4.7440.05 ▼2.94
Posts /wp-admin/edit.php2,110 ▲72.01 ▼0.0039.67 ▼3.9934.73 ▼1.70
Add New Post /wp-admin/post-new.php1,533 ▲722.96 ▼0.16647.71 ▼9.0254.91 ▲4.23
Media Library /wp-admin/upload.php1,410 ▲74.24 ▲0.04100.18 ▼15.0545.10 ▼2.87
Front Customizer /wp-admin/admin.php?page=woo-shop-front-customizer1,3642.0125.3030.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woo-shop-front-customizer
    • > Notice in wp-content/plugins/woo-shop-front-customizer/admin/view.php+92
    Undefined variable: wsfcwsfcshowProductPrice

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woo-shop-front-customizer/woo-shop-front-customizer.php:11

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: woocommerce

woo-shop-front-customizer/woo-shop-front-customizer.php 92% from 13 tests

Analyzing the main PHP file in "Woo Shop Front Customizer" version 1.0.0
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
No dangerous file extensions were detected569 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3109399
JavaScript100116
CSS10054

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin