72% responsive-tab-blocks

Code Review | Responsive Tab with Blocks

WordPress plugin Responsive Tab with Blocks scored72%from 54 tests.

About plugin

  • Plugin page: responsive-tab-bl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4
  • WordPress version: 6.3.1
  • First release: Jun 6, 2020
  • Latest release: Jun 6, 2020
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: gatetouch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /536 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼6.15ms] Passed 4 tests

A check of server-side resources used by Responsive Tab with Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1636.54 ▼4.66
Dashboard /wp-admin3.46 ▲0.1646.04 ▼3.30
Posts /wp-admin/edit.php3.58 ▲0.2243.14 ▼6.81
Add New Post /wp-admin/post-new.php6.04 ▲0.1686.77 ▼9.81
Media Library /wp-admin/upload.php3.39 ▲0.1635.77 ▲0.23
Add New /wp-admin/post-new.php?post_type=grtb_block3.4344.35
All Tabs /wp-admin/edit.php?post_type=grtb_block3.4337.71

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Tab with Blocks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲16114.02 ▼0.265.59 ▲3.8640.73 ▼2.76
Dashboard /wp-admin2,233 ▲424.88 ▼0.93102.25 ▼2.8141.01 ▼0.74
Posts /wp-admin/edit.php2,113 ▲382.05 ▲0.0434.90 ▼7.6632.52 ▼7.24
Add New Post /wp-admin/post-new.php1,563 ▲3018.38 ▼4.77613.65 ▼68.4848.84 ▼5.18
Media Library /wp-admin/upload.php1,412 ▲274.19 ▲0.0694.57 ▼7.3542.18 ▼4.41
Add New /wp-admin/post-new.php?post_type=grtb_block2,6217.55178.00107.47
All Tabs /wp-admin/edit.php?post_type=grtb_block1,1002.4146.9030.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=grtb_block
    • > Warning in wp-content/plugins/responsive-tab-blocks/inc/grtb-metaboxes-tabs.php+47
    count(): Parameter must be an array or an object that implements Countable
    • > GET request to /wp-admin/post-new.php?post_type=grtb_block
    • > Notice in wp-content/plugins/responsive-tab-blocks/inc/grtb-metaboxes-tabs.php+291
    Undefined variable: member
    • > GET request to /wp-admin/post-new.php?post_type=grtb_block
    • > Notice in wp-content/plugins/responsive-tab-blocks/inc/grtb-metaboxes-tabs.php+291
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 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-tab-blocks/inc/grtb-front-scripts.php:4
    • > PHP Notice
      Undefined variable: gt_breakpoint in wp-content/plugins/responsive-tab-blocks/inc/css/gt-style.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tab-blocks/inc/grtb-metaboxes-tabs.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tab-blocks/inc/grtb-metaboxes-help.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tab-blocks/inc/grtb-metaboxes-settings.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tab-blocks/inc/grtb-shortcode-column.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tab-blocks/inc/grtb-text-domain.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/responsive-tab-blocks/inc/grtb-shortcode.php:167
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-tab-blocks/inc/grtb-save-metaboxes.php:4
    • > PHP Notice
      Undefined variable: output in wp-content/plugins/responsive-tab-blocks/inc/css/gt-style.php on line 70

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=grtb_block
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/responsive-tab-blocks/inc/dmb/dmb.js?ver=6.3.1:378:38)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=grtb_block
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: tabs, accordion, responsive, responsive tab, tab icon...

responsive-tab-blocks/grtb.php 77% from 13 tests

The main PHP script in "Responsive Tab with Blocks" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("responsive-tab-blocks.php" instead of "grtb.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)

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
No dangerous file extensions were detected2,106 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS314227830
PHP1230760758
JavaScript316661518

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/img/sample-icon.png1.31KB1.36KB0.00%
inc/img/dktbs_menu.png2.92KB0.31KB▼ 89.24%
inc/img/btn-before-blue.png1.33KB1.28KB▼ 4.24%