84% responsive-tabs

Code Review | Responsive Tabs

WordPress plugin Responsive Tabs scored 84% from 54 tests.

About plugin

  • Plugin page: responsive-tabs
  • Plugin version: 4.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 6, 2014
  • Latest release: Aug 28, 2023
  • Number of updates: 131
  • Update frequency: every 24.6 days
  • Top authors: spwebguy (100%)

Code review

54 tests

User reviews

41 reviews

Install metrics

7,000+ active / 115,854 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.11MB] [CPU: ▼12.68ms] Passed 4 tests

A check of server-side resources used by Responsive Tabs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.48 ▼4.30
Dashboard /wp-admin3.42 ▲0.1146.21 ▼13.03
Posts /wp-admin/edit.php3.53 ▲0.1748.93 ▼12.97
Add New Post /wp-admin/post-new.php6.00 ▲0.1186.17 ▼20.41
Media Library /wp-admin/upload.php3.34 ▲0.1138.82 ▲6.18
All Tab sets /wp-admin/edit.php?post_type=rtbs_tabs3.3836.44
Add New /wp-admin/post-new.php?post_type=rtbs_tabs3.4551.87

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Tabs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲16113.61 ▼0.436.03 ▲4.0641.70 ▼6.22
Dashboard /wp-admin2,230 ▲454.84 ▼0.22110.19 ▼29.9441.68 ▼13.40
Posts /wp-admin/edit.php2,113 ▲212.01 ▲0.0141.86 ▼5.6436.92 ▲0.68
Add New Post /wp-admin/post-new.php1,553 ▲3023.13 ▼0.02695.49 ▲34.3864.29 ▲7.05
Media Library /wp-admin/upload.php1,412 ▲244.21 ▼0.0098.20 ▼7.1141.93 ▼7.09
All Tab sets /wp-admin/edit.php?post_type=rtbs_tabs1,1022.3945.5030.35
Add New /wp-admin/post-new.php?post_type=rtbs_tabs2,6307.85187.1557.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tabs/inc/rtbs-metaboxes-settings.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tabs/inc/rtbs-post-type.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tabs/inc/rtbs-pro-version-check.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tabs/inc/rtbs-metaboxes-help.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tabs/inc/rtbs-metaboxes-tabs.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tabs/inc/rtbs-text-domain.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/responsive-tabs/inc/rtbs-shortcode.php:84
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tabs/inc/rtbs-metaboxes-pro.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tabs/inc/rtbs-save-metaboxes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tabs/inc/rtbs-shortcode-column.php:4

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: responsive tab, accordion, responsive, shortcode, tab...

responsive-tabs/rtbs.php 85% from 13 tests

The entry point to "Responsive Tabs" version 4.0.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 402 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-tabs.php" instead of "rtbs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,126 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS482361,180
PHP1314466598
JavaScript414863348

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/img/dktbs_menu.png2.92KB0.31KB▼ 89.24%