89% display-product-attributes-for-woocommerce

Code Review | Display Product Attributes for WooCommerce

WordPress plugin Display Product Attributes for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: display-product-a...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 20, 2023
  • Latest release: Aug 21, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: jawwadmemon74 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /88 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.08MB] [CPU: ▼5.31ms] Passed 4 tests

A check of server-side resources used by Display Product Attributes for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.41 ▼0.93
Dashboard /wp-admin3.38 ▲0.0847.92 ▼5.16
Posts /wp-admin/edit.php3.50 ▲0.1455.69 ▲2.30
Add New Post /wp-admin/post-new.php5.96 ▲0.0885.43 ▼17.43
Media Library /wp-admin/upload.php3.31 ▲0.0837.42 ▲2.46
WDPA Settings /wp-admin/options-general.php?page=wdpa3.2735.32

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Display Product Attributes for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲6413.59 ▼0.781.93 ▼0.0540.38 ▼3.34
Dashboard /wp-admin2,219 ▲345.89 ▲0.98100.80 ▼3.6839.41 ▼4.08
Posts /wp-admin/edit.php2,098 ▲92.03 ▲0.0042.80 ▲1.3535.96 ▼6.65
Add New Post /wp-admin/post-new.php1,542 ▲2323.48 ▲0.14694.29 ▲12.8354.61 ▲4.24
Media Library /wp-admin/upload.php1,401 ▲134.26 ▲0.06100.49 ▼1.6244.53 ▼1.30
WDPA Settings /wp-admin/options-general.php?page=wdpa8242.0326.0327.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: display product attributes, e-commerce, woocommerce, woocommerce attributes, woocommerce plugin...

display-product-attributes-for-woocommerce/display-woo-product-attributes.php 77% from 13 tests

The primary PHP file in "Display Product Attributes for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("display-product-attributes-for-woocommerce.php" instead of "display-woo-product-attributes.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 385 characters long)

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
Good job! No executable or dangerous file extensions detected311 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10135459311

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.43
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin