78% product-tab-manager

Code Review | Product Tab Manager

WordPress plugin Product Tab Manager scored78%from 54 tests.

About plugin

  • Plugin page: product-tab-manager
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Mar 25, 2023
  • Latest release: Jul 30, 2023
  • Number of updates: 9
  • Update frequency: every 14.3 days
  • Top authors: asifaziz01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /174 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.64ms] Passed 4 tests

Server-side resources used by Product Tab Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0946.06 ▲5.03
Dashboard /wp-admin3.41 ▲0.0650.69 ▼14.73
Posts /wp-admin/edit.php3.52 ▲0.1649.70 ▼4.67
Add New Post /wp-admin/post-new.php6.01 ▲0.1284.64 ▼21.33
Media Library /wp-admin/upload.php3.33 ▲0.1039.01 ▲2.17

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Product Tab Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.90 ▼0.419.12 ▲7.4043.67 ▼2.78
Dashboard /wp-admin2,202 ▲255.69 ▲0.0289.84 ▼7.6139.07 ▼1.48
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0336.13 ▼5.6935.19 ▼0.75
Add New Post /wp-admin/post-new.php1,534 ▼1123.19 ▼0.05669.55 ▼33.7561.01 ▲4.98
Media Library /wp-admin/upload.php1,407 ▲74.13 ▼0.1495.36 ▼16.8446.64 ▼1.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/product-tab-manager/public/partials/product-tab-manager-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/product-tab-manager/admin/partials/product-tab-manager-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (`/assets/screen1.png`), #2 (`/assets/screen2.png`), #3 (`/assets/screen3.png`)
You can take inspiration from this readme.txt

product-tab-manager/product-tab-manager.php Passed 13 tests

This is the main PHP file of "Product Tab Manager" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
132 characters long description:
This plugin allows you to manage your woocommerce product page tabs. Tabs can be rename, removed and re-ordered on the product page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin399 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12170567393
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of 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.26
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.50MB with 0.36MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screen4.png102.76KB30.62KB▼ 70.21%
assets/screen3.png102.76KB30.62KB▼ 70.21%
assets/screen1.png108.47KB32.08KB▼ 70.42%
assets/screen2.png202.55KB54.27KB▼ 73.21%