90% woocommerce-custom-product-tabs-lite

Code Review | Custom Product Tabs Lite for WooCommerce

WordPress plugin Custom Product Tabs Lite for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-custo...
  • Plugin version: 1.8.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 15, 2012
  • Latest release: Jul 28, 2023
  • Number of updates: 105
  • Update frequency: every 39.6 days
  • Top authors: SkyVerge (68.57%)FoxRunSoftware (31.43%)maxrice (1.9%)

Code review

54 tests

User reviews

33 reviews

Install metrics

7,000+ active /268,362 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.18ms] Passed 4 tests

Analyzing server-side resources used by Custom Product Tabs Lite for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0444.12 ▲0.54
Dashboard /wp-admin3.38 ▲0.0450.27 ▼4.14
Posts /wp-admin/edit.php3.50 ▲0.1049.00 ▼1.98
Add New Post /wp-admin/post-new.php5.96 ▲0.0490.12 ▼14.21
Media Library /wp-admin/upload.php3.31 ▲0.0434.52 ▼0.38

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Product Tabs Lite for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.38 ▲0.031.72 ▲0.1644.27 ▲2.95
Dashboard /wp-admin2,209 ▲295.63 ▼0.0194.51 ▲4.1946.71 ▲5.13
Posts /wp-admin/edit.php2,111 ▲112.00 ▼0.0134.39 ▼2.0335.18 ▼3.35
Add New Post /wp-admin/post-new.php1,540 ▲1423.73 ▲0.53614.09 ▼7.3253.43 ▼0.50
Media Library /wp-admin/upload.php1,408 ▲84.17 ▲0.02101.31 ▼4.0046.09 ▲1.94

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
4 plugin tags: woocommerce, custom tab, product tabs, woo commerce tab

woocommerce-custom-product-tabs-lite/woocommerce-custom-product-tabs-lite.php 92% from 13 tests

The main file in "Custom Product Tabs Lite for WooCommerce" v. 1.8.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.6" instead of "3.9.4")

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
There were no executable files found in this plugin179 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1109187179

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods318.75%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-2.png65.70KB70.45KB0.00%
screenshots/screenshot-1.png35.27KB11.72KB▼ 66.76%