93% advanced-team-block

Code Review | Advanced Gutenberg Team Block

WordPress plugin Advanced Gutenberg Team Block scored 93% from 54 tests.

About plugin

  • Plugin page: advanced-team-block
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Sep 21, 2021
  • Latest release: Sep 23, 2021
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 187 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.10MB] [CPU: ▼153.83ms] Passed 4 tests

Server-side resources used by Advanced Gutenberg Team Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0233.64 ▲7.11
Dashboard /wp-admin3.07 ▲0.0133.75 ▼5.67
Posts /wp-admin/edit.php3.13 ▲0.0234.55 ▲0.57
Add New Post /wp-admin/post-new.php4.98 ▼0.4644.87 ▼610.13
Media Library /wp-admin/upload.php3.02 ▲0.0123.62 ▼0.08
Team Block /wp-admin/tools.php?page=agt-teamblock2.9921.87

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Gutenberg Team Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,836 ▲23016.11 ▲0.149.37 ▲4.6376.07 ▲2.41
Dashboard /wp-admin2,938 ▲426.10 ▼0.05112.65 ▼15.66163.49 ▼4.41
Posts /wp-admin/edit.php2,745 ▲393.24 ▼0.0061.46 ▼5.33139.42 ▲5.42
Add New Post /wp-admin/post-new.php2,336 ▼1,38916.41 ▼2.14425.24 ▲7.12174.68 ▲9.08
Media Library /wp-admin/upload.php1,757 ▲55.52 ▲0.04141.24 ▼0.81187.66 ▲1.91
Team Block /wp-admin/tools.php?page=agt-teamblock1,8899.01244.40188.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-team-block/admin/admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in advanced-team-block/assets to your readme.txt
Please take inspiration from this readme.txt

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

The entry point to "Advanced Gutenberg Team Block" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-team-block.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 180 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,279 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods19.09%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.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
No PNG images were found in this plugin