72% tabby-free

Code Review | WP Tabby - Ultimate WP Tabs Plugin for WordPress

WordPress plugin WP Tabby - Ultimate WP Tabs Plugin for WordPress scored72%from 54 tests.

About plugin

  • Plugin page: tabby-free
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 24, 2021
  • Latest release: Jul 8, 2023
  • Number of updates: 30
  • Update frequency: every 19.7 days
  • Top authors: appglut (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /1,637 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.68MB] [CPU: ▲6.33ms] Passed 4 tests

Server-side resources used by WP Tabby - Ultimate WP Tabs Plugin for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.55 ▲1.0954.11 ▲5.64
Dashboard /wp-admin4.02 ▲0.7165.64 ▲8.78
Posts /wp-admin/edit.php4.07 ▲0.7059.86 ▲9.13
Add New Post /wp-admin/post-new.php6.54 ▲0.65106.13 ▲4.30
Media Library /wp-admin/upload.php3.88 ▲0.6446.37 ▲6.59
Woo Tabs /wp-admin/edit.php?post_type=ag_wp_tabby&page=woo-tabs6.3254.68
Tab Groups /wp-admin/edit.php?post_type=ag_wp_tabby6.4062.08
Add New /wp-admin/post-new.php?post_type=ag_wp_tabby6.3871.25
Settings /wp-admin/edit.php?post_type=ag_wp_tabby&page=options-settings6.3247.27

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 103 new files
Database: no new tables, 8 new options
New WordPress options
agwp_tabby_settings_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
agwp_tabby_woo_options
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Tabby - Ultimate WP Tabs Plugin for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17713.40 ▼0.988.72 ▲6.5737.87 ▼7.67
Dashboard /wp-admin2,230 ▲535.66 ▼0.0694.75 ▼1.1841.99 ▼1.62
Posts /wp-admin/edit.php2,135 ▲321.99 ▲0.0340.28 ▲1.8036.24 ▼0.19
Add New Post /wp-admin/post-new.php1,552 ▲2622.99 ▼0.27605.77 ▼80.3751.29 ▲0.27
Media Library /wp-admin/upload.php1,429 ▲294.17 ▲0.01105.59 ▼1.9643.82 ▼3.66
Woo Tabs /wp-admin/edit.php?post_type=ag_wp_tabby&page=woo-tabs1,2925.4977.4632.78
Tab Groups /wp-admin/edit.php?post_type=ag_wp_tabby1,5234.9172.5227.74
Add New /wp-admin/post-new.php?post_type=ag_wp_tabby3,2475.98136.02158.39
Settings /wp-admin/edit.php?post_type=ag_wp_tabby&page=options-settings2,2514.9774.68106.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • agwp_tabby_settings_options
    • db_upgraded
    • agwp_tabby_woo_options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/edit.php?post_type=ag_wp_tabby&page=options-settings
    • > Notice in wp-content/plugins/tabby-free/includes/model/fields/checkbox/checkbox.php+90
    Undefined variable: option_key

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tabby-free/public/content-type/normal.php
    • > /wp-content/plugins/tabby-free/public/content-type/normal-layout/horizontal-top.php
  • 67× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: content_data in wp-content/plugins/tabby-free/public/content-type/taxonomy-layout/horizontal-top.php on line 3
    • > PHP Notice
      Undefined variable: content_data in wp-content/plugins/tabby-free/public/tab-theme/default-theme.php on line 3
    • > PHP Notice
      Undefined variable: content_display_options in wp-content/plugins/tabby-free/public/dynamic-style.php on line 72
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tabby-free/public/content-type/taxonomy-layout/horizontal-bottom.php on line 3
    • > PHP Notice
      Undefined variable: content_data in wp-content/plugins/tabby-free/public/content-type/taxonomy-layout/horizontal-bottom.php on line 3
    • > PHP Notice
      Undefined variable: content_display_options in wp-content/plugins/tabby-free/public/dynamic-style.php on line 39
    • > PHP Notice
      Undefined variable: content_data in wp-content/plugins/tabby-free/public/tab-theme/zutab.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tabby-free/public/content-type/taxonomy-layout/horizontal-bottom.php on line 3
    • > PHP Notice
      Undefined variable: content_display_options in wp-content/plugins/tabby-free/public/dynamic-style.php on line 31
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tabby-free/public/content-type/taxonomy-layout/horizontal-bottom.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (25 tag instead of maximum 10)
You can look at the official readme.txt

tabby-free/plugin-main.php 77% from 13 tests

The principal PHP file in "WP Tabby - Ultimate WP Tabs Plugin for WordPress" v. 1.0.8 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 142 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tabby-free.php" instead of "plugin-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin16,768 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
PHP692,3109047,841
CSS53735104,595
JavaScript71,3063824,126
PO File18692193
SVG30113

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity25.00
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes47
▷ Abstract classes24.26%
▷ Concrete classes4595.74%
▷ Final classes00.00%
Methods188
▷ Static methods2513.30%
▷ Public methods18497.87%
▷ Protected methods00.00%
▷ Private methods42.13%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/model/assets/images/default.png0.57KB0.69KB0.00%
includes/model/assets/images/stabytab.png1.29KB1.39KB0.00%
includes/model/assets/images/horizontal-bottom.png3.03KB0.25KB▼ 91.62%
includes/model/assets/images/vertical-left.png0.67KB0.36KB▼ 46.95%
includes/model/assets/images/middle.png6.22KB2.85KB▼ 54.23%