73% build-private-store-for-woocommerce

Code Review | Build Private Store For Woocommerce

WordPress plugin Build Private Store For Woocommerce scored73%from 54 tests.

About plugin

  • Plugin page: build-private-sto...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 18, 2022
  • Latest release: Oct 2, 2023
  • Number of updates: 7
  • Update frequency: every 63.4 days
  • Top authors: silverplugins217 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /900 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 successfully, without throwing any errors or notices

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

Server-side resources used by Build Private Store For Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.22 ▲0.14
Dashboard /wp-admin3.37 ▲0.0363.54 ▲1.81
Posts /wp-admin/edit.php3.49 ▲0.1363.67 ▲12.83
Add New Post /wp-admin/post-new.php5.97 ▲0.09105.46 ▲4.42
Media Library /wp-admin/upload.php3.29 ▲0.0755.09 ▲17.76
Users Pending Approval /wp-admin/users.php?page=panding-new-users3.2743.66
Approved Users /wp-admin/users.php?page=approve-new-users3.2748.45
Denied Users /wp-admin/users.php?page=denied-new-users3.2748.84

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Build Private Store For Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲20413.81 ▼0.434.54 ▲2.4528.77 ▼15.35
Dashboard /wp-admin2,278 ▲755.04 ▲0.17103.29 ▼6.7740.81 ▼2.90
Posts /wp-admin/edit.php2,162 ▲622.51 ▲0.5038.16 ▼2.1834.52 ▼2.07
Add New Post /wp-admin/post-new.php1,577 ▲3823.14 ▼0.02666.01 ▲11.0136.51 ▼17.48
Media Library /wp-admin/upload.php1,463 ▲634.45 ▲0.16103.44 ▼7.1447.72 ▼2.52
Users Pending Approval /wp-admin/users.php?page=panding-new-users9981.9930.3231.07
Approved Users /wp-admin/users.php?page=approve-new-users1,0011.9735.5231.28
Denied Users /wp-admin/users.php?page=denied-new-users9951.9928.2126.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/build-private-store-for-woocommerce/build-private-store-for-woocommerce.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/build-private-store-for-woocommerce/main/resource/bpsfw-load-my-plugin.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/resource/bpsfw-installation-require.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/resource/bpsfw-load-js-css.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/backend/bpsfw-common.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/build-private-store-for-woocommerce/main/frontend/bpsfw-frontend.php:285
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/resource/bpsfw-language.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/resource/bpsfw-load-my-textdomain.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/backend/bpsfw-backend.php:565
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/build-private-store-for-woocommerce/main/bpsfw-common.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=denied-new-users
    • > Network (severe)
    wp-content/plugins/woocommerce/assets/css/admin.css?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

build-private-store-for-woocommerce/build-private-store-for-woocommerce.php Passed 13 tests

The main PHP file in "Build Private Store For Woocommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
This plugin allows create OC Private Store For Woocommerce plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,752 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP9161151,255
JavaScript275146423
CSS11074

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.67
▷ Minimum class complexity9.00
▷ Maximum class complexity11.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2187.50%
▷ Protected methods00.00%
▷ Private methods312.50%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/star.png39.75KB10.35KB▼ 73.95%