88% advanced-accordion-block

Code Review | Advanced Accordion Gutenberg Block

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

About plugin

  • Plugin page: advanced-accordio...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Mar 20, 2021
  • Latest release: Oct 6, 2021
  • Number of updates: 10
  • Update frequency: every 21.9 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active / 345 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.09MB] [CPU: ▼147.93ms] 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.87 ▲0.0333.58 ▼3.68
Dashboard /wp-admin3.09 ▲0.0346.74 ▲8.52
Posts /wp-admin/edit.php3.14 ▲0.0342.90 ▼2.68
Add New Post /wp-admin/post-new.php4.99 ▼0.4458.94 ▼587.29
Media Library /wp-admin/upload.php3.03 ▲0.0332.46 ▲1.92
Accordion Block /wp-admin/tools.php?page=advanced-accordion-block3.0029.23

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 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,818 ▲22216.67 ▲1.2214.80 ▲6.4745.45 ▼3.51
Dashboard /wp-admin2,972 ▲385.89 ▼0.40143.10 ▼14.16101.21 ▼3.19
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0063.11 ▼7.7689.55 ▲2.42
Add New Post /wp-admin/post-new.php1,626 ▼5721.28 ▲2.43324.29 ▼69.92104.67 ▼9.48
Media Library /wp-admin/upload.php1,827 ▲205.02 ▼0.00157.17 ▲1.09115.80 ▲4.99
Accordion Block /wp-admin/tools.php?page=advanced-accordion-block1,88411.06282.33122.37

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 50% 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 0% 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 output text when accessed directly:
    • > /wp-content/plugins/advanced-accordion-block/index.php
  • 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 2.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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-accordion-block.php" instead of "plugin.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)

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 detected613 lines of code in 16 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.19
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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