90% wpc-product-tabs

Code Review | WPC Product Tabs for WooCommerce

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

About plugin

  • Plugin page: wpc-product-tabs
  • Plugin version: 3.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 9, 2019
  • Latest release: Oct 26, 2023
  • Number of updates: 64
  • Update frequency: every 25.5 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /20,168 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼8.45ms] Passed 4 tests

This is a short check of server-side resources used by WPC Product Tabs for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2137.31 ▲0.82
Dashboard /wp-admin3.51 ▲0.1645.99 ▼24.16
Posts /wp-admin/edit.php3.62 ▲0.2748.40 ▲0.53
Add New Post /wp-admin/post-new.php6.11 ▲0.2288.41 ▼11.00
Media Library /wp-admin/upload.php3.43 ▲0.2047.61 ▲12.41
About /wp-admin/admin.php?page=wpclever3.4032.21
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.4033.43

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WPC Product Tabs for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲10514.46 ▲0.061.64 ▲0.0439.18 ▲0.84
Dashboard /wp-admin2,275 ▲1075.65 ▲0.0979.96 ▼34.9389.57 ▲37.92
Posts /wp-admin/edit.php2,181 ▲812.05 ▲0.0638.32 ▲2.3933.62 ▲3.31
Add New Post /wp-admin/post-new.php1,599 ▲6823.24 ▲0.21724.37 ▲41.6259.95 ▲6.57
Media Library /wp-admin/upload.php1,468 ▲684.12 ▼0.05103.90 ▼1.7372.61 ▲25.68
About /wp-admin/admin.php?page=wpclever1,4062.1430.5733.98
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7352.1632.7756.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

wpc-product-tabs/wpc-product-tabs.php Passed 13 tests

"WPC Product Tabs for WooCommerce" version 3.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
37 characters long description:
Product tabs manager for WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,858 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP5166331,030
CSS31066585
JavaScript3382214
SVG10029

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity44.75
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity5.49
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods39
▷ Static methods12.56%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants10
▷ Global constants10100.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
There were not PNG files found in your plugin