78% product-display-for-bigcommerce

Code Review | Product Display for BigCommerce

WordPress plugin Product Display for BigCommerce scored78%from 54 tests.

About plugin

  • Plugin page: product-display-f...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.8
  • WordPress version: 6.3.1
  • First release: Apr 9, 2018
  • Latest release: Apr 9, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: scottcwilson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /625 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 gracefully, with no errors

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

An overview of server-side resources used by Product Display for BigCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.06 ▲5.49
Dashboard /wp-admin3.32 ▲0.0146.10 ▲3.05
Posts /wp-admin/edit.php3.37 ▲0.0143.71 ▼0.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.25 ▼17.65
Media Library /wp-admin/upload.php3.24 ▲0.0134.27 ▼0.80
Product Display for BigCommerce /wp-admin/options-general.php?page=bigcommerce_product_display3.2328.88

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Product Display for BigCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲6413.11 ▼1.292.05 ▲0.1643.57 ▲3.24
Dashboard /wp-admin2,212 ▲244.85 ▼0.02103.44 ▲1.5543.94 ▼1.35
Posts /wp-admin/edit.php2,098 ▲122.04 ▲0.0536.87 ▲0.5231.82 ▼3.05
Add New Post /wp-admin/post-new.php1,519 ▼917.39 ▼0.66678.75 ▲41.6659.16 ▲4.53
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0198.48 ▼5.1440.81 ▼2.66
Product Display for BigCommerce /wp-admin/options-general.php?page=bigcommerce_product_display8212.0226.3624.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bigcommerce_product_display
    • > Notice in wp-content/plugins/product-display-for-bigcommerce/product_display_for_bigcommerce.php+244
    Trying to access array offset on value of type bool

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-display-for-bigcommerce/product_display_for_bigcommerce.php:125

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: bigcommerce

product-display-for-bigcommerce/product_display_for_bigcommerce.php 77% from 13 tests

This is the main PHP file of "Product Display for BigCommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("product-display-for-bigcommerce.php" instead of "product_display_for_bigcommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected209 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15726199
CSS10510

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected