89% fast-select-woo-attributes

Code Review | fast select Attributes for WooCommerce

WordPress plugin fast select Attributes for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: fast-select-woo-a...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Dec 9, 2020
  • Latest release: Dec 9, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: akherati (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /331 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by fast select Attributes for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.34 ▼3.51
Dashboard /wp-admin3.31 ▼0.0447.76 ▼17.28
Posts /wp-admin/edit.php3.36 ▲0.0048.61 ▲3.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.80 ▼1.25
Media Library /wp-admin/upload.php3.23 ▲0.0035.82 ▼1.58

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for fast select Attributes for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7914.24 ▼0.101.78 ▲0.0438.67 ▼6.83
Dashboard /wp-admin2,198 ▲215.55 ▼0.0385.90 ▼23.7037.86 ▼5.96
Posts /wp-admin/edit.php2,097 ▼61.97 ▼0.0034.76 ▼5.2336.16 ▲2.11
Add New Post /wp-admin/post-new.php1,532 ▼323.43 ▲5.47599.57 ▼36.7668.82 ▼7.16
Media Library /wp-admin/upload.php1,400 ▲34.20 ▼0.00101.78 ▲0.8042.74 ▼0.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Contributors: No valid plugin tags found
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

fast-select-woo-attributes/attr-search.php 92% from 13 tests

The main PHP script in "fast select Attributes for WooCommerce" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fast-select-woo-attributes.php" instead of "attr-search.php")

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 detected18 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11913
JavaScript2014
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin