90% tabs-for-woocommerce

Code Review | Tabs for WooCommerce

WordPress plugin Tabs for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: tabs-for-woocommerce
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.6
  • WordPress version: 6.3.1
  • First release: Apr 15, 2020
  • Latest release: Jan 28, 2021
  • Number of updates: 4
  • Update frequency: every 72.3 days
  • Top authors: tooltipsorg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.70ms] Passed 4 tests

Server-side resources used by Tabs for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1148.05 ▲6.19
Dashboard /wp-admin3.41 ▲0.0755.28 ▼6.66
Posts /wp-admin/edit.php3.51 ▲0.1553.82 ▲3.87
Add New Post /wp-admin/post-new.php6.00 ▲0.1095.18 ▼26.20
Media Library /wp-admin/upload.php3.34 ▲0.1045.63 ▲8.09
All Tabs /wp-admin/edit.php?post_type=woocommercetabs3.3645.51
Add New /wp-admin/post-new.php?post_type=woocommercetabs3.4556.07
Global Settings /wp-admin/edit.php?post_type=woocommercetabs&page=tabglobalsettings3.3040.38

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tabs for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.38 ▼0.201.91 ▲0.1941.29 ▲3.46
Dashboard /wp-admin2,226 ▲455.63 ▼0.2492.56 ▼11.2742.72 ▲1.64
Posts /wp-admin/edit.php2,131 ▲311.98 ▼0.0141.24 ▲4.4537.99 ▲2.36
Add New Post /wp-admin/post-new.php1,552 ▲1723.48 ▲5.27674.34 ▲34.5567.05 ▼7.10
Media Library /wp-admin/upload.php1,431 ▲344.22 ▲0.09118.98 ▲20.0554.72 ▲8.37
All Tabs /wp-admin/edit.php?post_type=woocommercetabs1,1001.9637.1931.48
Add New /wp-admin/post-new.php?post_type=woocommercetabs2,3917.68167.1468.27
Global Settings /wp-admin/edit.php?post_type=woocommercetabs&page=tabglobalsettings8742.0324.7825.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: woocommerce product tabs

tabs-for-woocommerce/product-tabs-for-woowommerce.php 92% from 13 tests

The principal PHP file in "Tabs for WooCommerce" v. 1.0.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tabs-for-woocommerce.php" instead of "product-tabs-for-woowommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin281 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24910281

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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 functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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