67% tabbed

Code Review | Tab - Accordion, FAQ

WordPress plugin Tab - Accordion, FAQ scored67%from 54 tests.

About plugin

  • Plugin page: tabbed
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.0
  • WordPress version: 6.3.1
  • First release: Mar 16, 2017
  • Latest release: Sep 6, 2022
  • Number of updates: 95
  • Update frequency: every 21.0 days
  • Top authors: richteam (100%)

Code review

54 tests

User reviews

56 reviews

Install metrics

2,000+ active /69,076 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▼6.35ms] Passed 4 tests

Server-side resources used by Tab - Accordion, FAQ
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4537.35 ▲1.28
Dashboard /wp-admin3.75 ▲0.4149.24 ▼6.11
Posts /wp-admin/edit.php3.87 ▲0.5246.86 ▼2.17
Add New Post /wp-admin/post-new.php6.34 ▲0.4681.55 ▼14.43
Media Library /wp-admin/upload.php3.68 ▲0.4534.14 ▼2.67
All Tabs /wp-admin/admin.php?page=RW_Tabs_Menu4.21150.13
Our Products /wp-admin/admin.php?page=Rich-Web-Products3.7135.28
Create Tab /wp-admin/admin.php?page=RW_Tabs_Create4.3839.07
Go Pro /wp-admin/admin.php?page=Rich_WebTabsPro3.2620.67

Server storage [IO: ▲2.39MB] [DB: ▲0.04MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 137 new files
Database: 4 new tables, 7 new options
New tables
wp_rich_web_tabs_themes_data
wp_rich_web_tabs_font_family
wp_rich_web_tabs_manager_data
wp_rich_web_tabs_icons
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_rich_web_tabs
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Tab - Accordion, FAQ
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,995 ▲24913.64 ▼0.9811.54 ▲9.9638.90 ▼5.29
Dashboard /wp-admin2,275 ▲955.68 ▲0.0384.02 ▼9.8787.93 ▲49.89
Posts /wp-admin/edit.php2,188 ▲852.27 ▲0.1831.72 ▼4.4638.73 ▲7.26
Add New Post /wp-admin/post-new.php1,616 ▲8720.81 ▼2.50663.80 ▲50.6441.10 ▼5.99
Media Library /wp-admin/upload.php1,472 ▲694.27 ▲0.0995.07 ▲1.0883.51 ▲38.08
All Tabs /wp-admin/admin.php?page=RW_Tabs_Menu1,1482.0525.9274.70
Our Products /wp-admin/admin.php?page=Rich-Web-Products1,1241.8525.2140.56
Create Tab /wp-admin/admin.php?page=RW_Tabs_Create2,9602.0828.32184.89
Go Pro /wp-admin/admin.php?page=Rich_WebTabsPro3,3976.92183.07155.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 4 tables
    • wp_rich_web_tabs_icons
    • wp_rich_web_tabs_manager_data
    • wp_rich_web_tabs_themes_data
    • wp_rich_web_tabs_font_family
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_rich_web_tabs
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tabbed/Style/Tabs-Rich-Web-Flex.css.php
  • 29× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/tabbed/Scripts/Tabs-Rich-Web-Flex.js.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tabbed/Style/RW_Tabs_Acd_Styles/rw_tabs_acd_3.css.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tabbed/Style/RW_Tabs_Acd_Styles/rw_tabs_acd_5.css.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tabbed/Style/RW_Tabs_Acd_Styles/rw_tabs_acd_6.css.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/tabbed/Tabs-Rich-Web-Flex.php:2
    • > PHP Notice
      Undefined variable: RW_Tabs_Shortcode in wp-content/plugins/tabbed/Tabs-Rich-Web-Preview.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/tabbed/Tabs-Rich-Web-Builder.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/tabbed/Rich_Web_Tabs-Media.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/tabbed/Tabs-Rich-Web-Preview.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tabbed/Style/RW_Tabs_Acd_Styles/rw_tabs_acd_4.css.php:1

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #6, #7, #8, #9 in tabbed/assets to your readme.txt
  • Screenshots: These screenshots do not have images: #27 (WordPress Accordion & FAQ Animation), #28 (WordPress Accordion & FAQ Animation), #29 (WordPress Accordion & FAQ Animation), #30 (WordPress Accordion & FAQ Animation)
The official readme.txt might help

tabbed/Tabs.php 85% from 13 tests

This is the main PHP file of "Tab - Accordion, FAQ" version 1.3.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tabbed.php" instead of "Tabs.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

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
Success! There were no dangerous files found in this plugin13,107 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP291732647,191
CSS65235,156
SVG200753
JavaScript40135
INI1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity7.67
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
87 PNG files occupy 0.61MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Images/admin.png1.59KB0.75KB▼ 52.64%
Images/transparency-grid.png2.58KB2.80KB0.00%
Images/RW_Images/WordPress-Accordion-23.png7.95KB7.09KB▼ 10.81%
Images/RW_Images/WordPress-Accordion-31.png8.46KB7.40KB▼ 12.50%
Images/RW_Images/WordPress-Accordion-25.png7.93KB7.08KB▼ 10.71%