83% accordion-title-for-elementor

Code Review | Accordion title for Elementor

WordPress plugin Accordion title for Elementor scored 83% from 54 tests.

About plugin

  • Plugin page: accordion-title-f...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.2
  • WordPress version: 6.3.1
  • First release: Apr 12, 2022
  • Latest release: Feb 3, 2023
  • Number of updates: 10
  • Update frequency: every 29.7 days
  • Top authors: migaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 375 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.86ms] Passed 4 tests

Server-side resources used by Accordion title for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.34 ▼3.78
Dashboard /wp-admin3.31 ▲0.0147.31 ▼3.67
Posts /wp-admin/edit.php3.36 ▲0.0151.92 ▲1.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.13 ▼9.96
Media Library /wp-admin/upload.php3.24 ▲0.0137.96 ▲2.18

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Accordion title for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.34 ▼1.412.00 ▲0.2341.39 ▼3.38
Dashboard /wp-admin2,203 ▲155.85 ▲0.97122.63 ▼14.3846.35 ▲0.16
Posts /wp-admin/edit.php2,086 ▼62.02 ▼0.0138.85 ▼7.5436.60 ▼7.17
Add New Post /wp-admin/post-new.php1,537 ▲423.23 ▼0.02653.86 ▼2.7350.85 ▼5.41
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.09101.55 ▼6.6843.68 ▼1.22

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
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accordion-title-for-elementor/elementor_accordion_title.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/accordion-title-for-elementor/widget/accordion_title.php:3

User-side errors Passed 1 test

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


Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: elementor addons, addons, elementor, elementor widget, accordion...

accordion-title-for-elementor/elementor_accordion_title.php 69% from 13 tests

"Accordion title for Elementor" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("accordion-title-for-elementor.php" instead of "elementor_accordion_title.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin476 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File1242470

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods666.67%
▷ Protected methods333.33%
▷ Private methods00.00%
▷ Named functions266.67%
▷ Anonymous functions133.33%
▷ Global constants00.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 are no PNG files in this plugin