93% advanced-accordion-block

Code Review | Advanced Accordion Gutenberg Block

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

About plugin

  • Plugin page: advanced-accordio...
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.8.1
  • First release: Mar 20, 2021
  • Latest release: Jan 31, 2022
  • Number of updates: 14
  • Update frequency: every 22.7 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 1,115 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼205.68ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Accordion Gutenberg Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1627.83 ▲13.33
Dashboard /wp-admin3.10 ▲0.0340.20 ▼1.85
Posts /wp-admin/edit.php3.15 ▲0.0437.89 ▲2.10
Add New Post /wp-admin/post-new.php5.47 ▲0.0373.14 ▼828.52
Media Library /wp-admin/upload.php3.04 ▲0.0429.14 ▲5.56
Accordion Block /wp-admin/tools.php?page=advanced-accordion-block3.0221.93

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Accordion Gutenberg Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲10915.63 ▼0.357.03 ▲1.7582.85 ▲10.85
Dashboard /wp-admin2,969 ▲736.07 ▼0.09116.92 ▼15.93169.37 ▼1.49
Posts /wp-admin/edit.php2,781 ▲413.37 ▲0.1565.10 ▼4.05141.52 ▼7.01
Add New Post /wp-admin/post-new.php3,728 ▼8317.96 ▼0.79433.42 ▼8.99179.75 ▲14.94
Media Library /wp-admin/upload.php1,791 ▲395.52 ▲0.01145.70 ▼5.71182.33 ▼2.12
Accordion Block /wp-admin/tools.php?page=advanced-accordion-block2,0289.16259.38225.75

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
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-accordion-block/admin/admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

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

"Advanced Accordion Gutenberg Block" version 3.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-accordion-block.php" instead of "plugin.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
Good job! No executable or dangerous file extensions detected937 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods18.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin