89% gutena-accordion

Code Review | Gutena Accordion - Beautiful FAQ Accordion Block

WordPress plugin Gutena Accordion - Beautiful FAQ Accordion Block scored89%from 54 tests.

About plugin

  • Plugin page: gutena-accordion
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2022
  • Latest release: Apr 5, 2023
  • Number of updates: 10
  • Update frequency: every 22.9 days
  • Top authors: expresstech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /10,612 total downloads

Benchmarks

Plugin footprint 83% from 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.06MB] [CPU: ▼5.40ms] Passed 4 tests

Server-side resources used by Gutena Accordion - Beautiful FAQ Accordion Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.34 ▲2.30
Dashboard /wp-admin3.37 ▲0.0654.97 ▲5.95
Posts /wp-admin/edit.php3.42 ▲0.0646.54 ▼4.75
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.04 ▼18.30
Media Library /wp-admin/upload.php3.29 ▲0.0639.22 ▼0.84

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Gutena Accordion - Beautiful FAQ Accordion Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.72 ▲0.372.07 ▲0.3942.69 ▼0.64
Dashboard /wp-admin2,198 ▲185.62 ▲0.0298.81 ▲3.4642.08 ▲4.57
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0136.25 ▼5.0932.66 ▼5.93
Add New Post /wp-admin/post-new.php1,501 ▼2518.58 ▼4.41714.83 ▲41.6640.20 ▼16.48
Media Library /wp-admin/upload.php1,397 ▼64.20 ▼0.03110.37 ▼3.2246.44 ▼6.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in gutena-accordion/assets to your readme.txt
You can take inspiration from this readme.txt

gutena-accordion/gutena-accordion.php 92% from 13 tests

The main PHP file in "Gutena Accordion - Beautiful FAQ Accordion Block" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 281 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin338 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP544120169
JSON100143
SVG50020
CSS3003
JavaScript3003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity10.50
▷ Minimum class complexity9.00
▷ Maximum class complexity12.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/gutena/gutena-ecosys-onboard/assets/cta/bg.png6.31KB3.12KB▼ 50.59%