90% woovariations

Code Review | WooVariations

WordPress plugin WooVariations scored90%from 54 tests.

About plugin

  • Plugin page: woovariations
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-4.4
  • WordPress version: 6.3.1
  • First release: Jan 4, 2016
  • Latest release: Jan 4, 2016
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: Flaeron (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /923 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.41ms] Passed 4 tests

Analyzing server-side resources used by WooVariations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.91 ▼3.54
Dashboard /wp-admin3.31 ▲0.0148.75 ▼4.60
Posts /wp-admin/edit.php3.36 ▲0.0147.21 ▼3.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.04 ▼2.49
Media Library /wp-admin/upload.php3.24 ▲0.0139.68 ▲7.59
WooVariations /wp-admin/admin.php?page=woovariations3.2031.42

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooVariations
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.48 ▲0.111.70 ▼0.4143.93 ▼7.28
Dashboard /wp-admin2,209 ▲185.88 ▲1.01113.08 ▼0.1841.62 ▼0.31
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0033.24 ▼5.2434.96 ▼1.96
Add New Post /wp-admin/post-new.php1,519 ▲523.13 ▼0.46659.89 ▲4.1856.09 ▲6.24
Media Library /wp-admin/upload.php1,385 ▼64.25 ▼0.0192.51 ▼8.9444.32 ▲1.75
WooVariations /wp-admin/admin.php?page=woovariations7872.0625.0524.31

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: plugin, woocommerce, variations

woovariations/woovariations.php Passed 13 tests

"WooVariations" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
101 characters long description:
Add opportunity to choose product variations on category/product list page with "Add to cart" button.

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
Everything looks great! No dangerous files found in this plugin127 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23765110
CSS10017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
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 were not PNG files found in your plugin