83% advanced-tabs-block

Code Review | Advanced Tabs Gutenberg Block

WordPress plugin Advanced Tabs Gutenberg Block scored83%from 54 tests.

About plugin

  • Plugin page: advanced-tabs-block
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 9, 2022
  • Latest release: Nov 15, 2023
  • Number of updates: 13
  • Update frequency: every 38.0 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /5,250 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.12ms] Passed 4 tests

A check of server-side resources used by Advanced Tabs Gutenberg Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1636.24 ▼7.22
Dashboard /wp-admin3.45 ▲0.1044.75 ▼14.66
Posts /wp-admin/edit.php3.56 ▲0.2149.54 ▲11.54
Add New Post /wp-admin/post-new.php6.04 ▲0.1596.00 ▼1.45
Media Library /wp-admin/upload.php3.37 ▲0.1437.96 ▲2.85
Tabs Block /wp-admin/options-general.php?page=atbs-block3.3430.80

Server storage [IO: ▲0.82MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Tabs Gutenberg Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5514.60 ▲0.251.56 ▼0.1737.59 ▼6.31
Dashboard /wp-admin2,202 ▲245.62 ▲0.0090.22 ▼24.5542.90 ▼2.66
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0639.27 ▼1.9736.21 ▲0.61
Add New Post /wp-admin/post-new.php1,715 ▲18923.90 ▲0.65647.22 ▲19.2035.84 ▼16.19
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0299.05 ▼3.5544.24 ▼1.88
Tabs Block /wp-admin/options-general.php?page=atbs-block1,50710.05290.1257.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/advanced-tabs-block/includes/classes/block-category.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-tabs-block/includes/classes/patterns-category.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-tabs-block/includes/classes/block-category.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/advanced-tabs-block/includes/patterns/patterns.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-tabs-block/includes/classes/block-patterns.php:18

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


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: Please take inspiration from this readme.txt

advanced-tabs-block/plugin.php 85% from 13 tests

The main file in "Advanced Tabs Gutenberg Block" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.4")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-tabs-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin840 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
▷ Static methods14.00%
▷ Public methods2288.00%
▷ Protected methods00.00%
▷ Private methods312.00%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants4100.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
PNG images were not found in this plugin