99% wk-variation-selector

Code Review | Wooketing Variation Selector

WordPress plugin Wooketing Variation Selector scored 99% from 54 tests.

About plugin

  • Plugin page: wk-variation-sele...
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7.3
  • WordPress version: 5.9.2
  • First release: Jun 28, 2017
  • Latest release: Oct 6, 2017
  • Number of updates: 16
  • Update frequency: every 6.3 days
  • Top authors: hoapx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 756 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.68ms] Passed 4 tests

A check of server-side resources used by Wooketing Variation Selector
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0165.96 ▲7.19
Dashboard /wp-admin3.41 ▲0.0136.23 ▲0.80
Posts /wp-admin/edit.php3.65 ▲0.0141.95 ▲1.72
Add New Post /wp-admin/post-new.php6.88 ▼0.0997.56 ▼1,187.86
Media Library /wp-admin/upload.php3.30 ▲0.0027.23 ▲2.63

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Wooketing Variation Selector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲8316.02 ▲0.416.31 ▲0.563.07 ▲0.44
Dashboard /wp-admin2,902 ▲446.12 ▼0.04116.69 ▼16.21153.82 ▼9.16
Posts /wp-admin/edit.php2,704 ▲133.23 ▲0.0067.49 ▲3.69138.86 ▼2.81
Add New Post /wp-admin/post-new.php1,723 ▲6221.41 ▲5.65411.43 ▼16.30159.95 ▲3.18
Media Library /wp-admin/upload.php1,708 ▲105.55 ▲0.06138.30 ▼12.10188.47 ▼1.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === wk-variation-selector === )
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

wk-variation-selector/wooketing-variation-selector.php 92% from 13 tests

The primary PHP file in "Wooketing Variation Selector" version 1.1.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wk-variation-selector.php" instead of "wooketing-variation-selector.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,411 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript212990814
PHP7100258473
CSS21838124

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.00
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods26
▷ Static methods311.54%
▷ Public methods2596.15%
▷ Protected methods13.85%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin