89% woocommerce-extend-tabs

Code Review | WooCommerce Expand Tabs

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

About plugin

  • Plugin page: woocommerce-exten...
  • Plugin version: 1.26
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 22, 2014
  • Latest release: Jun 12, 2023
  • Number of updates: 76
  • Update frequency: every 40.7 days
  • Top authors: diana_burduja (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

2,000+ active / 45,931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.88ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Expand Tabs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.04 ▼2.91
Dashboard /wp-admin3.33 ▲0.0350.19 ▼3.72
Posts /wp-admin/edit.php3.39 ▲0.0353.26 ▼2.56
Add New Post /wp-admin/post-new.php5.92 ▲0.03100.78 ▼18.34
Media Library /wp-admin/upload.php3.26 ▲0.0341.26 ▲4.96

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Expand Tabs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.17 ▼1.571.87 ▲0.0242.81 ▲2.76
Dashboard /wp-admin2,206 ▼34.98 ▲0.13108.93 ▲0.7041.63 ▲3.68
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0439.92 ▼2.7634.86 ▲0.44
Add New Post /wp-admin/post-new.php1,533 ▲1921.20 ▲3.73784.15 ▲63.8552.52 ▼10.37
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.02109.48 ▲5.6846.57 ▲1.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: tabs, woocommerce, product page tabs, expand tabs, woocommerce seo

woocommerce-extend-tabs/woocommerce-expand-tabs.php 85% from 13 tests

This is the main PHP file of "WooCommerce Expand Tabs" version 1.26, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.3.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-extend-tabs.php" instead of "woocommerce-expand-tabs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,256 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript214394001,978
PHP674136278

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin