90% ultimate-tab-for-woocommerce

Code Review | Ultimate Tab for WooCommerce

WordPress plugin Ultimate Tab for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: ultimate-tab-for-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.6
  • WordPress version: 6.3.1
  • First release: Mar 5, 2017
  • Latest release: Mar 7, 2017
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: wpgog (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.10ms] Passed 4 tests

A check of server-side resources used by Ultimate Tab for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.36 ▼1.55
Dashboard /wp-admin3.32 ▲0.0144.30 ▼10.20
Posts /wp-admin/edit.php3.37 ▲0.0146.48 ▼1.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.17 ▼7.61
Media Library /wp-admin/upload.php3.24 ▲0.0135.20 ▲0.57

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: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate Tab for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5914.47 ▼0.181.87 ▼0.2443.27 ▼6.31
Dashboard /wp-admin2,222 ▲374.90 ▼0.99113.75 ▼1.7243.01 ▼0.40
Posts /wp-admin/edit.php2,107 ▲182.04 ▼0.0737.23 ▲0.5730.94 ▼2.42
Add New Post /wp-admin/post-new.php1,525 ▼923.45 ▲0.43635.52 ▼15.3257.69 ▲6.91
Media Library /wp-admin/upload.php1,398 ▲74.29 ▼0.0196.83 ▼9.1141.93 ▼4.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
6 plugin tags: woocommerce tab, woocommerce, ultimate tab for woocommerce, ultimate tab, unlimited tab...

ultimate-tab-for-woocommerce/ultimate-tab-for-woocommerce.php Passed 13 tests

The main PHP script in "Ultimate Tab for WooCommerce" version 1.0 is automatically included on every request by WordPress
69 characters long description:
Ultimate Tab for WooCommerce is a plugins ultimate tab in WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin191 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP42121138
CSS10327
JavaScript15526

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
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
PNG images were not found in this plugin