83% super-product-tabs-for-woocommerce

Code Review | Super Product Tabs for WooCommerce

WordPress plugin Super Product Tabs for WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: super-product-tab...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.5
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Jul 4, 2016
  • Number of updates: 10
  • Update frequency: every 3.4 days
  • Top authors: bemoore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 548 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.99ms] Passed 4 tests

Analyzing server-side resources used by Super Product Tabs for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0544.47 ▼3.77
Dashboard /wp-admin3.36 ▲0.0648.24 ▼5.91
Posts /wp-admin/edit.php3.41 ▲0.0549.55 ▼2.14
Add New Post /wp-admin/post-new.php5.97 ▲0.0888.04 ▼8.15
Media Library /wp-admin/upload.php3.29 ▲0.0536.76 ▲0.77
Super Product Tabs /wp-admin/admin.php?page=wooc-super-product-tabs-page3.2533.30

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Super Product Tabs for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.36 ▼1.391.82 ▼0.2841.85 ▼2.86
Dashboard /wp-admin2,209 ▲245.91 ▲0.99106.74 ▼4.8038.58 ▼2.21
Posts /wp-admin/edit.php2,098 ▲62.19 ▲0.1539.06 ▼1.9034.11 ▼1.42
Add New Post /wp-admin/post-new.php1,520 ▲117.60 ▼5.47662.72 ▲18.1154.66 ▲1.08
Media Library /wp-admin/upload.php1,394 ▲64.23 ▲0.0397.78 ▼0.2641.86 ▼1.28
Super Product Tabs /wp-admin/admin.php?page=wooc-super-product-tabs-page7601.9126.2721.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-product-tabs-for-woocommerce/super-product-tabs-for-woocommerce.php:200

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

super-product-tabs-for-woocommerce/super-product-tabs-for-woocommerce.php 85% from 13 tests

"Super Product Tabs for WooCommerce" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.7")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin390 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP18354371
CSS12114
JavaScript1105

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin