79% responsive-horizontal-vertical-and-accordion-tabs

Code Review | WP Responsive Tabs horizontal vertical and accordion Tabs

WordPress plugin WP Responsive Tabs horizontal vertical and accordion Tabs scored79%from 54 tests.

About plugin

  • Plugin page: responsive-horizo...
  • Plugin version: 1.1.17
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 11, 2018
  • Latest release: Sep 19, 2023
  • Number of updates: 28
  • Update frequency: every 64.6 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /26,210 total downloads

Benchmarks

Plugin footprint 65% 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.46MB] [CPU: ▲2.62ms] Passed 4 tests

Analyzing server-side resources used by WP Responsive Tabs horizontal vertical and accordion Tabs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4645.65 ▲6.54
Dashboard /wp-admin3.77 ▲0.4749.07 ▲2.07
Posts /wp-admin/edit.php3.88 ▲0.5347.96 ▼0.94
Add New Post /wp-admin/post-new.php6.35 ▲0.4794.57 ▲7.43
Media Library /wp-admin/upload.php3.69 ▲0.4638.39 ▲2.81
Manage Tabs /wp-admin/admin.php?page=rt_wp_responsive_tabs_management3.6637.75
Preview Tabs /wp-admin/admin.php?page=rt_wp_responsive_tabs_preview3.6942.43
Tab Sets /wp-admin/admin.php?page=rt_wp_responsive_tabs3.6939.64

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: 2 new tables, 7 new options
New tables
wp_wrt_tabs
wp_wrt_tabs_settings
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
wrt_responsive_tabs_msg

Browser metrics Passed 4 tests

WP Responsive Tabs horizontal vertical and accordion Tabs: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.24 ▼1.301.69 ▼0.0343.89 ▲2.43
Dashboard /wp-admin2,237 ▲494.85 ▼1.15108.73 ▲5.4042.89 ▲2.72
Posts /wp-admin/edit.php2,120 ▲282.00 ▼0.0239.41 ▼1.8935.03 ▼1.80
Add New Post /wp-admin/post-new.php1,539 ▲917.64 ▼1.06594.74 ▲1.1354.96 ▼4.62
Media Library /wp-admin/upload.php1,413 ▲224.18 ▼0.0397.36 ▼0.6140.54 ▼3.59
Manage Tabs /wp-admin/admin.php?page=rt_wp_responsive_tabs_management1,9495.5590.0978.92
Preview Tabs /wp-admin/admin.php?page=rt_wp_responsive_tabs_preview1,0293.2639.7522.60
Tab Sets /wp-admin/admin.php?page=rt_wp_responsive_tabs1,2594.3485.6171.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_wrt_tabs_settings
    • wp_wrt_tabs
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • wrt_responsive_tabs_msg
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: horizontal tabs, all in one tabs, vertical tabs, wp tabs, responsive tabs...

responsive-horizontal-vertical-and-accordion-tabs/wp-best-responsive-tabs.php 85% from 13 tests

Analyzing the main PHP file in "WP Responsive Tabs horizontal vertical and accordion Tabs" version 1.1.17
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-horizontal-vertical-and-accordion-tabs.php" instead of "wp-best-responsive-tabs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin3,551 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1919252,407
CSS39359760
JavaScript313371384

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions23
▷ Named functions2191.30%
▷ Anonymous functions28.70%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/asc.png0.14KB0.12KB▼ 13.79%
images/300x250.png34.77KB13.75KB▼ 60.46%
images/g-suite-promo-code-4.png59.03KB17.19KB▼ 70.88%
images/desc.png0.16KB0.12KB▼ 23.31%
images/m_lg.png1.98KB0.75KB▼ 62.22%