90% wcboost-variation-swatches

Code Review | WCBoost - Variation Swatches

WordPress plugin WCBoost - Variation Swatches scored90%from 54 tests.

About plugin

  • Plugin page: wcboost-variation...
  • Plugin version: 1.0.14
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 21, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 29
  • Update frequency: every 24.8 days
  • Top authors: wcboost (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30,000+ active /166,189 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.00MB] [CPU: ▼12.32ms] Passed 4 tests

This is a short check of server-side resources used by WCBoost - Variation Swatches
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.75 ▼8.82
Dashboard /wp-admin3.32 ▼0.0341.56 ▼19.59
Posts /wp-admin/edit.php3.37 ▲0.0147.46 ▲1.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.58 ▼16.55
Media Library /wp-admin/upload.php3.24 ▲0.0132.10 ▼4.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WCBoost - Variation Swatches
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.371.60 ▼0.1437.67 ▼6.06
Dashboard /wp-admin2,195 ▲215.63 ▲0.0092.96 ▼0.8042.29 ▲4.47
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0238.66 ▲3.4036.62 ▲0.94
Add New Post /wp-admin/post-new.php1,526 ▼022.94 ▼0.62678.91 ▼53.3262.00 ▲5.01
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0296.10 ▼14.2041.57 ▼6.03

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed: You can look at the official readme.txt

wcboost-variation-swatches/wcboost-variation-swatches.php Passed 13 tests

The entry point to "WCBoost - Variation Swatches" version 1.0.14 is a PHP file that has certain tags in its header comment area
135 characters long description:
Transform boring dropdown variants into attractive and intuitive swatches, improving user experience and simplifying product selection.

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
No dangerous file extensions were detected2,332 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP134517321,784
JavaScript67846278
CSS2475265
XML1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity25.64
▷ Minimum class complexity2.00
▷ Maximum class complexity66.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods95
▷ Static methods1414.74%
▷ Public methods9296.84%
▷ Protected methods33.16%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.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 are no PNG files in this plugin