90% product-tabs-for-woocommerce

Code Review | Additional Custom Product Tabs for WooCommerce

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

About plugin

  • Plugin page: product-tabs-for-...
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Oct 11, 2015
  • Latest release: Nov 20, 2023
  • Number of updates: 27
  • Update frequency: every 109.9 days
  • Top authors: algoritmika (81.48%)wpcodefactory (22.22%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /7,219 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.01MB] [CPU: ▲0.43ms] Passed 4 tests

Server-side resources used by Additional Custom Product Tabs for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.69 ▼1.58
Dashboard /wp-admin3.32 ▲0.0248.51 ▲0.94
Posts /wp-admin/edit.php3.38 ▲0.0148.83 ▼1.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0196.85 ▲5.85
Media Library /wp-admin/upload.php3.25 ▲0.0136.31 ▲3.34

Server storage [IO: ▲0.08MB] [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
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Additional Custom Product Tabs for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.69 ▲0.361.72 ▲0.1040.40 ▼0.37
Dashboard /wp-admin2,198 ▲205.69 ▲0.0693.60 ▼22.9643.70 ▼3.50
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0138.36 ▼1.3037.59 ▼3.54
Add New Post /wp-admin/post-new.php1,531 ▼323.05 ▼2.01586.66 ▼16.9048.41 ▼27.67
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.1096.03 ▲0.7042.20 ▼0.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Plugin admin area.), #2 (Setting product tabs on per product basis.)
The official readme.txt is a good inspiration

product-tabs-for-woocommerce/product-tabs-for-woocommerce.php Passed 13 tests

This is the main PHP file of "Additional Custom Product Tabs for WooCommerce" version 1.5.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Manage product tabs in WooCommerce. Beautifully.

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
No dangerous file extensions were detected1,143 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP121455511,125
JavaScript21818

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity13.27
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods57
▷ Static methods11.75%
▷ Public methods57100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin