84% blackswan-woo-attributes-easy-select

Code Review | BlackSwan Easy-Select Attributes for WooCommerce

WordPress plugin BlackSwan Easy-Select Attributes for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: blackswan-woo-att...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 25, 2022
  • Latest release: Jun 25, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: amirhpcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /231 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼14.66ms] Passed 4 tests

An overview of server-side resources used by BlackSwan Easy-Select Attributes for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.22 ▼2.22
Dashboard /wp-admin3.32 ▼0.0341.69 ▼35.10
Posts /wp-admin/edit.php3.37 ▲0.0144.15 ▼3.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.85 ▼17.69
Media Library /wp-admin/upload.php3.24 ▲0.0135.53 ▲4.20

Server storage [IO: ▲0.23MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for BlackSwan Easy-Select Attributes for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.58 ▲0.021.55 ▼0.2438.29 ▲0.14
Dashboard /wp-admin2,198 ▲185.64 ▼0.0292.19 ▲0.6041.87 ▲2.39
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0340.73 ▲5.0336.01 ▲2.28
Add New Post /wp-admin/post-new.php1,526 ▼1023.53 ▲5.02636.64 ▼24.1653.74 ▼36.57
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.0393.79 ▼0.4242.89 ▲0.86

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/blackswan-woo-attributes-easy-select/blackswan-easy-select-attributes.php

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: blackswan, attribute, amirhp, woocommerce

blackswan-woo-attributes-easy-select/blackswan-easy-select-attributes.php 85% from 13 tests

"BlackSwan Easy-Select Attributes for WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("blackswan-woo-attributes-easy-select.php" instead of "blackswan-easy-select-attributes.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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 detected46 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP102525
JavaScript10015
Markdown1406

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png190.38KB78.55KB▼ 58.74%