80% easy-product-tabs-for-woocommerce

Code Review | Easy Product Tabs For WooCommerce - Adding custom tabs for all products

WordPress plugin Easy Product Tabs For WooCommerce - Adding custom tabs for all products scored80%from 54 tests.

About plugin

  • Plugin page: easy-product-tabs...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.5
  • WordPress version: 6.3.1
  • First release: Jul 2, 2018
  • Latest release: Aug 9, 2020
  • Number of updates: 9
  • Update frequency: every 85.4 days
  • Top authors: leoq (88.89%)owids (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /678 total downloads

Benchmarks

Plugin footprint 65% 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.08MB] [CPU: ▼6.91ms] Passed 4 tests

This is a short check of server-side resources used by Easy Product Tabs For WooCommerce - Adding custom tabs for all products
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.64 ▼5.25
Dashboard /wp-admin3.40 ▲0.0653.07 ▼12.19
Posts /wp-admin/edit.php3.52 ▲0.1653.32 ▲5.08
Add New Post /wp-admin/post-new.php5.98 ▲0.1091.89 ▼11.43
Media Library /wp-admin/upload.php3.32 ▲0.1040.25 ▲1.24

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 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

An overview of browser requirements for Easy Product Tabs For WooCommerce - Adding custom tabs for all products
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.10 ▼0.251.78 ▼0.0745.11 ▲1.18
Dashboard /wp-admin2,213 ▲365.53 ▼0.1285.12 ▼9.1377.22 ▲36.44
Posts /wp-admin/edit.php2,118 ▲181.97 ▼0.0039.46 ▲3.6637.29 ▲1.54
Add New Post /wp-admin/post-new.php1,556 ▲2523.09 ▼0.25616.04 ▼58.47146.70 ▲93.59
Media Library /wp-admin/upload.php1,409 ▲94.13 ▼0.0998.66 ▼4.6162.21 ▲14.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/easy-product-tabs-for-woocommerce/easy-product-tabs-for-woocommerce.php+365
    Invalid argument supplied for foreach()
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: custom tab, product tab, tab, woocommerce

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

The main PHP script in "Easy Product Tabs For WooCommerce - Adding custom tabs for all products" version 1.0.2 is automatically included on every request by WordPress
96 characters long description:
Built for WooCommerce store owners, make it easy to adding custom tabs showing for all products.

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
Success! There were no dangerous files found in this plugin11,323 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS1529,171
JavaScript11,0871,8451,560
PHP13138320575
JSON20015
HTML1012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity13.43
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods41
▷ Static methods512.20%
▷ Public methods3995.12%
▷ Protected methods00.00%
▷ Private methods24.88%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin