89% wc-tabs

Code Review | Tabs for WooCommerce

WordPress plugin Tabs for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: wc-tabs
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.4-6.0
  • WordPress version: 6.3.1
  • First release: Oct 20, 2022
  • Latest release: Oct 20, 2022
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: wpbranch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 804 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: ▼2.85ms] Passed 4 tests

A check of server-side resources used by Tabs for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.97 ▼1.14
Dashboard /wp-admin3.35 ▲0.0447.97 ▲4.48
Posts /wp-admin/edit.php3.46 ▲0.1045.51 ▼3.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.66 ▼8.70
Media Library /wp-admin/upload.php3.27 ▲0.0435.75 ▲1.90

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
wootabs_lite_db_version
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Tabs for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.68 ▼0.711.86 ▲0.1743.41 ▲0.83
Dashboard /wp-admin2,206 ▲205.82 ▲0.8796.67 ▼17.7039.62 ▼4.86
Posts /wp-admin/edit.php2,086 ▼32.04 ▼0.0134.85 ▼1.1234.28 ▲2.31
Add New Post /wp-admin/post-new.php1,533 ▲1923.15 ▲5.70651.89 ▼26.6554.06 ▼8.97
Media Library /wp-admin/upload.php1,382 ▼94.23 ▲0.0295.64 ▼9.9342.20 ▼3.35

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • wootabs_lite_db_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: custom tab, woo commerce tab, product tabs, woocommerce

wc-tabs/wc-tabs-lite.php 77% from 13 tests

The entry point to "Tabs for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-tabs.php" instead of "wc-tabs-lite.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.9.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin254 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1109175184
JavaScript1101548
JSON10022

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods17
▷ Static methods317.65%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
There were not PNG files found in your plugin