78% xl-tab

Code Review | XLTab - Accordions and Tabs for Elementor Page Builder

WordPress plugin XLTab - Accordions and Tabs for Elementor Page Builder scored 78% from 54 tests.

About plugin

  • Plugin page: xl-tab
  • Plugin version: 1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Mar 28, 2020
  • Latest release: Oct 16, 2022
  • Number of updates: 16
  • Update frequency: every 58.3 days
  • Top authors: webangon (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active / 10,967 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: ▲1.33MB] [CPU: ▲8.71ms] Passed 4 tests

Server-side resources used by XLTab - Accordions and Tabs for Elementor Page Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.32 ▲0.8636.46 ▼4.23
Dashboard /wp-admin4.79 ▲1.4859.96 ▲12.60
Posts /wp-admin/edit.php4.84 ▲1.4854.97 ▲10.02
Add New Post /wp-admin/post-new.php7.37 ▲1.48121.08 ▲22.61
Media Library /wp-admin/upload.php4.71 ▲1.4850.42 ▲16.46

Server storage [IO: ▲1.68MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 181 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
xltab
widget_recent-posts
theysaidso_admin_options
xl_tab_library
can_compress_scripts
db_upgraded
plugin_activation_time
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for XLTab - Accordions and Tabs for Elementor Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,512 ▼22313.61 ▼0.950.48 ▼1.6218.49 ▼20.70
Dashboard /wp-admin2,265 ▲774.86 ▼0.0697.06 ▼9.5736.74 ▼3.50
Posts /wp-admin/edit.php2,144 ▲552.05 ▲0.0341.24 ▲4.5138.68 ▲2.00
Add New Post /wp-admin/post-new.php1,565 ▲4522.97 ▼0.06604.24 ▼94.6974.14 ▲13.41
Media Library /wp-admin/upload.php1,444 ▲594.25 ▲0.0596.59 ▲1.5045.35 ▼4.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • xl_tab_library
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • plugin_activation_time
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • xltab

Smoke tests 50% 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 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/xl-tab/widgets/tab1/view.php
    • > /wp-content/plugins/xl-tab/widgets/tab-vertical/view.php
  • 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/xl-tab/widgets/tab-vertical/view.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/xl-tab/widgets/tab1/view.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/xl-tab/widgets/tab-vertical/view.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/xl-tab/widgets/tab1/view.php on line 32
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/xl-tab/widgets/tab1/view.php on line 32
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/xl-tab/widgets/tab-vertical/view.php on line 24
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/xl-tab/widgets/tab1/view.php on line 3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/xl-tab/widgets/tab-switch/view.php:3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/xl-tab/widgets/tab1/view.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/xl-tab/widgets/tab-vertical/view.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
4 plugin tags: tab, accordion, elementor, faq

xl-tab/index.php 92% from 13 tests

The main PHP script in "XLTab - Accordions and Tabs for Elementor Page Builder" version 1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("xl-tab.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected37,352 lines of code in 154 files:
LanguageFilesBlank linesComment linesLines of code
PHP1003,9301,42517,415
PO File213,0443,4216,213
Sass1595234,811
CSS83094934,592
JavaScript81,3303744,319
SVG2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity22.96
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity5.86
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes70
▷ Abstract classes22.86%
▷ Concrete classes6897.14%
▷ Final classes11.47%
Methods316
▷ Static methods5116.14%
▷ Public methods30094.94%
▷ Protected methods92.85%
▷ Private methods72.22%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/banner.png29.17KB30.71KB0.00%
admin/framework/assets/images/checkerboard.png2.29KB2.54KB0.00%