83% advanced-team-block

Code Review | Advanced Gutenberg Team Block

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

About plugin

  • Plugin page: advanced-team-block
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 8
  • Update frequency: every 97.9 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /862 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.95ms] Passed 4 tests

Analyzing server-side resources used by Advanced Gutenberg Team Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.87 ▼5.01
Dashboard /wp-admin3.39 ▲0.0945.04 ▼3.50
Posts /wp-admin/edit.php3.45 ▲0.0950.82 ▼2.42
Add New Post /wp-admin/post-new.php5.98 ▲0.1082.40 ▼8.85
Media Library /wp-admin/upload.php3.32 ▲0.0933.63 ▲0.12
Team Block /wp-admin/options-general.php?page=atgb-block3.2932.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Gutenberg Team Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.27 ▲0.071.63 ▲0.0441.19 ▲1.59
Dashboard /wp-admin2,199 ▲255.68 ▲0.1891.68 ▼9.3939.77 ▼3.55
Posts /wp-admin/edit.php2,101 ▼22.02 ▲0.0136.04 ▼4.9530.82 ▼8.53
Add New Post /wp-admin/post-new.php6,371 ▲4,83627.97 ▲9.64894.39 ▲248.8740.31 ▼32.00
Media Library /wp-admin/upload.php1,407 ▲104.18 ▼0.1196.00 ▼5.8442.71 ▼1.39
Team Block /wp-admin/options-general.php?page=atgb-block1,4388.80297.9156.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-team-block/admin/class-atgb-blocks.php:11

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)
There were no browser issues found


Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

advanced-team-block/plugin.php 69% from 13 tests

The main PHP file in "Advanced Gutenberg Team Block" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.7")
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "7.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-team-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected948 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin