83% rockon-woo-variations-table

Code Review | RockOn Woo Variations Table

WordPress plugin RockOn Woo Variations Table scored83%from 54 tests.

About plugin

  • Plugin page: rockon-woo-variat...
  • Plugin version: 6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.6
  • WordPress version: 6.3.1
  • First release: Feb 27, 2018
  • Latest release: Dec 6, 2020
  • Number of updates: 8
  • Update frequency: every 126.8 days
  • Top authors: devikas301 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

An overview of server-side resources used by RockOn Woo Variations Table
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.48 ▼1.07
Dashboard /wp-admin3.31 ▲0.0144.17 ▼2.58
Posts /wp-admin/edit.php3.36 ▲0.0049.40 ▲3.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.63 ▼9.89
Media Library /wp-admin/upload.php3.23 ▲0.0034.92 ▲3.71

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

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

Browser metrics Passed 4 tests

Checking browser requirements for RockOn Woo Variations Table
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.39 ▼1.051.83 ▼0.0942.06 ▼0.86
Dashboard /wp-admin2,206 ▲184.86 ▼0.00106.30 ▼2.5241.63 ▼3.25
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0041.60 ▲1.1637.57 ▲1.67
Add New Post /wp-admin/post-new.php1,547 ▲1818.05 ▼0.13588.23 ▼51.8766.81 ▲15.39
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.0195.30 ▼5.4841.34 ▼0.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rockon-woo-variations-table/ron-woo-variations-table.php

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 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Showing product in table format in the front-end.), #2 (Shortcode example)
Please take inspiration from this readme.txt

rockon-woo-variations-table/ron-woo-variations-table.php 85% from 13 tests

This is the main PHP file of "RockOn Woo Variations Table" version 6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rockon-woo-variations-table.php" instead of "ron-woo-variations-table.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin232 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27223186
CSS18046

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/add-to-cart.png1.50KB0.77KB▼ 48.76%
screenshot-2.PNG4.43KB2.13KB▼ 51.88%
images/spinner.png0.35KB0.54KB0.00%
screenshot-1.png35.15KB13.07KB▼ 62.81%