84% aino-accordion-faq-block

Code Review | AinoBlocks Accordion Faq Block

WordPress plugin AinoBlocks Accordion Faq Block scored84%from 54 tests.

About plugin

  • Plugin page: aino-accordion-fa...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Sep 26, 2021
  • Latest release: Aug 1, 2022
  • Number of updates: 14
  • Update frequency: every 22.1 days
  • Top authors: elmastudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /5,093 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.44ms] Passed 4 tests

An overview of server-side resources used by AinoBlocks Accordion Faq Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0441.79 ▼0.18
Dashboard /wp-admin3.37 ▲0.0249.10 ▼4.61
Posts /wp-admin/edit.php3.42 ▲0.0247.47 ▼4.89
Add New Post /wp-admin/post-new.php5.95 ▲0.0386.29 ▼8.06
Media Library /wp-admin/upload.php3.29 ▲0.0238.03 ▲3.36

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for AinoBlocks Accordion Faq Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.38 ▲0.107.46 ▲5.9040.74 ▲1.24
Dashboard /wp-admin2,198 ▲215.57 ▼0.0089.01 ▼2.7142.24 ▲0.33
Posts /wp-admin/edit.php2,100 ▼32.13 ▲0.1237.40 ▼6.9534.04 ▼3.92
Add New Post /wp-admin/post-new.php6,198 ▲4,66118.93 ▲0.72965.47 ▲334.7960.27 ▼2.79
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.0399.99 ▼8.9158.43 ▲7.29

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 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/aino-accordion-faq-block/accordion-faq-block.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: blocks, gutenberg, answers, question, faq...

aino-accordion-faq-block/accordion-faq-block.php 92% from 13 tests

"AinoBlocks Accordion Faq Block" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aino-accordion-faq-block.php" instead of "accordion-faq-block.php")

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
There were no executable files found in this plugin104 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON10063
PHP3102437
CSS2322
JavaScript2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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