89% next-accordion-block

Code Review | Next Accordion - Best Accordion Block for Gutenberg

WordPress plugin Next Accordion - Best Accordion Block for Gutenberg scored89%from 54 tests.

About plugin

  • Plugin page: next-accordion-block
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 30, 2022
  • Latest release: Sep 30, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: nextblocks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.01ms] Passed 4 tests

Server-side resources used by Next Accordion - Best Accordion Block for Gutenberg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.77 ▲0.99
Dashboard /wp-admin3.34 ▲0.0443.75 ▼8.00
Posts /wp-admin/edit.php3.39 ▲0.0446.42 ▼6.57
Add New Post /wp-admin/post-new.php5.96 ▲0.0794.65 ▼14.46
Media Library /wp-admin/upload.php3.27 ▲0.0436.05 ▲1.25

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 9 new options
New WordPress options
next_accordion_block_version
theysaidso_admin_options
widget_recent-posts
next_accordion_block_activation_date
widget_recent-comments
next_accordion_block_first_version
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Next Accordion - Best Accordion Block for Gutenberg: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.25 ▼1.002.46 ▲0.6043.35 ▲3.39
Dashboard /wp-admin2,206 ▲185.83 ▼0.07102.06 ▼10.0239.64 ▼4.09
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0039.98 ▼0.6035.32 ▼1.35
Add New Post /wp-admin/post-new.php6,427 ▲4,88528.51 ▲10.12824.93 ▲207.4036.73 ▼13.37
Media Library /wp-admin/upload.php1,388 ▲64.23 ▲0.0694.82 ▼1.6341.78 ▲0.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • can_compress_scripts
    • next_accordion_block_activation_date
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • next_accordion_block_first_version
    • next_accordion_block_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

next-accordion-block/next-accordion-blocks.php 85% from 13 tests

"Next Accordion - Best Accordion Block for Gutenberg" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("next-accordion-block.php" instead of "next-accordion-blocks.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,646 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
JavaScript63652061,599
CSS52017143
JSON200119
PHP425101114

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ 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
There were not PNG files found in your plugin