89% wc-product-tabs-plus

Code Review | WC Product Tabs Plus

WordPress plugin WC Product Tabs Plus scored89%from 54 tests.

About plugin

  • Plugin page: wc-product-tabs-plus
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0.0
  • WordPress version: 6.3.1
  • First release: Oct 8, 2016
  • Latest release: Jul 4, 2022
  • Number of updates: 24
  • Update frequency: every 87.3 days
  • Top authors: wooninjas (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /2,835 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.01MB] [CPU: ▼11.01ms] Passed 4 tests

This is a short check of server-side resources used by WC Product Tabs Plus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.11 ▼8.85
Dashboard /wp-admin3.31 ▼0.0449.97 ▼17.12
Posts /wp-admin/edit.php3.36 ▲0.0049.12 ▼1.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.40 ▼16.66
Media Library /wp-admin/upload.php3.23 ▲0.0036.60 ▲0.09

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WC Product Tabs Plus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.15 ▼1.161.64 ▼0.6642.94 ▼1.26
Dashboard /wp-admin2,209 ▲215.91 ▲1.03102.58 ▼15.7441.77 ▲0.50
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0335.74 ▼1.2032.74 ▼3.28
Add New Post /wp-admin/post-new.php1,533 ▼023.12 ▲1.90655.31 ▼9.3359.13 ▲12.88
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.07104.14 ▲2.4744.60 ▼2.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: description, tabs, woocommerce, product info, reviews...

wc-product-tabs-plus/wc-product-tabs-plus.php 85% from 13 tests

Analyzing the main PHP file in "WC Product Tabs Plus" version 1.1.1
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • 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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,265 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP9215209839
JavaScript27089273
CSS19060
Markdown225049
HTML14044

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity19.67
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods35
▷ Static methods3394.29%
▷ Public methods3497.14%
▷ Protected methods12.86%
▷ Private methods00.00%
Functions13
▷ Named functions969.23%
▷ Anonymous functions430.77%
Constants6
▷ Global constants6100.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
No PNG files were detected