78% ean-upc-and-isbn-for-woocommerce

Code Review | EAN, UPC and ISBN for WooCommerce

WordPress plugin EAN, UPC and ISBN for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: ean-upc-and-isbn-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 16, 2023
  • Latest release: Jan 16, 2023
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: howdytheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by EAN, UPC and ISBN for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.88 ▼7.29
Dashboard /wp-admin3.31 ▼0.0444.66 ▼14.90
Posts /wp-admin/edit.php3.36 ▲0.0048.07 ▼0.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.06 ▼6.09
Media Library /wp-admin/upload.php3.23 ▲0.0030.23 ▼3.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by EAN, UPC and ISBN for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.44 ▼0.951.52 ▼0.4637.96 ▼5.80
Dashboard /wp-admin2,206 ▲244.84 ▼1.01111.49 ▲6.3243.44 ▲0.81
Posts /wp-admin/edit.php2,092 ▼02.12 ▲0.1338.98 ▼2.9935.15 ▼2.54
Add New Post /wp-admin/post-new.php1,528 ▲1418.08 ▲0.57619.16 ▼66.7556.08 ▼4.87
Media Library /wp-admin/upload.php1,388 ▼34.24 ▼0.0294.49 ▼9.4641.96 ▼0.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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

SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ean-upc-and-isbn-for-woocommerce/ean-upc-and-isbn-for-woocommerce.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ean-upc-and-isbn-for-woocommerce/front/euaifw_frontend.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ean-upc-and-isbn-for-woocommerce/admin/euaifw_backend.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in ean-upc-and-isbn-for-woocommerce/assets to your readme.txt
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

ean-upc-and-isbn-for-woocommerce/ean-upc-and-isbn-for-woocommerce.php 92% from 13 tests

The primary PHP file in "EAN, UPC and ISBN for WooCommerce" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin740 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35834431
JavaScript155146297
CSS10012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions23
▷ Named functions23100.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
PNG images were not found in this plugin